void TriangulationLevel<0>::monitor_memory (const unsigned int true_dimension) const {
- Assert (refine_flags.size() == refine_flags.capacity() ||
- refine_flags.size()<256,
- ExcMemoryWasted ("refine_flags",
- refine_flags.size(), refine_flags.capacity()));
- Assert (neighbors.size() == neighbors.capacity() ||
- neighbors.size()<256,
- ExcMemoryWasted ("neighbors",
- neighbors.size(), neighbors.capacity()));
+// Assert (refine_flags.size() == refine_flags.capacity() ||
+// refine_flags.size()<256,
+// ExcMemoryWasted ("refine_flags",
+// refine_flags.size(), refine_flags.capacity()));
+// Assert (neighbors.size() == neighbors.capacity() ||
+// neighbors.size()<256,
+// ExcMemoryWasted ("neighbors",
+// neighbors.size(), neighbors.capacity()));
Assert (2*true_dimension*refine_flags.size() == neighbors.size(),
ExcMemoryInexact (refine_flags.size(), neighbors.size()));
};
++used_lines;
unsigned int new_size = used_lines + new_lines;
-
+
+// cout << " lines: pre: siz=" << lines.lines.size() << ", cap=" << lines.lines.capacity();
lines.lines.reserve (new_size);
+// cout << " inter: siz=" << lines.lines.size() << ", cap=" << lines.lines.capacity()
+// << " (newsize=" << new_size << ")";
lines.lines.insert (lines.lines.end(), new_size-lines.lines.size(), Line());
+// cout << " post: siz=" << lines.lines.size() << ", cap=" << lines.lines.capacity() << endl;
+// cout << " used : pre: siz=" << lines.used.size() << ", cap=" << lines.used.capacity();
lines.used.reserve (new_size);
+// cout << " inter: siz=" << lines.used.size() << ", cap=" << lines.used.capacity()
+// << " (newsize=" << new_size << ")";
lines.used.insert (lines.used.end(), new_size-lines.used.size(), false);
+// cout << " post: siz=" << lines.used.size() << ", cap=" << lines.used.capacity() << endl;
lines.user_flags.reserve (new_size);
lines.user_flags.insert (lines.user_flags.end(),
void TriangulationLevel<1>::monitor_memory (const unsigned int true_dimension) const {
- Assert (lines.lines.size() == lines.lines.capacity() ||
- lines.lines.size()<256,
- ExcMemoryWasted ("lines",
- lines.lines.size(), lines.lines.capacity()));
- Assert (lines.children.size() == lines.children.capacity() ||
- lines.children.size()<256,
- ExcMemoryWasted ("children",
- lines.children.size(), lines.children.capacity()));
- Assert (lines.used.size() == lines.used.capacity() ||
- lines.used.size()<256,
- ExcMemoryWasted ("used",
- lines.used.size(), lines.used.capacity()));
- Assert (lines.user_flags.size() == lines.user_flags.capacity() ||
- lines.user_flags.size()<256,
- ExcMemoryWasted ("user_flags",
- lines.user_flags.size(), lines.user_flags.capacity()));
+// Assert (lines.lines.size() == lines.lines.capacity() ||
+// lines.lines.size()<256,
+// ExcMemoryWasted ("lines",
+// lines.lines.size(), lines.lines.capacity()));
+// Assert (lines.children.size() == lines.children.capacity() ||
+// lines.children.size()<256,
+// ExcMemoryWasted ("children",
+// lines.children.size(), lines.children.capacity()));
+// Assert (lines.used.size() == lines.used.capacity() ||
+// lines.used.size()<256,
+// ExcMemoryWasted ("used",
+// lines.used.size(), lines.used.capacity()));
+// Assert (lines.user_flags.size() == lines.user_flags.capacity() ||
+// lines.user_flags.size()<256,
+// ExcMemoryWasted ("user_flags",
+// lines.user_flags.size(), lines.user_flags.capacity()));
Assert (lines.lines.size() == lines.used.size(),
ExcMemoryInexact (lines.lines.size(), lines.used.size()));
Assert (lines.lines.size() == lines.user_flags.size(),
void TriangulationLevel<2>::monitor_memory (const unsigned int true_dimension) const {
- Assert (quads.quads.size() == quads.quads.capacity() ||
- quads.quads.size()<256,
- ExcMemoryWasted ("quads",
- quads.quads.size(), quads.quads.capacity()));
- Assert (quads.children.size() == quads.children.capacity() ||
- quads.children.size()<256,
- ExcMemoryWasted ("children",
- quads.children.size(), quads.children.capacity()));
- Assert (quads.used.size() == quads.used.capacity() ||
- quads.used.size()<256,
- ExcMemoryWasted ("used",
- quads.used.size(), quads.used.capacity()));
- Assert (quads.user_flags.size() == quads.user_flags.capacity() ||
- quads.user_flags.size()<256,
- ExcMemoryWasted ("user_flags",
- quads.user_flags.size(), quads.user_flags.capacity()));
+// Assert (quads.quads.size() == quads.quads.capacity() ||
+// quads.quads.size()<256,
+// ExcMemoryWasted ("quads",
+// quads.quads.size(), quads.quads.capacity()));
+// Assert (quads.children.size() == quads.children.capacity() ||
+// quads.children.size()<256,
+// ExcMemoryWasted ("children",
+// quads.children.size(), quads.children.capacity()));
+// Assert (quads.used.size() == quads.used.capacity() ||
+// quads.used.size()<256,
+// ExcMemoryWasted ("used",
+// quads.used.size(), quads.used.capacity()));
+// Assert (quads.user_flags.size() == quads.user_flags.capacity() ||
+// quads.user_flags.size()<256,
+// ExcMemoryWasted ("user_flags",
+// quads.user_flags.size(), quads.user_flags.capacity()));
Assert (quads.quads.size() == quads.used.size(),
ExcMemoryInexact (quads.quads.size(), quads.used.size()));
Assert (quads.quads.size() == quads.user_flags.size(),