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.

...

             git clone ~winger/gem/v_5.1.1/Abs/UQAM_latest/gem


Volet
bgColorgray

If there were uncommited changes to the code you would like to get as well you will have to copy the modified files by hand. This is not elegant at all, but if you want to make sure you got all modifications you can also remove your source code and then copy the source code you want by hand. For example:

             cd ~/gem/v_5.1.1/Abs/My_Abs/gem/src
             rm -rf
gemdyn modelutils rpnphy
             cd ~/gem/v_5.1.1/Abs/Abs_directory_to_clone_from/gem/src
            
rsync -ruvt gemdyn modelutils rpnphy ~/gem/v_5.1.1/Abs/My_Abs/gem/src

c) Create working directories

...

e) Create make files and dependencies

(Only need needed once at the beginning and whenever you add any new routines or add include files or module "use" lines to an existing routine.)

            cmake   -DCOMPILER=intel   -DCMAKE_VERBOSE_MAKEFILE=ON    -DWORK_PREFIX=${abs_dir}/work    ${abs_dir}/project
or add a flag to tell the compiler to compile P3 for GEM and not for WRF, although GEM should be the default:

            cmake   -DCMAKE_Fortran_FLAGS_INIT=-DECCCGEM  -DCOMPILER=intel   -DCMAKE_VERBOSE_MAKEFILE=ON    -DWORK_PREFIX=${abs_dir}/work    ${abs_dir}/project

f) Compile and create executable

            make -j4 maingemdm

The key '-j4' makes the command use 4 cores in parallel. But you can also run it on one core only with:

            make maingemdm

If the executable got created, you will find it under:

...