Ignore:
Timestamp:
Mar 30, 2009, 4:46:54 PM (16 years ago)
Author:
Ehouarn Millour
Message:

Premiere vaque de modifications pour l'unification des dynamiques (planetes-Terre) et un peu de netoyage ...

  • modified 'makegcm' and 'makegcm_fcm' to remove 'CPP_PHYS' key and add 'CPP_EARTH' preprocessing key instead
  • updated 'diagedyn.F' (in dyn3d and dyn3dpar) to use 'CPP_EARTH' key
  • added 'ioipsl_getincom.F90' and 'ioipsl_stringop.F90' to 'dyn3d' and 'dyn3dpar' for future possibility of running without IOIPSL library
  • modified conf_gcm.F ( in d'yn3d' and 'dyn3dpar') to read in flag 'planet_type' (default=='earth') (flag added in 'control.h')
  • modified 'gcm.F' (in 'dyn3d' and 'dyn3dpar') so that flags so that 'read_start' and 'iflag_phys' (known from conf_gcm.F) are used
  • added flag 'output_grads_dyn' (read by conf_gcm.F, stored in 'control.h') to write grads outputs from 'leapfrog.F' and 'leapfrog_p.F'
  • removed 'comdiss.h' from 'dyn3d' and 'dyn3dpar' (it is not used)
  • removed variable 'lstardis' from 'comdissip.h' (it is also in

'comdissnew.h'), in dyn3d as well as in dyn3dpar

  • adapted 'dyn3d/iniacademic.F' to not use 'inicons0.F' but 'iniconst.F'
  • updated 'dyn3d/etat0_netcdf.F' to not use 'inicons0' but 'iniconst' (added prerequisite pa=50000 instruction) and added #ifdef CPP_EARTH keys
  • removed 'inicons0.F' and 'disvert0.F' (not used any more)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ4/branches/LMDZ4-dev/makegcm

    r1114 r1140  
    206206   set optim90="-Wp'-P' -DCRAY -p$IOIPSLDIR "'-p$(LIBO) -eiv '
    207207   set optim="$optim90"
    208    set oplink="-Wl'-DSTACK=128 -f indef' -L$IOIPSLDIR -lioipsl  -L$NCDFLIB -lnetcdf "
     208   if ( $io == "ioipsl" ) then
     209     set oplink="-Wl'-DSTACK=128 -f indef' -L$IOIPSLDIR -lioipsl  -L$NCDFLIB -lnetcdf "
     210   else
     211     set oplink="-Wl'-DSTACK=128 -f indef' -L$IOIPSLDIR -L$NCDFLIB -lnetcdf "
     212   endif
    209213   set mod_loc_dir=" "
    210214   set mod_suffix=" "
     
    216220   set optim90=" -fast -fixed "
    217221   set optimtru90=" -fast -free "
    218    set opt_link="-lf77compat -L$MODIPSLDIR -lsechiba -lparameters -lstomate -lioipsl -L$NCDFLIB -lnetcdf "
     222   if ( $io == "ioipsl" ) then
     223     set opt_link="-lf77compat -L$MODIPSLDIR -lsechiba -lparameters -lstomate -lioipsl -L$NCDFLIB -lnetcdf "
     224   else
     225     set opt_link="-lf77compat -L$MODIPSLDIR -lsechiba -lparameters -lstomate -L$NCDFLIB -lnetcdf "
     226   endif
    219227   set mod_loc_dir=$localdir
    220228   set mod_suffix=mod
     
    270278   set optim="$optim90"
    271279   set optimbis=" "
    272    set opt_link=" -C hopt -float0 -ew -P static -L$MODIPSLDIR -lioipsl  $NCDFLIB -lnetcdf_i8r8_v "
     280   if ( $io == "ioipsl" ) then
     281     set opt_link=" -C hopt -float0 -ew -P static -L$MODIPSLDIR -lioipsl  $NCDFLIB -lnetcdf_i8r8_v "
     282   else
     283     set opt_link=" -C hopt -float0 -ew -P static -L$MODIPSLDIR $NCDFLIB -lnetcdf_i8r8_v "
     284   endif
    273285   set mod_loc_dir="."
    274286   set mod_suffix="mod"
     
    533545   set phys="L_PHY= LIBPHY="
    534546else
    535    set cppflags="$cppflags -DCPP_PHYS"
     547   #Default planet type is Earth
     548   set cppflags="$cppflags -DCPP_EARTH"
    536549endif
    537550
     
    685698######################################################################
    686699
    687 if ( -f $libf/phy$physique/raddim.h ) then
    688  if ( -f $libf/phy$physique/raddim.$dimh.h ) then
    689   \rm -f $libf/phy$physique/raddim.h
    690   cp -p $libf/phy$physique/raddim.$dimh.h $libf/phy$physique/raddim.h
    691   echo $libf/phy$physique/raddim.$dimh.h
    692   cat $libf/phy$physique/raddim.$dimh.h
    693   cat $libf/phy$physique/raddim.h
    694  else
    695   echo On peut diminuer la taille de l executable en creant
    696   echo le fichier $libf/phy$physique/raddim.$dimh.h
    697   \cp -p $libf/phy$physique/raddim.defaut.h $libf/phy$physique/raddim.h
    698  endif
    699 endif
     700#if ( -f $libf/phy$physique/raddim.h ) then
     701# if ( -f $libf/phy$physique/raddim.$dimh.h ) then
     702#  \rm -f $libf/phy$physique/raddim.h
     703#  cp -p $libf/phy$physique/raddim.$dimh.h $libf/phy$physique/raddim.h
     704#  echo $libf/phy$physique/raddim.$dimh.h
     705#  cat $libf/phy$physique/raddim.$dimh.h
     706#  cat $libf/phy$physique/raddim.h
     707# else
     708#  echo On peut diminuer la taille de l executable en creant
     709#  echo le fichier $libf/phy$physique/raddim.$dimh.h
     710#  \cp -p $libf/phy$physique/raddim.defaut.h $libf/phy$physique/raddim.h
     711# endif
     712#endif
    700713
    701714######################################################################
     
    793806   set f90=$FC_LINUX
    794807   if ( $FC_LINUX == 'pgf90' ) then
    795    set opt_link=" -L$MODIPSLDIR $link_veget -L$NCDFLIB -lioipsl -lnetcdf "
     808     if ( $io == "ioipsl" ) then
     809       set opt_link=" -L$MODIPSLDIR $link_veget -L$NCDFLIB -lioipsl -lnetcdf "
     810     else
     811       set opt_link=" -L$MODIPSLDIR $link_veget -L$NCDFLIB -lnetcdf "
     812     endif
    796813   else if ($FC_LINUX == 'g95') then
    797      set opt_link="-L$MODIPSLDIR $link_veget -lioipsl -L$NCDFLIB -lnetcdf -lioipsl -lnetcdf "
     814     if ( $io == "ioipsl" ) then
     815       set opt_link="-L$MODIPSLDIR $link_veget -lioipsl -L$NCDFLIB -lnetcdf -lioipsl -lnetcdf "
     816     else
     817       set opt_link="-L$MODIPSLDIR $link_veget -lioipsl -L$NCDFLIB -lnetcdf -lnetcdf "
     818     endif
    798819   else
    799820     set opt_link=" "
     
    804825   set f77=f90
    805826   set f90=f90
    806    set opt_link="-lf77compat -L$MODIPSLDIR $link_veget -lioipsl -L$NCDFLIB -lnetcdf "
     827   if ( $io == "ioipsl" ) then
     828     set opt_link="-lf77compat -L$MODIPSLDIR $link_veget -lioipsl -L$NCDFLIB -lnetcdf "
     829   else
     830     set opt_link="-lf77compat -L$MODIPSLDIR $link_veget -L$NCDFLIB -lnetcdf "
     831   endif
    807832#################
    808833else if $NEC then
Note: See TracChangeset for help on using the changeset viewer.