Difference between revisions of "UPP"

(Created page with "Unified Post Processor https://dtcenter.org/community-code/unified-post-processor-upp === Install instructions === <syntaxhighlight> export INSTALL=/scratch/$PROJECT/$USER/u...")
 
 
(4 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
=== Install instructions ===
 
=== Install instructions ===
  
<syntaxhighlight>
+
<syntaxhighlight lang="bash">
export INSTALL=/scratch/$PROJECT/$USER/upp-install
+
# Set to desired install directory
 +
export NCEPLIBS_DIR=/scratch/$PROJECT/$USER/NCEPlibs
  
 
## Load modules
 
## Load modules
Line 24: Line 25:
 
export NETCDF_LIB=$NETCDF_ROOT/lib
 
export NETCDF_LIB=$NETCDF_ROOT/lib
  
./make_ncep_libs.sh -s linux -c intel -d $INSTALL/NCEPlibs -o 0 -a ucp
+
# Fix macros.make.linux.intel
 +
sed -i -e 's/mpiifort/mpifort/' macrots.make.linux.intel
 +
 
 +
./make_ncep_libs.sh -s linux -c intel -d $NCEPLIBS_DIR -o 0 -a upp
 +
 
 +
cd ..
 +
 
 +
## Install UPP
 +
cd UPPV4.1
 +
 
 +
./configure
 +
 
 +
# Choose option 'Linux x86_64, Intel compiler      (dmpar)'
 +
 
 +
# Fix some settings
 +
sed -i -e 's/NETCDFLIBS\s*=.*/NETCDFLIBS = -lnetcdff -lnetcdf -ljasper -lpng/' configure.upp
 +
 
 +
./compile
 +
 
 +
# 'unipost.exe' will now be in the 'exec' directory
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
 +
For more information on usage see https://dtcenter.org/sites/default/files/community-code/upp-users-guide-v4.1.pdf

Latest revision as of 19:18, 17 November 2020

Unified Post Processor https://dtcenter.org/community-code/unified-post-processor-upp

Install instructions

# Set to desired install directory
export NCEPLIBS_DIR=/scratch/$PROJECT/$USER/NCEPlibs

## Load modules
module load intel-compiler
module load openmpi
module load jasper
module load netcdf

## Download source
git clone -b dtc_post_v4.1.0 --recurse-submodules https://github.com/NOAA-EMC/EMC_post UPPV4.1
git clone https://github.com/NCAR/NCEPlibs

## Install NCEPlibs
cd NCEPlibs

export PNG_INC=/usr/include
export JASPER_INC=$JASPER_ROOT/include
export NETCDF_INC=$NETCDF_ROOT/include
export NETCDF_LIB=$NETCDF_ROOT/lib

# Fix macros.make.linux.intel
sed -i -e 's/mpiifort/mpifort/' macrots.make.linux.intel

./make_ncep_libs.sh -s linux -c intel -d $NCEPLIBS_DIR -o 0 -a upp

cd ..

## Install UPP
cd UPPV4.1

./configure

# Choose option 'Linux x86_64, Intel compiler      (dmpar)'

# Fix some settings
sed -i -e 's/NETCDFLIBS\s*=.*/NETCDFLIBS = -lnetcdff -lnetcdf -ljasper -lpng/' configure.upp

./compile

# 'unipost.exe' will now be in the 'exec' directory

For more information on usage see https://dtcenter.org/sites/default/files/community-code/upp-users-guide-v4.1.pdf