source: trunk/LMDZ.COMMON/build_gcm @ 3430

Last change on this file since 3430 was 1019, checked in by emillour, 11 years ago

Common dynamics; keep up with updates (seq and ) in LMDZ5 (up tio rev 1845):

  • General stuff:
  • makelmdz_fcm: add options -j # (compile using # threads) and -full, and to keep up

with Earth model, possibility to compile with various versions of orchidee

  • bld.cfg: adaptations to enable compiling using multiple threads
  • build_gcm: adaptations to enable compiling using multiple threads
  • makelmdz: keep up with Earth model: possibility to compile with various versions of orchidee + cosmetic changes + library directory name change
  • bibio:
  • wxios.F90 : Added for possible future use of XIOS library
  • filtrez:
  • mkl_dft_type.f90 & mkl_dfti.f90 : MKL (for MKL FFT) interface definitions
  • filtreg_mod : limit use of FFT to parallel mode
  • mod_filtre_fft.F90 & mod_filtre_fft_lov.F90 : swich to use parallel_lmdz
  • dyn3d:
  • abort_gcm.F : add things for xios
  • advtrac.F90 : minor change in CFL outputs
  • ce0l.F90 : indicesol.h is now module indice_sol_mod
  • comvert.h : cosmetic change on comments
  • gcm.F : add xios and use module indice_sol_mod (for INCA)
  • inigeom.F : move two computations outside loop
  • dyn3dpar:
  • parallel.F90 => parallel_lmdz.F90 : and change all the "use parallel" into "use parallel_lmdz" in all files in dyn3dpar
  • comvert.h : cosmetic change on comments
  • gcm.F : add xios and use module indice_sol_mod (for INCA)
  • leapfrog_p.F : add xios + correction for times in Newtonian case
  • ce0l.F90 : indicesol.h is now module indice_sol_mod
  • inigeom.F : move two computations outside loop

EM

File size: 1.4 KB
Line 
1#!/bin/bash
2# Usage:
3# ./build_gcm [path]
4# where 'path' is an optional argument to this script specifying
5# the full path to where the 'fcm' command is to be found
6
7if test -f '.lock' 
8  then
9    echo 'ATTENTION: vous etes sans doute en train de compiler le modele par ailleurs'
10    echo "Attendez que la premiere compilation soit terminee pour relancer la suivante."
11    echo "Si vous etes sur que vous ne compilez pas le modele par ailleurs,"
12    echo "vous pouvez continuer en repondant oui."
13    echo "Voulez-vous vraiment continuer?"
14    echo ""
15    echo "WARNING: you are probably already compiling the model somewhere else."
16    echo "Wait until the first compilation is finished before launching this one."
17    echo "If you are sure that you are not compiling elsewhere, just answer "
18    echo "yes (or 'oui') to the question below to proceed."
19    echo "Do you wish to continue?"
20    read ouinon
21    if [[ $ouinon == "oui" || $ouinon == "yes" ]] 
22        then
23        echo OK
24    else
25        exit
26    fi
27else
28    echo "compiling..." > '.lock'
29fi
30
31job=1
32dirname="" #path to where the fcm command will be found
33if (( $# >= 1 )) ; then
34  dirname=$1
35  # check that "dirname" exists and is a directory
36  if [[ ! -d $dirname ]] ; then
37    echo "$0 error : $dirname is not a directory"
38    exit
39  fi
40  # add a trailing "/" to $dirname
41  dirname=${dirname}"/"
42  shift;
43fi
44
45# run "fcm build" command
46${dirname}fcm build $*
47
48# cleanup
49\rm -f '.lock' 
50
Note: See TracBrowser for help on using the repository browser.