UPP Online Tutorial for UPPV4.1 | Installing UPP > Configure UPP

Set Environment Variables

Before installing UPP, the following environment variables must be set: 

          setenv NETCDF /path/to/netcdf 

          setenv NCEPLIBS_DIR /path/to/NCEPlibs 

To reference the netCDF libraries, the configure script checks for an environment variable (NETCDF) first, then the system default (/user/local/netcdf ), and then a user supplied link (./netcdf_links). If none of these resolve a path, the user will be prompted by the configure script to supply a path. To reference the NCEP libraries, the configure script checks for an environment variable (NCEPLIBS_DIR). 

Type configure, and provide the required info. For example: 

          ./configure

Configuration

You will be given a list of choices for your computer.

(Please note that at this time, the option to build serially does not work)

Choices for LINUX operating systems are as follows:

  1. Linux x86_64, PGI compiler (serial)
  2. Linux x86_64, PGI compiler (dmpar)
  3. Linux x86_64, Intel compiler (serial)
  4. Linux x86_64, Intel compiler (dmpar)
  5. Linux x86_64, Intel compiler, SGI MPT (serial)
  6. Linux x86_64, Intel compiler, SGI MPT (dmpar)
  7. Linux x86_64, gfortran compiler (serial)
  8. Linux x86_64, gfortran compiler (dmpar)

Choose one of the dmpar configure options listed. If the serial option is chosen during configuration, an error statement will be printed. Check the configure.upp file created and edit for compile options/paths, if necessary. For debug flag settings, the configure script can be run with a  -d switch or flag. 

arrow For debug flag settings, the configure scripts can be run with the -d flag.

The remainder of this tutorial assumes that you have installed UPP in the top-level UPPV4.1 directory.