Ignore:
Timestamp:
Mar 20, 2001, 4:14:30 PM (24 years ago)
Author:
lmdzadmin
Message:

Synchronisation avec version MAFO:

ajout sortie netcdf des champs echanges avec le coupleur
quelques save sur les variables (pb stack/static sur le nec)

LF

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ.3.3/branches/rel-LF/makegcm

    r177 r179  
    2929  setenv LIBOGCM "`pwd`/lib"
    3030  setenv IOIPSLDIR $LIBOGCM
     31  setenv MODIPSLDIR $LIBOGCM
    3132  cd $localdir
    3233  if ( `hostname` == rhodes ) then
     
    4142    endif
    4243  endif
    43   \cp libf/phylmd/oasis.F libf/phylmd/oasis.dummy
    44   \cp libf/phylmd/oasis.true libf/phylmd/oasis.F
     44# si modipsl c'est couple??? et LMDZ+SECHIBA alors
     45  \cp -p libf/phylmd/oasis.F libf/phylmd/oasis.dummy
     46  \cp -p libf/phylmd/oasis.true libf/phylmd/oasis.F
    4547else
    4648  if ( ! $?LMDGCM ) then
     
    5658    echo for instance: "setenv IOIPSLDIR /usr/myself/ioipsl" in .cshrc
    5759    exit
     60  else
     61      setenv MODIPSLDIR $IOIPSLDIR
    5862  endif
    5963  if ( ! $?NCDFLIB ) then
     
    172176   set optim90=" -fast -fixed "
    173177   set optimtru90=" -fast -free "
    174    set opt_link="-lf77compat -L$modipsl/lib -lsechiba -lparameters -lstomate -L$IOIPSLDIR -lioipsl -L$NCDFLIB -lnetcdf "
     178   set opt_link="-lf77compat -L$MODIPSLDIR -lsechiba -lparameters -lstomate -lioipsl -L$NCDFLIB -lnetcdf "
    175179   set mod_loc_dir=$localdir
    176180   set mod_suffix=mod
     
    187191   set optim90="$optim $optimbis -X9 -w"
    188192   if $COUPLE then
    189      set opt_link="-Wg,-c $IOIPSLDIR/liboasis2.4_mpi2.a /usr/lang/mpi2/lib64/libmpi.a /usr/lang/mpi2/lib64/libmp.a /usr/local/lib/lib64/libnetcdf_cc.a -L$IOIPSLDIR -lioipsl"
     193     set opt_link="-Wg,-c $MODIPSLDIR/liboasis2.4_mpi2.a /usr/lang/mpi2/lib64/libmpi.a /usr/lang/mpi2/lib64/libmp.a /usr/local/lib/lib64/libnetcdf_cc.a -L$MODIPSLDIR -lioipsl"
    190194     set oplink="-Wl,-t,-P,-dy "
    191195   else
    192      set opt_link="-Wg,-c /usr/local/lib/lib64/libnetcdf_cc.a -L$IOIPSLDIR -lioipsl"
     196     set opt_link="-Wg,-c /usr/local/lib/lib64/libnetcdf_cc.a -L$MODIPSLDIR -lioipsl"
    193197     set oplink="-Wl,-t,-dy "
    194198   endif
    195    set mod_loc_dir=$IOIPSLDIR
     199   set mod_loc_dir=$MODIPSLDIR
    196200   set mod_suffix=mod
    197201else if $DEC then
     
    201205   set optim="-fast "
    202206   set optim90=" -fast "
    203    set optimtru90=" -fast -c -Mfree -module $IOIPSLDIR "
    204    set opt_link=" -Mfree -L /usr/local/pgi/linux86/lib -lpgf90 -lpgftnrtl -lpghpf -lpghpf2 -L$modipsl/lib -lsechiba -lparameters -lstomate -L$NCDFLIB -lnetcdf -L$IOIPSLDIR -lioipsl -Wl,-Bstatic -L/usr/lib/gcc-lib/i386-linux/2.95.2/"
    205    set mod_loc_dir=$IOIPSLDIR
     207   set optimtru90=" -fast -c -Mfree -module $MODIPSLDIR "
     208   set opt_link=" -Mfree -L /usr/local/pgi/linux86/lib -lpgf90 -lpgftnrtl -lpghpf -lpghpf2 -L$MODIPSLDIR -lsechiba -lparameters -lstomate -L$NCDFLIB -lnetcdf -lioipsl -Wl,-Bstatic -L/usr/lib/gcc-lib/i386-linux/2.95.2/"
     209   set mod_loc_dir=$MODIPSLDIR
    206210   set mod_suffix=mod
    207211else if $NEC then
     
    210214   set optim="$optim90"
    211215   set optimbis=" "
    212    set opt_link=" -C hopt -float0 -ew -P stack -L$IOIPSLDIR -lioipsl  -L/u/rech/psl/rpsl003/IOIPSL -lnetcdf_i8r8_v "
     216   set opt_link=" -C hopt -float0 -ew -P stack -L$MODIPSLDIR -lioipsl  -L/u/rech/psl/rpsl003/IOIPSL -lnetcdf_i8r8_v "
    213217   set mod_loc_dir="."
    214218   set mod_suffix="mod"
     
    225229   if $MODIPSL then
    226230     if $COUPLE then
    227        set opt_link="-L$IOIPSLDIR -lsxioipsl -loasis2.4_mpi2 -Wl,-f nan, -float0 -ew -P stack -I$NCDFINC $NCDFLIB "
    228        set opt_link="-L$IOIPSLDIR -lsxioipsl -loasis2.4_mpi2 -float0 -ew -P stack -I$NCDFINC $NCDFLIB "
     231       set opt_link="-L$MODIPSLDIR -lsxioipsl -loasis2.4_mpi2 -Wl,-f nan, -float0 -ew -P stack -I$NCDFINC $NCDFLIB "
     232       set opt_link="-L$MODIPSLDIR -lsxsechiba -lsxparameters -lsxstomate -lsxioipsl -loasis2.4_mpi2 -float0 -ew -P stack -I$NCDFINC $NCDFLIB "
    229233#       set opt_link="-L$IOIPSLDIR -lsxioipsl -loasis2.4_mpi2 -float0 -ew -eC -P stack -I$NCDFINC $NCDFLIB "
    230234     else
    231        set opt_link="-L$IOIPSLDIR -lsxioipsl -float0 -ew -P stack -I$NCDFINC $NCDFLIB "
     235       set opt_link="-L$MODIPSLDIR -lsxioipsl -float0 -ew -P stack -I$NCDFINC $NCDFLIB "
    232236     endif
    233237     set mod_loc_dir="./"
    234238   else
    235      set opt_link=" -C hopt -float0 -ew -P stack -L$IOIPSLDIR -lioipsl -L /u/rech/psl/rpsl003/IOIPSL -lnetcdf_i8r8_v -I$NCDFINC "
     239     set opt_link=" -C hopt -float0 -ew -P stack -L$MODIPSLDIR -lioipsl -L /u/rech/psl/rpsl003/IOIPSL -lnetcdf_i8r8_v -I$NCDFINC "
    236240     set mod_loc_dir="."
    237241   endif
     
    719723 \cp $IOIPSLDIR/*.mod $libo
    720724else if $SUN then
    721  set optim90=" $optim90 -M$libo -M$modipsl/lib "
    722  set optimtru90=" $optimtru90 -M$libo -M$modipsl/lib "
     725 set optim90=" $optim90 -M$libo -M$MODIPSLDIR "
     726 set optimtru90=" $optimtru90 -M$libo -M$MODIPSLDIR "
    723727 set optim="$optim90"
    724728 \cp $IOIPSLDIR/*.mod $libo
     
    797801\rm $libf/grid/dimensions.h
    798802if $MODIPSL then
    799   \cp libf/phylmd/oasis.F libf/phylmd/oasis.true
    800   \cp libf/phylmd/oasis.dummy libf/phylmd/oasis.F
    801 endif
     803  \cp -p libf/phylmd/oasis.F libf/phylmd/oasis.true
     804  \cp -p libf/phylmd/oasis.dummy libf/phylmd/oasis.F
     805endif
Note: See TracChangeset for help on using the changeset viewer.