Ignore:
Timestamp:
Mar 3, 2011, 12:38:49 PM (14 years ago)
Author:
aslmd
Message:

*
mars + LMD_MM_MARS
* Precompilation flag MESOSCALE for better transparency

* in shared phymars between GCM and mesoscale model

*

M 85 mars/libf/phymars/meso_physiq.F
M 85 mars/libf/phymars/meso_inifis.F
Added a pre-compilation flag MESOSCALE so that the LMDZ.MARS GCM
will compile without stating errors because of mesoscale routines.

M 85 mars/libf/phymars/newcondens.F
M 85 mars/libf/phymars/testphys1d.F
M 85 mars/libf/phymars/dustlift.F
D 85 mars/libf/phymars/meso_testphys1d.F
D 85 mars/libf/phymars/meso_dustlift.F
D 85 mars/libf/phymars/meso_newcondens.F
Now, this MESOSCALE precompilation flag can be used to lower
the number of meso_* routines when adaptations for mesoscale
applications are not very extended.
--> Three meso_* routines were deleted and changes are
now impacted under the MESOSCALE flag in the original GCM routines
--> Completely transparent for GCM compilation since it is devoid
of the -DMESOSCALE option
--> Very good for syncing because changes in dustlift, newcondens
will be directly available in the mesoscale model

M 84 mesoscale/LMD_MM_MARS/makemeso
Changed meso_testphys1d in testphys1d

M 84 mesoscale/LMD_MM_MARS/SRC/WRFV2/mars_lmd_new/makegcm_pgf
M 84 mesoscale/LMD_MM_MARS/SRC/WRFV2/mars_lmd_new/makegcm_mpifort
M 84 mesoscale/LMD_MM_MARS/SRC/WRFV2/mars_lmd_new/makegcm_ifort
M 84 mesoscale/LMD_MM_MARS/SRC/WRFV2/mars_lmd_new/makegcm_g95
M 84 mesoscale/LMD_MM_MARS/SRC/WRFV2/mars_lmd_new/makegcm_mpi
Added the option -DMESOSCALE in these scripts

*
LMD_MM_MARS
* Various minor changes related to water cycle and plotting routines

* Also included the GW test case

*

A 0 mesoscale/LMDZ.MARS.new/myGCM/DEFS_JB/callphys.def.orig
M 84 mesoscale/NOTES.txt
D 84 mesoscale/LMD_MM_MARS/SRC/ARWpost/idl
M 84 mesoscale/LMD_MM_MARS/SRC/WRFV2/Registry/Registry.EM
M 84 mesoscale/LMD_MM_MARS/SIMU/gnome_launch.meso
M 85 mesoscale/PLOT/MINIMAL/map_latlon.pro
D 85 mesoscale/PLOT/SPEC/LES/getget.pro
M 85 mesoscale/PLOT/SPEC/MAP/map_uvt.pro
A + - mesoscale/PLOT/SPEC/getget.pro
A 0 mesoscale/PLOT/RESERVE/obsolete
A 0 mesoscale/TESTS/TESTGW.tar.gz
M 84 000-USERS

Location:
trunk/mesoscale/LMD_MM_MARS
Files:
1 deleted
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/mesoscale/LMD_MM_MARS/SIMU/gnome_launch.meso

    r81 r86  
    1313## @ class =CP
    1414# @ environment=tmpdir=$(job_name).$(jobid).results
     15# @ notification = never
    1516# @ queue
    1617grep "^# @" $0
  • trunk/mesoscale/LMD_MM_MARS/SRC/WRFV2/Registry/Registry.EM

    r81 r86  
    101101state  real  HR_NIR    ikj  misc  1  -  rd   "HR_NIR"    "HEATING RATE nirco2"             "K/s"     #SAVEMARS3 zdtnirco2
    102102state  real  HR_NLTE   ikj  misc  1  -  rd   "HR_NLTE"   "HEATING RATE nlte"               "K/s"     #SAVEMARS3 zdtnlte
    103 state  real  ALBBARE   ij   misc  1  -  rhd  "ALBBARE"   "SOIL ALBEDO"                     ""        #SAVEMARS2 albedodat
     103state  real  ALBBARE   ij   misc  1  -  rd   "ALBBARE"   "SOIL ALBEDO"                     ""        #SAVEMARS2 albedodat
    104104state  real  VMR_ICE   ikj  misc  1  -  rhd  "VMR_ICE"   "VOL. MIXING RATIO ICE"           "ppm"     #SAVEMARS3 vmr
     105state  real  TAU_ICE   ij   misc  1  -  rhd  "TAU_ICE"   "CLOUD OD at 825 cm-1 TES"        ""        #SAVEMARS2 tauTES
    105106####
    106107####
  • trunk/mesoscale/LMD_MM_MARS/SRC/WRFV2/mars_lmd_new/makegcm_g95

    r69 r86  
    181181# Ehouarn 'g95' compiler
    182182# Aymeric : added option for NETCDF libraries
    183    set optim90=" -O2 -fno-second-underscore -fstatic -fzero -Wall "
    184    set optimtru90=" -O2 -fno-second-underscore -fstatic -fzero -Wall "
     183   set optim90=" -DMESOSCALE -O2 -fno-second-underscore -fstatic -fzero -Wall "
     184   set optimtru90=" -DMESOSCALE -O2 -fno-second-underscore -fstatic -fzero -Wall "
    185185#   set opt_link=" -Mfree -L/usr/local/pgi/linux86/lib -lpgf90 -lpgftnrtl -lpghpf -lpghpf2 -L$NCDFLIB -lnetcdf -Wl,-Bstatic "
    186186# Ehouarn: there is no /usr/local/pgi/linux86/lib, but it doesn't matter
     
    378378#           set optim90="-mcmodel=medium"
    379379#         Aymeric : thought I'd complete the g95 debugging
    380           set optim="$optim"" -g -fbounds-check "
    381           set optim90="$optim90"" -g -fbounds-check "
    382           set optimtru90="$optimtru90"" -g -fbounds-check "
     380          set optim="$optim"" -g -fbounds-check -DMESOSCALE "
     381          set optim90="$optim90"" -g -fbounds-check -DMESOSCALE "
     382          set optimtru90="$optimtru90"" -g -fbounds-check -DMESOSCALE "
    383383        else
    384384           echo "pas d option debug predefinie pour cette machine"
  • trunk/mesoscale/LMD_MM_MARS/SRC/WRFV2/mars_lmd_new/makegcm_ifort

    r78 r86  
    181181# Ehouarn 'ifort' compiler
    182182   #NB: on gnome -O3 ==> NaNs ...
    183    set optim=" -O2 -ip -mkl=sequential -align common "
    184    set optim90=" -O2 -ip -mkl=sequential -align common "
    185    set optimtru90=" -O2 -ip -mkl=sequential -align common "
     183   set optim=" -DMESOSCALE -O2 -ip -mkl=sequential -align common "
     184   set optim90=" -DMESOSCALE -O2 -ip -mkl=sequential -align common "
     185   set optimtru90=" -DMESOSCALE -O2 -ip -mkl=sequential -align common "
    186186#   set opt_link=" -Mfree -lpgf90 -lpgftnrtl -lpghpf -lpghpf2 -L$NCDFLIB -lnetcdf -Bstatic "
    187187   set mod_loc_dir=$LIBOGCM
     
    374374        else if $LINUX then
    375375           ## for ifort
    376              set optim=" -g -no-ftz -traceback -ftrapuv -fp-stack-check "
    377              set optim90=" -g -no-ftz -traceback -ftrapuv -fp-stack-check "
    378              set optimtru90=" -g -no-ftz -traceback -ftrapuv -fp-stack-check "
     376             set optim=" -DMESOSCALE -g -no-ftz -traceback -ftrapuv -fp-stack-check "
     377             set optim90=" -DMESOSCALE -g -no-ftz -traceback -ftrapuv -fp-stack-check "
     378             set optimtru90=" -DMESOSCALE -g -no-ftz -traceback -ftrapuv -fp-stack-check "
    379379        else
    380380           echo "pas d option debug predefinie pour cette machine"
  • trunk/mesoscale/LMD_MM_MARS/SRC/WRFV2/mars_lmd_new/makegcm_mpi

    r69 r86  
    189189##-Ktrap=fp
    190190#   set optim90=" -fast -I. -Mlarge_arrays -mcmodel=medium"
    191    set optim=" -O2 -I. -Munroll -Mcache_align" #-C #-fpic" #-Mlarge_arrays -mcmodel=medium
    192    set optim90=" -O2 -I. -Munroll -Mcache_align" #-C #-fpic" #-Mlarge_arrays -mcmodel=medium
     191   set optim=" -DMESOSCALE -O2 -I. -Munroll -Mcache_align" #-C #-fpic" #-Mlarge_arrays -mcmodel=medium
     192   set optim90=" -DMESOSCALE -O2 -I. -Munroll -Mcache_align" #-C #-fpic" #-Mlarge_arrays -mcmodel=medium
    193193## Aymeric: added handling of large arrays and large memory
    194194## Aymeric: get rid of -Mfree for mpi
    195195#   set optimtru90=" -fast -c -Mlarge_arrays -mcmodel=medium"
    196   set optimtru90=" -O2 -I. -Munroll -Mcache_align" #-C #-fpic" #-Mlarge_arrays -mcmodel=medium
     196  set optimtru90=" -DMESOSCALE -O2 -I. -Munroll -Mcache_align" #-C #-fpic" #-Mlarge_arrays -mcmodel=medium
    197197#   set opt_link=" -Mfree -L/usr/local/pgi/linux86/lib -lpgf90 -lpgftnrtl -lpghpf -lpghpf2 -L$NCDFLIB -lnetcdf -Wl,-Bstatic "
    198198# Ehouarn: there is no /usr/local/pgi/linux86/lib, but it doesn't matter
     
    388388           set optim90="$optim90"" -G1 "
    389389        else if $LINUX then
    390            set optim90="-g -Mbounds "
     390           set optim90="-DMESOSCALE -g -Mbounds "
    391391        else
    392392           echo "pas d option debug predefinie pour cette machine"
  • trunk/mesoscale/LMD_MM_MARS/SRC/WRFV2/mars_lmd_new/makegcm_mpifort

    r78 r86  
    181181# Ehouarn 'ifort' compiler
    182182   #NB: on gnome -O3 ==> NaNs ...
    183    set optim=" -O2 -ip -mkl=sequential -align common "
    184    set optim90=" -O2 -ip -mkl=sequential -align common "
    185    set optimtru90=" -O2 -ip -mkl=sequential -align common "
     183   set optim=" -DMESOSCALE -O2 -ip -mkl=sequential -align common "
     184   set optim90=" -DMESOSCALE -O2 -ip -mkl=sequential -align common "
     185   set optimtru90=" -DMESOSCALE -O2 -ip -mkl=sequential -align common "
    186186#   set opt_link=" -Mfree -lpgf90 -lpgftnrtl -lpghpf -lpghpf2 -L$NCDFLIB -lnetcdf -Bstatic "
    187187   set mod_loc_dir=$LIBOGCM
     
    374374        else if $LINUX then
    375375           ## for ifort
    376              set optim=" -g -no-ftz -traceback -ftrapuv -fp-stack-check "
    377              set optim90=" -g -no-ftz -traceback -ftrapuv -fp-stack-check "
    378              set optimtru90=" -g -no-ftz -traceback -ftrapuv -fp-stack-check "
     376             set optim=" -DMESOSCALE -g -no-ftz -traceback -ftrapuv -fp-stack-check "
     377             set optim90=" -DMESOSCALE -g -no-ftz -traceback -ftrapuv -fp-stack-check "
     378             set optimtru90=" -DMESOSCALE -g -no-ftz -traceback -ftrapuv -fp-stack-check "
    379379        else
    380380           echo "pas d option debug predefinie pour cette machine"
  • trunk/mesoscale/LMD_MM_MARS/SRC/WRFV2/mars_lmd_new/makegcm_pgf

    r69 r86  
    180180else if $LINUX then
    181181##-Ktrap=fp
    182    set optim90=" -fast -I."
    183    set optimtru90=" -fast -c -Mfree"
     182   set optim90=" -DMESOSCALE -fast -I."
     183   set optimtru90=" -DMESOSCALE -fast -c -Mfree"
    184184#   set opt_link=" -Mfree -L/usr/local/pgi/linux86/lib -lpgf90 -lpgftnrtl -lpghpf -lpghpf2 -L$NCDFLIB -lnetcdf -Wl,-Bstatic "
    185185# Ehouarn: there is no /usr/local/pgi/linux86/lib, but it doesn't matter
     
    379379           set optim90="$optim90"" -G1 "
    380380        else if $LINUX then
    381            set optim90="-g -Mbounds "
     381           set optim90="-g -Mbounds -DMESOSCALE "
    382382        else
    383383           echo "pas d option debug predefinie pour cette machine"
  • trunk/mesoscale/LMD_MM_MARS/makemeso

    r81 r86  
    439439       touch callkeys.h.meso 
    440440         ln -sf meso_callkeys.h callkeys.h
    441        touch dustlift.F.meso
    442          ln -sf meso_dustlift.F dustlift.F  ## attention avec "ancienne nouvelle physique"
     441       #touch dustlift.F.meso
     442       #  ln -sf meso_dustlift.F dustlift.F  ## attention avec "ancienne nouvelle physique"
    443443       touch readtesassim.F90.meso
    444444         ln -sf meso_readtesassim.F90 readtesassim.F90  ## attention idem
     
    467467  then
    468468    echo 'DEBUG DEBUG DEBUG DEBUG'
    469     nohup makegcm_${compilo} -debug -t ${tra} -p mars -d ${physz} meso_testphys1d | tee libo/log_compile_phys | grep 'warnings' >> libo/log_compile_phys
     469    nohup makegcm_${compilo} -debug -t ${tra} -p mars -d ${physz} testphys1d | tee libo/log_compile_phys | grep 'warnings' >> libo/log_compile_phys
    470470  else
    471     nohup makegcm_${compilo} -t ${tra} -p mars -d ${physz} meso_testphys1d | tee libo/log_compile_phys | grep 'warnings' >> libo/log_compile_phys
     471    nohup makegcm_${compilo} -t ${tra} -p mars -d ${physz} testphys1d | tee libo/log_compile_phys | grep 'warnings' >> libo/log_compile_phys
    472472  fi
    473473  echo ... done
Note: See TracChangeset for help on using the changeset viewer.