CoMS > Cosmos ESM
Tehdyt toimenpiteet

Cosmos ESM

Community Earth System Models (COSMOS).

Community Earth System Models (COSMOS) collaboration project builds on Max Planck Institute for Meteorology's general circulation models ECHAM5 and MPI-OM, and PRISM's OASIS3 coupler. CSC's CoMS project provides support for compiling and running COSMOS and it's constituent models on available computing platforms.

COSMOS at CSC's environment

Below are short instructions on howto get started with ECHAM5, MPIOM and COSMOS on CSC's HP Operon cluster murska.csc.fi.

# COSMOS Earth System Model
#
# Adaptation of the PRISM Standard Compiling Environment (SCE) and
# Standard Running Environment (SRE) to CSC environment in
# murska.csc.fi.
#
# Contains a minimal patch to compile and run small test runs
# of standalone models echam5 and mpiom, and the coupled model
# cosmos-ao.
#
# Source and input files needed from MPI-M:
#   (1) cosmos-1.0.0.tar
#   (2) input_echam5_T31L19.tar
#   (3) input_mpiom_GR30L40.tar
#   (4) input_cosmos-ao_T31L19_GR30L40.tar
#
# Patch for murska.csc.fi:
#   (5) cosmos-1.0.0-csc.patch
#
# juha.lento (at) csc.fi
#

# Login to murska.csc.fi

# Copy files (1) - (5) to $WRKDIR

# Prepare source

cd $WRKDIR
tar xvf cosmos-1.0.0.tar
patch -p0 < cosmos-1.0.0-csc.patch
cd $WRKDIR/cosmos-1.0.0
ln -s x86_64-pgi x86_64

# Prepare inputs

cd $WRKDIR
mkdir -p $WRKDIR/cosmos-1.0.0/data/cosmos-ao
mkdir -p $WRKDIR/cosmos-1.0.0/data/echam5
mkdir -p $WRKDIR/cosmos-1.0.0/data/mpiom
cp input_cosmos-ao_T31L19_GR30L40.tar $WRKDIR/cosmos-1.0.0/data/cosmos-ao
cp input_echam5_T31L19.tar $WRKDIR/cosmos-1.0.0/data/echam5
cp input_mpiom_GR30L40.tar $WRKDIR/cosmos-1.0.0/data/mpiom

# Compile cosmos-ao coupled model

cd $WRKDIR/cosmos-1.0.0/util/compile/tools
./Create_COMP_cpl_models.ksh cosmos-ao cpl0000 linux86
$WRKDIR/cosmos-1.0.0/util/COMP_libs.ksh clean
$WRKDIR/cosmos-1.0.0/util/COMP_libs.ksh
$WRKDIR/cosmos-1.0.0/src/mod/oasis3/COMP_oasis3_MPI1.ksh clean
$WRKDIR/cosmos-1.0.0/src/mod/oasis3/COMP_oasis3_MPI1.ksh
$WRKDIR/cosmos-1.0.0/src/mod/echam5/COMP_echam5_cpl0000.ksh clean
$WRKDIR/cosmos-1.0.0/src/mod/echam5/COMP_echam5_cpl0000.ksh
$WRKDIR/cosmos-1.0.0/src/mod/mpiom/COMP_mpiom_cpl0000.ksh clean
$WRKDIR/cosmos-1.0.0/src/mod/mpiom/COMP_mpiom_cpl0000.ksh

# Compile echam5 standalone

cd $WRKDIR/cosmos-1.0.0/util/compile/tools
./Create_COMP_models.frm echam5 "NONE" "" "" linux86 atm0000
$WRKDIR/cosmos-1.0.0/src/mod/echam5/COMP_echam5_atm0000.ksh clean
$WRKDIR/cosmos-1.0.0/src/mod/echam5/COMP_echam5_atm0000.ksh

# Compile mpiom standalone

cd $WRKDIR/cosmos-1.0.0/util/compile/tools
./Create_COMP_models.frm mpiom "NONE" "" "" linux86 oce0000
$WRKDIR/cosmos-1.0.0/src/mod/mpiom/COMP_mpiom_oce0000.ksh clean
$WRKDIR/cosmos-1.0.0/src/mod/mpiom/COMP_mpiom_oce0000.ksh

# Create echam5 tasks

cd $WRKDIR/cosmos-1.0.0/util/running/tools
./Create_TASKS.frm echam5 atm0000 linux86
./Create_TASKS.frm echam5 atm0000 linux86

# Create mpiom tasks

cd $WRKDIR/cosmos-1.0.0/util/running/tools
./Create_TASKS.frm mpiom oce0000 linux86
./Create_TASKS.frm mpiom oce0000 linux86

# Create cosmos-ao tasks

cd $WRKDIR/cosmos-1.0.0/util/running/tools
./Create_TASKS.frm cosmos-ao cpl0000 linux86
./Create_TASKS.frm cosmos-ao cpl0000 linux86

# Submit echam5 tasks

cd $WRKDIR/cosmos-1.0.0/experiments/atm0000/scripts
bsub -W 60 -n 3 -o $PWD/out -e $PWD/err < atm0000.run

# Submit mpiom tasks

cd $WRKDIR/cosmos-1.0.0/experiments/oce0000/scripts
bsub -W 60 -n 1 -o $PWD/out -e $PWD/err < oce0000.run

# Submit cosmos-ao tasks

cd $WRKDIR/cosmos-1.0.0/experiments/cpl0000/scripts
bsub -W 60 -n 5 -o $PWD/out -e $PWD/err < cpl0000.run

Files: