Installation instructions
-
This extension requires
gmsh
to be installed as a dynamic library. Download the source code of the latest stable release of gmsh from https://gitlab.onelab.info/gmsh/gmsh/-/releases. -
Build gmsh from source with the dynamic build flag turned on:
cd build cmake -DENABLE_BUILD_DYNAMIC=1 .. make make install
-
In
apigenerator/generate.py
, set the correct version of gmsh that you have downloaded by modifying line 7:api_version = "gmsh_4_12_2" # For example
-
Run the file:
python generate.py
-
Navigate to
morpho-gmsh
-
Build the extension by running the following:
mkdir build cd build cmake -DCMAKE_BUILD_TYPE=Release .. make install
-
Add the extension path to
~/.morphopackages
:cd .. pwd >> ~/.morphopackages
-
Try out the test example
cd examples morpho6 testgmshapi.morpho