This package serves as a lightweight module of Fortran methods in Kinetic.jl ecosystem. It's not included in the main module by default, and can be manually imported in the cases with extreme pursuit of efficiency.
The modern Fortran methods is provided by the shared library kitmod.so and called from Julia with the help of
To generate the dynamic library file to be called from Julia, make sure the GNU Fortran compiler has been installed in the computer.
gfortran kitmod.f90 -o kitmod.so -shared -fPIC -O3
Alternatively, the Intel Fortran compiler
ifort can be employed with the same command above.
Note that GNU and Intel compilers present slightly different behaviors on the function call. For example, the low-level KFVS flux function takes:
Please don't do the recompilation unless you're sure what's exactly going on.