100% found this document useful (1 vote)
2K views11 pages

Install RegCM4.3

This document provides instructions for installing the RegCM4.3rc regional climate model. It describes downloading the source code, installing required software like netCDF and MPI libraries, configuring the code for the local system, compiling the code to create executable files, and running a test of the model.

Uploaded by

jmatias765428
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
2K views11 pages

Install RegCM4.3

This document provides instructions for installing the RegCM4.3rc regional climate model. It describes downloading the source code, installing required software like netCDF and MPI libraries, configuring the code for the local system, compiling the code to create executable files, and running a test of the model.

Uploaded by

jmatias765428
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 11

Package Description Install Required Software Obtain Code Congure Compile Model

RegCM 4.3 training session I Installing RegCM4.3rc


G. Giuliani International Centre for Theorethical Physics - Trieste Earth System Physics Section
ICTP - Earth System Physics Section

May 7, 2012
ictp-logo

ICTP - ESP

Install RegCM4.3rc

Package Description Install Required Software Obtain Code Congure Compile Model

Description
The model is distributed as Fortran90 source code. A compiler is needed to transform to executable. GNU GNU fortran compiler intel Intel R ifort fortran compiler pgi Portland R pgf90 fortran compiler g95 g95 fortran compiler Check which one is present on system. 1

ictp-logo

Side by side install? Consider Modules package


ICTP - ESP Install RegCM4.3rc

Package Description Install Required Software Obtain Code Congure Compile Model

Requirements
The model needs at least two libraries: netCDF netCDF Library nc-config --version MPI MPI Library ompi_info --version ompi release We have an environment for the workshop:
bash source /home/netapp-clima/users/ggiulian/workshop_env.sh
ictp-logo

ICTP - ESP

Install RegCM4.3rc

Package Description Install Required Software Obtain Code Congure Compile Model

GPL license primer


The usual way to install a package on Linux is to compile the software. The Free Software distributed with GPL license empowers the user giving the freedom to use the software for any reason the freedom to study how it works the freedom to modify it to t any personal need the freedom to develop any product depending on it the limit to contribute modications to the original software developer the limit to distribute any derived work with the same license again as source code
ICTP - ESP Install RegCM4.3rc

ictp-logo

Package Description Install Required Software Obtain Code Congure Compile Model

Software Install on Linux


The normal steps to install software relies usually on GNU autotools Download source package as compressed archive Unpack it on disk Congure software build Translate source code in machine executable Install software either on system or user path Modify environment to use the software
ictp-logo

ICTP - ESP

Install RegCM4.3rc

Package Description Install Required Software Obtain Code Congure Compile Model

RegCM4.3rc home
The RegCM4.3rc package is distributed by the Gforge site http://gforge.ictp.it/gf/project/regcm Files section on the left sidebar Package RegCM4.3rc click on the tar.gz le Download packed release le, unpack on local disk: cd Downloads mv RegCM-4.3-rc1.tar.gz /scratch/$USER cd /scratch/$USER tar zxvf RegCM-4.3-rc1.tar.gz
ictp-logo ICTP - ESP Install RegCM4.3rc

Package Description Install Required Software Obtain Code Congure Compile Model

Congure RegCM4.3rc builder


First, we need to check the workshop environment: gfortran --version cd RegCM-4.3-rc1 Let the configure script do some work for you. ./configure CC=gcc FC=gfortran Find the required software listed above in 3 Set up the correct ag for the compiler Add or remove from compilation part of the code
ictp-logo

ICTP - ESP

Install RegCM4.3rc

Package Description Install Required Software Obtain Code Congure Compile Model

Make the executable

How to make what executables? make install

ictp-logo

ICTP - ESP

Install RegCM4.3rc

Package Description Install Required Software Obtain Code Congure Compile Model

Whats happened?

ls Bin aerosol average GrADSNcPlot GrADSNcPrepare icbc chem_icbc regcmMPI clm2rcm sigma2p regrid terrain sst

Now we can start play around with the model.

ictp-logo

ICTP - ESP

Install RegCM4.3rc

Package Description Install Required Software Obtain Code Congure Compile Model

Run Environment
We setup a run environment and start the setup cd /scratch/$USER mkdir -p run/{input,output} cd run ln -sf /scratch/$USER/RegCM-4.3-rc1/Bin . cp /scratch/$USER/RegCM-4.3-rc1/Testing/test_001.in . gedit test_001.in

ictp-logo

ICTP - ESP

Install RegCM4.3rc

Package Description Install Required Software Obtain Code Congure Compile Model

Running the model

./Bin/terrain test_001.in ./Bin/sst test_001.in ./Bin/icbc test_001.in mpirun -np 2 ./Bin/regcmMPI test_001.in We can now go to step 2, analize the output.

ictp-logo

ICTP - ESP

Install RegCM4.3rc

You might also like