The Gismo.jl package provides an interface to the Geometry + Simulation Modules inside Julia.
We provide a hand full of examples in the examples
directory, which can be run after installation of the package.
There are two ways to install Gismo.jl: via Julia's package manager, or by linking it to a local build of G+Smo.
The Gismo.jl package can be directly downloaded from Julia's package management system Pkg
using
] add Gismo
This command fetches the dependency gismo_jll
contaning pre-compiled library files, and it fetches the current repository which calls gismo_jll
.
Alternatively, one can use a local build of G+Smo as a back-end for the Julia bindings. This requires the gsCInterface
module to be compiled, and the Gismo.jl package to be fetched as a submodule in G+Smo.
Enable the gsCInterface
and the Gismo.jl
modules inside G+Smo
cd path/to/gismo/build
cmake . -DGISMO_OPTIONAL="<OTHER OPTIONAL MODULES>;gsCInterface;Gismo.jl" \
-DGISMO_JL_DEVELOP=ON
And compile everything
make gismo
In the file Gismo.jl/src/Gismo.jl
, the shared library should be included as follows:
libgismo = "path/to/gismo/build/lib/libgismo"
Add the local package Gismo.jl to Julia's development packages
cd path/to/gismo/
cd optional
julia -e 'using Pkg; Pkg.develop(path="Gismo.jl")'