coarsen_flags.size()<DEAL_II_MIN_BOOL_VECTOR_CAPACITY,
ExcMemoryWasted ("coarsen_flags",
coarsen_flags.size(), coarsen_flags.capacity()));
- Assert (neighbors.size() == neighbors.capacity() ||
- neighbors.size()<DEAL_II_MIN_VECTOR_CAPACITY,
+ Assert (neighbors.size() <=
+ neighbors.capacity() + DEAL_II_MIN_VECTOR_CAPACITY,
ExcMemoryWasted ("neighbors",
neighbors.size(), neighbors.capacity()));
- Assert (subdomain_ids.size() == subdomain_ids.capacity() ||
- subdomain_ids.size()<DEAL_II_MIN_VECTOR_CAPACITY,
+ Assert (subdomain_ids.size() <=
+ subdomain_ids.capacity() + DEAL_II_MIN_VECTOR_CAPACITY,
ExcMemoryWasted ("subdomain_ids",
subdomain_ids.size(), subdomain_ids.capacity()));
Assert (2*true_dimension*refine_flags.size() == neighbors.size(),
coarsen_flags.size()<DEAL_II_MIN_BOOL_VECTOR_CAPACITY,
ExcMemoryWasted ("coarsen_flags",
coarsen_flags.size(), coarsen_flags.capacity()));
- Assert (neighbors.size() == neighbors.capacity() ||
- neighbors.size()<DEAL_II_MIN_VECTOR_CAPACITY,
+ Assert (neighbors.size() <=
+ neighbors.capacity() + DEAL_II_MIN_VECTOR_CAPACITY,
ExcMemoryWasted ("neighbors",
neighbors.size(), neighbors.capacity()));
- Assert (subdomain_ids.size() == subdomain_ids.capacity() ||
- subdomain_ids.size()<DEAL_II_MIN_VECTOR_CAPACITY,
+ Assert (subdomain_ids.size () <=
+ subdomain_ids.capacity() + DEAL_II_MIN_VECTOR_CAPACITY,
ExcMemoryWasted ("subdomain_ids",
subdomain_ids.size(), subdomain_ids.capacity()));
Assert (2*true_dimension*refine_flags.size() == neighbors.size(),
// they may over-allocate by up to
// as many elements as an integer
// has bits
- Assert (cells.size() == cells.capacity() ||
- cells.size()<DEAL_II_MIN_VECTOR_CAPACITY,
+ Assert (cells.size() <=
+ cells.capacity() + DEAL_II_MIN_VECTOR_CAPACITY,
ExcMemoryWasted ("lines",
cells.size(), cells.capacity()));
- Assert (children.size() == children.capacity() ||
- children.size()<DEAL_II_MIN_VECTOR_CAPACITY,
+ Assert (children.size() <=
+ children.capacity() + DEAL_II_MIN_VECTOR_CAPACITY,
ExcMemoryWasted ("children",
children.size(), children.capacity()));
Assert (used.size() <= used.capacity() + sizeof(int)*8 ||
// they may over-allocate by up to
// as many elements as an integer
// has bits
- Assert (cells.size() == cells.capacity() ||
- cells.size()<DEAL_II_MIN_VECTOR_CAPACITY,
+ Assert (cells.size() <=
+ cells.capacity() + DEAL_II_MIN_VECTOR_CAPACITY,
ExcMemoryWasted ("quads",
cells.size(), cells.capacity()));
- Assert (children.size() == children.capacity() ||
- children.size()<DEAL_II_MIN_VECTOR_CAPACITY,
+ Assert (children.size() <=
+ children.capacity() + DEAL_II_MIN_VECTOR_CAPACITY,
ExcMemoryWasted ("children",
children.size(), children.capacity()));
Assert (used.size() <= used.capacity() + sizeof(int)*8 ||
// they may over-allocate by up to
// as many elements as an integer
// has bits
- Assert (cells.size() == cells.capacity() ||
- cells.size()<DEAL_II_MIN_VECTOR_CAPACITY,
+ Assert (cells.size() <=
+ cells.capacity() + DEAL_II_MIN_VECTOR_CAPACITY,
ExcMemoryWasted ("hexes",
cells.size(), cells.capacity()));
- Assert (children.size() == children.capacity() ||
- children.size()<DEAL_II_MIN_VECTOR_CAPACITY,
+ Assert (children.size() <=
+ children.capacity() + DEAL_II_MIN_VECTOR_CAPACITY,
ExcMemoryWasted ("children",
children.size(), children.capacity()));
Assert (used.size() <= used.capacity() + sizeof(int)*8 ||