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

small fixes

parent 0c94c941
No related branches found
No related tags found
No related merge requests found
This directory contains C++ versions of some of the tutorials, written using
the Gmsh API.
This directory contains C++ versions of the tutorials, written using the Gmsh
API.
To compile and run the C++ tutorials, you need the Gmsh dynamic library and the
associated header file (`gmsh.h'). These can be either obtained
......
......@@ -85,6 +85,9 @@ int main(int argc, char **argv)
//
// gmsh::option::setNumber("Mesh.SaveAll", 1);
// We could run the graphical user interface with
// gmsh::fltk::run();
// This should be called at the end:
gmsh::finalize();
return 0;
......
......@@ -128,7 +128,6 @@ int main(int argc, char **argv)
// Generate the mesh and perform the requested homology computations
gmsh::model::mesh::generate(3);
gmsh::fltk::run();
gmsh::finalize();
return 0;
}
......@@ -45,9 +45,6 @@ int main(int argc, char **argv)
model::mesh::generate(2);
gmsh::write("t7.msh");
// show the mesh file
gmsh::fltk::run();
gmsh::finalize();
return 0;
}
......@@ -57,9 +57,6 @@ int main(int argc, char **argv)
gmsh::option::setNumber("View[1].IntervalsType", 2);
gmsh::option::setNumber("View[2].IntervalsType", 2);
// show the GUI at the end
gmsh::fltk::run();
gmsh::finalize();
return 0;
}
......@@ -81,5 +81,8 @@ gmsh.write("t1.msh")
#
# gmsh.option.setNumber("Mesh.SaveAll", 1)
# We could run the graphical user interface with
# gmsh.fltk.run()
# This should be called at the end:
gmsh.finalize()
......@@ -16,8 +16,8 @@ gmsh.model.occ.synchronize()
path = os.path.dirname(os.path.abspath(__file__))
gmsh.merge(os.path.join(path, '..', 't17_bgmesh.pos'))
bg_field = model.mesh.field.add("PostView")
model.mesh.field.setAsBackgroundMesh(bg_field)
bg_field = gmsh.model.mesh.field.add("PostView")
gmsh.model.mesh.field.setAsBackgroundMesh(bg_field)
# use bamg
gmsh.option.setNumber("Mesh.SmoothRatio", 3)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment