Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

Export GFS_DIR path before compilation as follows.

Change the path according to


your
setup

export GFS_DIR=/moes/model/GFS

Prerequisites for GFS:


1)

BACIO

2)

ESMF

3)

SIGIO

4)

W3

5)

SP

Installation of Supporting Libraries


Remove existing object files by rm -rf *.o *.mod & make clean

Installation of bacio
1. cd $GFS_DIR/nwprod/lib/sorc/bacio
2. ./makebacio.sh 2>&1 | tee bacio_compile.log
3. libbacio_4.a libbacio_8.a will be generated at $GFS_DIR/nwprod/lib

Installation of SIGIO
1. cd $GFS_DIR/nwprod/lib/sorc/sigio
2. ./makefile.sh 2>&1 | tee sigio_compile.log
3. libsigio_4.a is created at $GFS_DIR/nwprod/lib
4. mod files are created at incmod/sigio_4

Installation of W3EMC & W3NCO

1. cd $GFS_DIR/nwprod/lib/sorc/w3emc
2. ./makelibw3.sh 2>&1 | tee w3emc_compile.log
3. libw3emc_4.a , libw3emc_8.a and libw3emc_d.a are generated at
$GFS_DIR/nwprod/lib/
4.
Corresponding mod files w3emc_4 , w3emc_8 and w3emc_d are
generated at $GFS_DIR/nwprod/lib/incmod
5.

cd $GFS_DIR/nwprod/lib/sorc/w3nco

6.

./makelibw3_nco.sh 2>&1 | tee w3nco_compile.log

7.
libw3nco_4.a , libw3nco_8.a and libw3nco_d.a are generated at
$GFS_DIR/nwprod/lib/

Installation of SP
1.

cd $GFS_DIR/nwprod/lib/sorc/sp

2.

./makelibsp.sh 2>&1 | tee sp_compile.log

3.

libsp_4.a, libsp_8.a and libsp_d.a are generated at $GFS_DIR/nwprod/lib/

Installation of ESMF

1) Set required environment variable(s) .

export ESMF_DIR=$GFS_DIR/nwprod/lib/sorc/esmf
export ESMF_BOPT=g
export ESMF_MPIRUN=mpirun
export ESMF_COMM=intelmpi
export ESMF_COMPILER=intel
export ESMF_ABI=64
export ESMF_OS=Linux
export ESMF_INSTALL_PREFIX=$GFS_DIR/nwprod/lib/sorc/esmf/installesmf
export ESMF_MACHINE=x86_64

2) Type 'gmake' (the GNU make program) to build the ESMF library.

3) Optionally test the ESMF library build using any of the following targets:
a) 'gmake unit_tests' to build and run the unit tests
b) 'gmake system_tests' to build and run the system tests
c) 'gmake check' to build and run the unit and system tests.
d) 'gmake examples' to build and run the examples
e) 'gmake demos' to build and run the demos
f) 'gmake all_tests' to build and run all available tests and demos
Please consult the "Platform Specific Notes Related to Executing Test
Targets" below before attempting to use any of these targets.

4) Type 'gmake install' to install the ESMF library in a custom location.

5) Optionally test the ESMF library installation via 'gmake installcheck'.

Compilation of source modules

global_fcst.fd

cd $GFS_DIR/nwprod/sorc/global_fcst.fd
vim Makefile
LIBS = Set paths appropriately
make -f Makefile
Executable global_fcst will be generated

global_sighdr.fd

cd $GFS_DIR/nwprod/sorc/global_sighdr.fd
make
Executable global_sighdr will be generated

You might also like