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.

...

Change into the directory 'gem':

    cd gem

From here on we will refer to this directory as the "gem" directory.

Create work and 'build' directory

...

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

Also, to make things easier further down, set MY_GEM_DIR to the name of your "gem" directory - see above (replace the '...' in the following command!):

    export MY_GEM_DIR=.../gem

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

...

      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} ${MY_GEM_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} ${MY_GEM_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} ${MY_GEM_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} ${MY_GEM_DIR} ../project

Create executable

...

To run GOAS you need to change into the model work directory (replace the '...' in the following command!):

    cd ${MY_WORK_DIR}
   
cd work-...                             # change into work directory, i.e. work-linux26-x86-64-intel-19.0.3.199

...