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.

...

    mkdir -p ~/gem/v_5.1.01/GOAS/UQAMmy_basic_modsversion
    cd ~/gem/v_5.1.01/GOAS/UQAMmy_basic_modsversion

Clone and checkout

...

GOAS version

    (Old place: git clone https://gitlab.com/eccc/gem/gem.git)
    git clone https://github.com/ECCC-ASTD-MRD/gem.git
    cd gem

    git checkout -b b_ 5.1.0-rc6 5.1.0-rc6                   # rc6 latest as of 2021/02/10

Change into the directory 'gem':


Create and change into new branch

    cd gem    git checkout -b my_branch

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

Create 'work' and 'build'

...

directories

In this the 'build' directory will be your:

  • CMakeFiles
  • module files
  • object files and excecutables,
  • executables

In the 'work' directory will be:

  • copy of the excecutables
  • model scripts,
  • example config files,
  • example database,
  • and you will execute your simulation from here

Since this directory these directories can get large you must not create it them under your home but under you data space.

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

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

    mkdir -p ${MY_WORK_DIR}/build
    ln mkdir -s p ${MY_WORK_DIR} MY_WORK_DIR/work
    mkdir ln -s ${MY_WORK_DIR}/build
    ln -s ${MY_WORK_DIR}/buildwork

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}/work/gem_dbase
    ln -s ${MY_WORK_DIR}/work/gem_dbase

Then you can download it with:

...

Ancre
Set_compiler_version
Set_compiler_version

Set compiler version and

...

create Makefiles

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

MY_WORK_DIR'     export MY_WORK_DIR=/path/to/my/work/directory(In case you forgot where this directory is, just check where your link '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

Change into the 'gem/build' directory:

    cd ${MY_GEM_DIR}/build

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 Only on CentOS 7 servers! 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

...