Skip to content

Commit

Permalink
support gmsh enabled build without MPI
Browse files Browse the repository at this point in the history
  • Loading branch information
cwsmith committed Nov 14, 2024
1 parent ca88167 commit f6e7f71
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/unit_io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1298,6 +1298,7 @@ Omega_h_Comparison light_compare_meshes(Mesh& a, Mesh& b) {
}

static void check_entities_global_ordering(Mesh& mesh) {
#if defined(OMEGA_H_USE_MPI)
// ensure global ids of all entities are in [0 ... N[
for (int dim = 0; dim < mesh.dim(); ++dim) {
/// global id of entities owned by this rank
Expand Down Expand Up @@ -1337,6 +1338,7 @@ static void check_entities_global_ordering(Mesh& mesh) {
}
}
}
#endif
}

static void test_gmsh_parallel(Library* lib) {
Expand Down Expand Up @@ -1483,8 +1485,8 @@ int main(int argc, char** argv) {
test_read_vtu(&lib);
}
test_gmsh(&lib);
#ifdef OMEGA_H_USE_GMSH
#if defined(OMEGA_H_USE_GMSH) && defined(OMEGA_H_USE_MPI)
test_gmsh_parallel(&lib);
#endif // OMEGA_H_USE_GMSH
#endif
return 0;
}

0 comments on commit f6e7f71

Please sign in to comment.