Difference between revisions of "Using GLIMMER"

From SourceWiki
Jump to navigation Jump to search
(ICR: Expanded installation instructions and corrected a few errors.)
m (ICR: Downgraded the section headings)
Line 1: Line 1:
=Obtaining Glimmer=
+
===Obtaining Glimmer===
 
GLIMMER is available from the [http://forge.nesc.ac.uk/projects/glimmer Glimmer project page]. Documentation is also available from this site. It is recommended that the latest version of Glimmer should be used; GENIE will not build with versions of Glimmer prior to 1.0.4.
 
GLIMMER is available from the [http://forge.nesc.ac.uk/projects/glimmer Glimmer project page]. Documentation is also available from this site. It is recommended that the latest version of Glimmer should be used; GENIE will not build with versions of Glimmer prior to 1.0.4.
  
=Building Glimmer=
+
===Building Glimmer===
 
More information is provided in the documentation, but the basic build is quite simple:
 
More information is provided in the documentation, but the basic build is quite simple:
  
Line 30: Line 30:
 
</pre>
 
</pre>
  
=Configuring GENIE=
+
===Configuring GENIE===
 
By default, GENIE is expecting to find Glimmer in the directory '''~/glimmer-genie-version''', as specified in the <tt>./configure</tt> command above. If you have installed Glimmer elsewhere, you can either edit the variable <tt>GLIMMER_DIR</tt> in '''genie-main/user.mak''' or create a symbolic link in your home directory with the name 'glimmer-genie-version' to point to your most recently downloaded version of GLIMMER.
 
By default, GENIE is expecting to find Glimmer in the directory '''~/glimmer-genie-version''', as specified in the <tt>./configure</tt> command above. If you have installed Glimmer elsewhere, you can either edit the variable <tt>GLIMMER_DIR</tt> in '''genie-main/user.mak''' or create a symbolic link in your home directory with the name 'glimmer-genie-version' to point to your most recently downloaded version of GLIMMER.
  
 
To complete the Glimmer configuration, you also need to set <tt>FLAG_GLIMMER=ON</tt> in '''genie-main/user.mak'''.
 
To complete the Glimmer configuration, you also need to set <tt>FLAG_GLIMMER=ON</tt> in '''genie-main/user.mak'''.

Revision as of 15:51, 25 June 2007

Obtaining Glimmer

GLIMMER is available from the Glimmer project page. Documentation is also available from this site. It is recommended that the latest version of Glimmer should be used; GENIE will not build with versions of Glimmer prior to 1.0.4.

Building Glimmer

More information is provided in the documentation, but the basic build is quite simple:

  • First, unpack the tarball:
tar xzvf glimmer-1.0.4.tar.gz
  • Descend into the resulting directory:
cd glimmer-1.0.4
  • Set the environment variable FCFLAGS to -DGLIMMERSP. This enables compliation of Glimmer with a single-precision interface, required by GENIE. The mechanism used to set environment variables depends on your shell, but for bash or ksh, do this:
export FCFLAGS="-DGLIMMER_SP"
  • Run configure with the appropriate arguments. The --prefix specifies where the model will be installed; --with-netcdf specifies the location of the NetCDF library. The NetCDF installation is expected to be laid out in the standard way, so that the directory specified includes lib and include directories. For example:
./configure --prefix=/home/ggdagw/glimmer-genie-version --with-netcdf=/opt/local/intel_fc_81 FC=ifort
  • You will need to build GLIMMER separately from GENIE:
make
  • GENIE builds will expect to find the GLIMMER libraries and modules in particular locations. Invoke the install target to install GLIMMER:
make install

Configuring GENIE

By default, GENIE is expecting to find Glimmer in the directory ~/glimmer-genie-version, as specified in the ./configure command above. If you have installed Glimmer elsewhere, you can either edit the variable GLIMMER_DIR in genie-main/user.mak or create a symbolic link in your home directory with the name 'glimmer-genie-version' to point to your most recently downloaded version of GLIMMER.

To complete the Glimmer configuration, you also need to set FLAG_GLIMMER=ON in genie-main/user.mak.