Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Section
Column
Info
titlePrerequisites

You should have completed: the install grib_api and downloaded and unpacked the OpenIFS data files and OpenIFS source code.

Set your environment

OpenIFS 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):

 

Code Block
titlee.g. assuming OpenIFS is unpacked in $HOME/ecmwf/oifs
export PATH=$PATH:$HOME/ecmwf/oifs/fcm/bin
Column
width30px

 

Column
width250px
Panel
bgColorwhite
titleBGColorlightlightgrey
titleOn this page

Table of Contents
maxLevel3

...

suitable for building on IBM Power6 architecture using the XLF/XLCC compilers using non-optimized settings.

If using GNU on a Mac, please see MacOS X known issues.

Building for other systems/environments

...

The model requires a number of libraries (see 5.2 Prerequisites) to compile. As well as the GRIB_API library, the LAPACK & BLAS numerical libraries are required. An MPI library is also required but this is assumed to be provided by compiler wrappers provided by the MPI implementation (e.g. the command mpif90 rather than gfortran).

...

OIFS_GRIB_API_DIR - Defines the location of the grib_api library. If you followed the example in '5.3 Install grib_api for OpenIFS' it will be installed in $HOME/ecmwf/grib_api_gcc.

...