Skip to content

Commit

Permalink
print mesh family
Browse files Browse the repository at this point in the history
  • Loading branch information
Angelyr committed Dec 1, 2023
1 parent d568db0 commit ee5b76a
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions src/describe.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include <Omega_h_element.hpp>
#include <Omega_h_file.hpp>


Expand All @@ -21,15 +22,9 @@ int main(int argc, char** argv)
for(int dim=0; dim < mesh.dim(); dim++)
oss << "(" << dim << ", " << mesh.imbalance(dim) << ")\n";

#if defined(OMEGA_H_USE_KOKKOS)
oss << "\nShapes:\n";
oss << "Num Pyrams: " << mesh.npyrams() << "\n";
oss << "Num Wedges: " << mesh.nwedges() << "\n";
oss << "Num Hexs: " << mesh.nhexs() << "\n";
oss << "Num Tets: " << mesh.ntets() << "\n";
oss << "Num Quads: " << mesh.nquads() << "\n";
oss << "Num Tris: " << mesh.ntris() << "\n";
#endif
oss << "\nMesh Family: (Dim, Family)\n";
for(int dim=0; dim < mesh.dim(); dim++)
oss << "(" << dim << ", " << Omega_h::topological_singular_name(mesh.family(), dim) << ")\n";

oss << "\nTags by Dimension: (Dim, Tag, Size per Entity)\n";
for (int dim=0; dim < mesh.dim(); dim++)
Expand Down

0 comments on commit ee5b76a

Please sign in to comment.