|
17 | 17 | #include "Omega_h_quality.hpp" |
18 | 18 | #include "Omega_h_shape.hpp" |
19 | 19 | #include "Omega_h_timer.hpp" |
| 20 | +#include "Omega_h_print.hpp" |
20 | 21 | #include "Omega_h_dbg.hpp" |
21 | 22 |
|
22 | 23 | namespace Omega_h { |
@@ -762,34 +763,39 @@ Real Mesh::imbalance(Int ent_dim) const { |
762 | 763 | } |
763 | 764 |
|
764 | 765 | std::string Mesh::string(int verbose) { |
765 | | - (void)verbose; |
766 | 766 | std::ostringstream oss; |
767 | 767 | oss << "Mesh:" |
768 | | - << "\n comm()->size = " << comm()->size() |
769 | | - << "\n parting = " << parting() |
770 | | - << "\n dim = " << dim() |
771 | | - << "\n family = " << family() |
772 | | - << "\n nents = " << nents(dim()) |
773 | | - << "\n nents(0) = " << nents(0) |
774 | | - << "\n nelems = " << nelems(); |
| 768 | + << "\n comm()->size = " << comm()->size() |
| 769 | + << "\n parting = " << parting() |
| 770 | + << "\n dim = " << dim() |
| 771 | + << "\n family = " << family() |
| 772 | + << "\n nents(dim) = " << nents(dim()) |
| 773 | + << "\n nents(0) = " << nents(0) |
| 774 | + << "\n nelems = " << nelems(); |
775 | 775 | if (dim() > 2) { |
776 | | - oss << "\n nregions = " << nregions(); |
777 | | - } |
778 | | - oss << "\n nfaces = " << nfaces() |
779 | | - << "\n nedges = " << nedges() |
780 | | - << "\n nverts = " << nverts() |
781 | | - << "\n nglobal_ents = " << nglobal_ents(dim()) |
782 | | - << "\n nglobal_ents(0) = " << nglobal_ents(0) |
783 | | - << "\n ntags = " << ntags(dim()) |
784 | | - << "\n ntags(0) = " << ntags(0) |
785 | | - //<< "\n min_quality = " << min_quality() |
786 | | - //<< "\n max_length = " << max_length() |
787 | | - << "\n could_be_shared = " << could_be_shared(dim()) |
788 | | - << "\n could_be_shared(0) = " << could_be_shared(0) |
789 | | - << "\n owners_have_all_upward = " << owners_have_all_upward(dim()) |
790 | | - << "\n owners_have_all_upward(0) = " << owners_have_all_upward(0) |
791 | | - << "\n have_all_upward = " << have_all_upward() |
792 | | - << "\n imbalance = " << imbalance(); |
| 776 | + oss |
| 777 | + << "\n nregions = " << nregions(); |
| 778 | + } |
| 779 | + oss << "\n nfaces = " << nfaces() |
| 780 | + << "\n nedges = " << nedges() |
| 781 | + << "\n nverts = " << nverts() |
| 782 | + << "\n nglobal_ents(dim) = " << nglobal_ents(dim()) |
| 783 | + << "\n nglobal_ents(0) = " << nglobal_ents(0) |
| 784 | + << "\n ntags = " << ntags(dim()) |
| 785 | + << "\n ntags(0) = " << ntags(0) |
| 786 | + //<< "\n min_quality = " << min_quality() |
| 787 | + //<< "\n max_length = " << max_length() |
| 788 | + << "\n could_be_shared(dim) = " << could_be_shared(dim()) |
| 789 | + << "\n could_be_shared(0) = " << could_be_shared(0) |
| 790 | + << "\n owners_have_all_upward(dim) = " << owners_have_all_upward(dim()) |
| 791 | + << "\n owners_have_all_upward(0) = " << owners_have_all_upward(0) |
| 792 | + << "\n have_all_upward = " << have_all_upward() |
| 793 | + << "\n imbalance = " << imbalance(); |
| 794 | + if (verbose) { |
| 795 | + oss |
| 796 | + << "\n globals(dim) =\n" << globals(dim()) |
| 797 | + << "\n globals(0) =\n" << globals(0); |
| 798 | + } |
793 | 799 | return oss.str(); |
794 | 800 | } |
795 | 801 |
|
|
0 commit comments