...
To set the location of the GRIB_API & LAPACK libraries, two other environment variables need to be defined as the defaults in the FCM configuration files will most likely not be appropriate (or you can choose to edit the FCM configuration files in make/fcmcfg
).
OIFS_GRIB_API_DIR - Defines the location of the grib_api library. If you followed the example in 'Installing grib_api for OpenIFS' it will be installed in $HOME/ecmwf/grib_api_gcc
.
...
Code Block |
---|
export OIFS_GRIB_API_DIR=$HOME/ecmwf/grib_api_gcc export OIFS_LAPACK_LIB="-L/usr/local/lib -llapack -lblas" |
Or if you prefer you can either edit the default value in the appropriate FCM configuration file in oifs/make/fcmcfg
or make a copy of the supplied configuration file and use that.
Compiling OpenIFS
Once the environment variables are set, OpenIFS can be compiled (make sure you have edited your PATH environment variable to add the FCM installation /bin
directory). Assuming you are in the directory where the OpenIFS source code was unpacked:
...