Defining_env_modules

dan89

Daniel Goncalves
New Member
Hi,

I am porting CESM in linux Centos8 using the "centos7-linux" mach.

According to the description its necessary to define the environmental modules for gcc, netcdf, pnetcdf and mpich

mpich module is already defined and I was able to do it for gcc (copy below)

______________________________________________________________________________________

#%Module1.0#####################################################################
##
## modules compilers/gcc-8.3.1
##
## modulefiles/compilers/gcc-8.3.1.
##
proc ModulesHelp { } {
global version modroot

puts stderr "compilers/gcc-8.3.1"
}

module-whatis "Sets the environment for using gcc-8.3.1 compilers (C, Fortran)"

# for Tcl script use only
set topdir /usr
set version 8.3.1
set sys linux86

setenv CC $topdir/bin/gcc
setenv GCC $topdir/bin/gcc
setenv FC $topdir/bin/gfortran
setenv F77 $topdir/bin/gfortran
setenv F90 $topdir/bin/gfortran
prepend-path PATH $topdir/include
prepend-path PATH $topdir/bin
prepend-path LD_LIBRARY_PATH $topdir/lib

_______________________________________________________________________________________

I have installed netcdf and pnetcdf on the cluster, but don't know how to define the modules for it (e.g. setenv)

1) Its OK to set gcc for the usr/bin directory instead of download a new gcc folder for my home directory?
2) Do you have a template/example for netcdf and pnetcdf modules for me to know how to setenvs for it?

Thank you!
 
Back
Top