Fortran Interface

The Fortran interface is provided through the fmsg_m module, which defines derived types together with supporting parameters and procedures.

API Specification

Compiling/Linking

The module file fmsg_m for the Fortran interface is provided in the directory $MSG_DIR/include, and executables should be linked against $MSG_DIR/lib/libfmsg.so (Linux) or $MSG_DIR/lib/libfmsg.dylib (MacOS). To simplify this process, a set of pkgconf package definition files are provided in the $MSG_DIR/lib/pkgconfig subdirectory. These files can be used to compile/link a program with gfortran as follows:

$ gfortran -o myprogram myprogram.f90 `pkgconf --with-path=$MSG_DIR/lib/pkgconfig --cflags --libs fmsg`