You should have completed: the install grib_api and downloaded the OSM source code. |
The OSM uses software called 'FCM' to handle the compilation of the code. FCM is distributed in the tarball downloaded from the ftp site.
Before trying to compile, make sure the FCM directory is added to your PATH environment variable so the fcm
command can be found (if you already have fcm available on your system, we still recommend using the distributed version):
export PATH=$PATH:$HOME/ecmwf/osm/fcm/bin |
The script |
Before compiling the model, the build configuration must first be set by several environment variables:
OSM_COMP - This sets the choice of compiler. The default is 'gnu' which means the gfortran/gcc compilers will be used.
OSM_BUILD - This sets the type of build.
These environment variables directly correspond to the names of the FCM configuration files in the make/cfg/
directory in the source. Please see this directory for the choices provided.
Build types: OSM_BUILD sets the type of build and there will be one FCM configuration file for each type. Build types provided are:
e.g.
export OSM_COMP=intel export OSM_BUILD=opt |
means using the Intel ifort compiler and the model will be compiled with full optimization compiler settings. So the FCM build system will expect to find a file:
make/cfg/intel-opt.cfg |
Setting:
export OSM_COMP=xlf export OSM_BUILD=noopt |
<script type="text/javascript" src="https://software.ecmwf.int/issues/s/en_UKet2vtj/787/12/1.2.5/_/download/batch/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector/com.atlassian.jira.collector.plugin.jira-issue-collector-plugin:issuecollector.js?collectorId=5fd84ec6"></script> |