Comparaison des versions

Légende

  • Ces lignes ont été ajoutées. Ce mot a été ajouté.
  • Ces lignes ont été supprimées. Ce mot a été supprimé.
  • La mise en forme a été modifiée.

...

After you created the work directory you need to create some symbolic links to this directory:

    mkdir -p ${MY_WORK_DIR}
mkdir -p /path/to/my/work/directory
export     ln -s ${MY_WORK_DIR} MY_WORK_DIR
    mkdir ${MY_WORK_DIR
=/path/to/my/work/directory
mkdir build
cd }/build
    ln -s ${MY_WORK_DIR}/build

Download database

GOAS comes with it's own database (initial conditions, geophysical & climatological fields, driving data). You only need to download it if you want to run any of the GOAS test configurations. Before downloading it I suggest you create a directory for it outside your home and create a symbolic to this directory, called 'gem_dbase'. For example:

    mkdir ${MY_WORK_DIR}/gem_dbase
    ln -s ${MY_WORK_DIR}/gem_dbase

Then If you want to use it you can download it with:

    download-dbase.sh .

Part 2

Set compiler version and compile

Change into the 'gem' directory under which you downloaded your source code and make sure you did export our work directory:

    export MY_WORK_DIR=/path/to/my/work/directory

(In case you forgot where this directory is, just check where your link 'MY_WORK_DIR' directory points to.)

Depending on which machine you work and which compiler you want to use the commands differ a little. Here are some options:

At UQAM

If you want to use the Intel compiler set:

      module load openmpi/2.1.5-intel-19.0-mkl
      module load utils/misc # to get an up to date version of cmake
      cmake -DCOMPILER=intel -DCMAKE_VERBOSE_MAKEFILE=ON -DWORK_PREFIX=${MY_WORK_DIR} ../project

If you want to use the GNU compiler (gcc/gfortran) set:

module load openmpi/3.1.5-gcc-8.3
cmake -DCOMPILER=gnu -DCMAKE_VERBOSE_MAKEFILE=ON -DWORK_PREFIX=${MY_WORK_DIR} ../project

On Niagara

• using the native environment (recommended)

module load intel/2019u4 openmpi/4.0.1 fftw/3.3.8 cmake
cmake -DCOMPILER=intel -DCMAKE_VERBOSE_MAKEFILE=ON -DWORK_PREFIX=${MY_WORK_DIR} ../project

• using the common Environment

module load CCEnv
module load nixpkgs/16.09
module load intel/2019.3 
module load openmpi
module load cmake/3.16.3
module load fftw-mpi
cmake -DCOMPILER=intel -DCMAKE_VERBOSE_MAKEFILE=ON -DWORK_PREFIX=${MY_WORK_DIR} ../project

• At UQAM
If you want to use the Intel compiler set:

...