Last change
on this file since 1000 was
979,
checked in by emillour, 12 years ago
|
Common dynamics:
Updates in the dynamics (seq and ) to keep up with updates
in LMDZ5 (up to LMDZ5 trunk, rev 1760):
- General stuff (essentially to keep up with Earth model):
- Updated makelmdz_fcm and makelmdz (more control on dimension.h,
added option -mem, although it is not usefull for now)
- Updated build_gcm with more control over fcm
- Updated create_make_gcm (enable looking for code in subdirectories)
- bibio:
- updates (just renaming the files actually...) new_unit.F90 => new_unit_m.F90,
pchsp_95.F90 => pchsp_95_m.F90 and pchfe_95.F90 => pchfe_95_m.F90
- filtrez:
- mod_fft.F90: use more baseline CPP directives for preprocessor compatibility
- mod_filtre_fft_loc.F90: added this new file
- filtreg_mod.f90: added calls to init_..._loc
- filtreg.F: fixed calls to DGEMM into SGEMM (preprocessing does the switch)
- dyn3d:
- removed obsolete files: etat0_netcdf.F90 limit_netcdf.F90
pres2lev.F90
- added new file : pres2lev_mod.F90 (module containing "old" pres2lev)
- gcm.F: changed args to call to inidissip (added arg "vert_prof_dissip")
- inidissip.F90: added arg "vert_prof_dissip" and the "earth model"
discterizations (flagged with "planet_type=="earth")
- comdissnew.h: added 'vert_prof_dissip' to the common block
- guide_mod.F90: added the "use pres2lev_mod"
- conf_gcm.F: cosmetics, and evaluation of vert_prof_dissip,
(and also of dissip_* factors, for Earth model)
- comconst.h : added dissip_factz,dissip_zref variables (for Earth mode dissip)
- dyn3dpar:
- removed obsolete files: etat0_netcdf.F90 limit_netcdf.F90
pres2lev.F90 mod_const_para.F90
- added new files: pres2lev_mod.F90 (module containing "old" pres2lev)
mod_const_mpi
- abort_gcm : better control of abort in parallel mode
- gcm.F: changed args to call to inidissip (added arg "vert_prof_dissip")
- inidissip.F90: added arg "vert_prof_dissip" and the "earth model"
discterizations (flagged with "planet_type=="earth")
- comdissnew.h: added 'vert_prof_dissip' to the common block
- filtreg_p.F : bug correction (array bounds)
- guide_p_mod.F90 : added the "use pres2lev_mod"
- conf_gcm.F : cosmetics (and evaluation of vert_prof_dissip , and
also of dissip_* factors, for Earth model)
plus check if "adjust" is indeed not used in OpenMP
- comconst.h : add dissip_factz,dissip_zref variables (for Earth mode dissip)
EM
|
File size:
1.4 KB
|
Rev | Line | |
---|
[843] | 1 | #!/bin/bash |
---|
[979] | 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 |
---|
[1] | 6 | |
---|
[979] | 7 | if 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 |
---|
| 27 | else |
---|
| 28 | echo "compiling..." > '.lock' |
---|
| 29 | fi |
---|
| 30 | |
---|
| 31 | dirname="" #path to where the fcm command will be found |
---|
| 32 | if (( $# >= 1 )) ; then |
---|
| 33 | dirname=$1 |
---|
| 34 | # check that "dirname" exists and is a directory |
---|
| 35 | if [[ ! -d $dirname ]] ; then |
---|
| 36 | echo "$0 error : $dirname is not a directory" |
---|
[1] | 37 | exit |
---|
[843] | 38 | fi |
---|
[979] | 39 | # add a trailing "/" to $dirname |
---|
| 40 | dirname=${dirname}"/" |
---|
[843] | 41 | fi |
---|
[1] | 42 | |
---|
[979] | 43 | # run "fcm build" command |
---|
| 44 | ${dirname}fcm build |
---|
[1] | 45 | |
---|
[979] | 46 | # cleanup |
---|
[1] | 47 | \rm -f '.lock' |
---|
[979] | 48 | |
---|
Note: See
TracBrowser
for help on using the repository browser.