Skip to content
Snippets Groups Projects
Commit e750e721 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

testing new Gmsh partitioner behavior (interfaces might not belong to any...

testing new Gmsh partitioner behavior (interfaces might not belong to any physical group, so SaveAll is required)
parent 5cec5de1
No related branches found
No related tags found
No related merge requests found
Pipeline #9269 passed
......@@ -101,8 +101,10 @@ int main(int argc, char **argv)
if(!getMPIRank()) {
// build geometry
Nacelle(h_near, h_far, D, R, L_duct, 2.*h_far, 2.*h_near, nDom);
gmsh::option::setNumber("Mesh.ElementOrder", FEMorder); // FIXME
gmsh::option::setNumber("Mesh.ElementOrder", FEMorder);
gmsh::option::setNumber("Mesh.SecondOrderLinear", 1);
// save all, as partitioning will create some entities without physical groups
gmsh::option::setNumber("Mesh.SaveAll", 1);
gmsh::model::mesh::generate(3);
gmsh::model::mesh::partition(nDom);
// save partitioned mesh in single file for mono-process runs
......
......@@ -106,6 +106,8 @@ int main(int argc, char **argv)
sphere(Rin, Rext, lc);
// partition
gmsh::model::mesh::partition(nDom);
// save all, as partitioning will create some entities without physical groups
gmsh::option::setNumber("Mesh.SaveAll", 1);
// save partitioned mesh in single file for sequential runs
gmsh::option::setNumber("Mesh.PartitionSplitMeshFiles", 0);
gmsh::write("sphere.msh");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment