Ignore:
Timestamp:
Jul 24, 2017, 6:28:59 PM (7 years ago)
Author:
mlefevre
Message:

Update of venus LMD physics compilation on different machine and fixed problem of debug mode for real case and Netcdf problem for void physics in real case

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MESOSCALE/LMD_MM_MARS/makemeso

    r1746 r1752  
    456456                         mv -f yeah configure.wrf ;;
    457457     mpifort_64)     # MPI+IFORT, 64 bits, no nesting / nesting
    458                        echo 9 | configure > log_compile 2> log_error
     458                       echo 9 | ./configure > log_compile 2> log_error
    459459                       sed -f physics.sed configure.wrf > yeah ; mv -f yeah configure.wrf
    460460                       sed s+"-f90=ifort"+" "+g configure.wrf > yeah ; mv -f yeah configure.wrf
     
    467467                             then
    468468                             echo 'DEBUG DEBUG DEBUG DEBUG'
    469                              sed s+"# -g"+" -g -no-ftz -traceback -ftrapuv -fp-stack-check -check"+g configure.wrf > yeah
     469                             sed s+"#-g"+" -g -no-ftz -traceback -ftrapuv -fp-stack-check -check"+g configure.wrf > yeah
    470470                             mv -f yeah configure.wrf
    471471                       fi
     
    487487                         sed s+"mpicc"+"mpicc -DMPI2_SUPPORT"+g configure.wrf > yeah ; mv -f yeah configure.wrf
    488488                         ## !!! NETCDF must be defined
    489                          sed s+"-L../$phys/libo -llmd"+"-L../$phys/libo -llmd $NETCDF/lib/libnetcdf.a"+g configure.wrf > yeah
     489                         if [[ "${phys}" != *"void"* ]]
     490                         then
     491                           sed s+"-L../$phys/libo -llmd"+"-L../$phys/libo -llmd $NETCDF/lib/libnetcdf.a"+g configure.wrf > yeah
     492                         else
     493                           sed s+"-lesmf_time"+"-lesmf_time $NETCDF/lib/libnetcdf.a"+g configure.wrf > yeah
     494                         fi
    490495                         mv -f yeah configure.wrf
    491496                         #### POUR LE TRAITEMENT PARTICULIERS des NESTS sur iDATAPLEX [cf. module_lmd_driver]
     
    584589  then
    585590    sed s+"LIB_BUNDLED     = "+"LIB_BUNDLED     =    /usr/lib64/liblapack.so  \ "+g configure.wrf > yeah ; mv -f yeah configure.wrf
    586     #sed s+"RWORDSIZE       =       "+"RWORDSIZE       =       8 # "+g configure.wrf > yeah ; mv -f yeah configure.wrf
    587     #sed s+"-DLWORDSIZE=4 "+"-DLWORDSIZE=8 "+g configure.wrf > yeah ; mv -f yeah configure.wrf
    588     #sed s+"-DIWORDSIZE=4 "+"-DIWORDSIZE=8 "+g configure.wrf > yeah ; mv -f yeah configure.wrf
    589     #sed s+"FCBASEOPTS      ="+"FCBASEOPTS      = -r8 "+g configure.wrf > yeah ; mv -f yeah configure.wrf
    590     #sed s+"-fp-model precise "+"-fpconstant -fp-model precise "+g configure.wrf > yeah ; mv -f yeah configure.wrf
    591591  fi
    592592
     
    719719      nohup makegcm_${compilo} -debug -full -t ${tra} -p mars -d ${physz} testphys1d | tee libo/log_compile_phys | grep 'warnings' >> libo/log_compile_phys
    720720    elif [[ "${phys}" == *"venus"* ]]
    721     then 
     721    then
    722722      echo 'DEBUG DEBUG DEBUG DEBUG'
    723       nohup makelmdz -debug -full -p venus -d 181 rcm1d -arch linux-ifort -cpp MESOSCALE | tee libo/log_compile_phys | grep 'warnings' >> libo/log_compile_phys
     723      nohup ./makelmdz -debug -full -p venus -d 51 rcm1d -arch linux-ifort -cpp MESOSCALE  | tee libo/log_compile_phys | grep 'warnings' >> libo/log_compile_phys # on /u/ and /planeto/
     724      nohup ./makelmdz --debug p venus -d 51 rcm1d -arch linux-ifort -cpp MESOSCALE  | tee libo/log_compile_phys | grep 'warnings' >> libo/log_compile_phys
    724725    fi
    725726  else
     
    729730    elif [[ "${phys}" == *"venus"* ]]
    730731    then
    731       nohup makelmdz -full -p venus -d 51 rcm1d -arch linux-ifort -cpp MESOSCALE  | tee libo/log_compile_phys | grep 'warnings' >> libo/log_compile_phys
     732      nohup ./makelmdz -full -p venus -d 51 rcm1d -arch linux-ifort_meso -cpp MESOSCALE  | tee libo/log_compile_phys | grep 'warnings' >> libo/log_compile_phys # on /u/ and /planeto/
     733      nohup ./makelmdz -p venus -d 51 rcm1d -arch linux-ifort_meso -cpp MESOSCALE  | tee libo/log_compile_phys | grep 'warnings' >> libo/log_compile_phys
     734      #nohup ./makelmdz -full -p venus -d 51 rcm1d -arch CICLADifort -cpp MESOSCALE  | tee libo/log_compile_phys | grep 'warnings' >> libo/log_compile_phys # on CICLAD
     735      #nohup ./makelmdz -p venus -d 51 rcm1d -arch CICLADifort -cpp MESOSCALE  | tee libo/log_compile_phys | grep 'warnings' >> libo/log_compile_phys
     736      #nohup ./makelmdz -full -p venus -d 51 rcm1d -arch X64_MESU -cpp MESOSCALE  | tee libo/log_compile_phys | grep 'warnings' >> libo/log_compile_phys #on MESU
     737      #nohup ./makelmdz -p venus -d 51 rcm1d -arch X64_MESU -cpp MESOSCALE  | tee libo/log_compile_phys | grep 'warnings' >> libo/log_compile_phys
     738      #nohup makelmdz -full -p venus -d 51 rcm1d -arch X64_OCCIGEN -cpp MESOSCALE  | tee libo/log_compile_phys | grep 'warnings' >> libo/log_compile_phys #on OCCIGEN
     739      #nohup makelmdz -p venus -d 51 rcm1d -arch X64_OCCIGEN -cpp MESOSCALE  | tee libo/log_compile_phys | grep 'warnings' >> libo/log_compile_phys
    732740    fi
    733741  fi
     
    742750  cd libo
    743751  mkdir temp
    744   if [[ "${phys}" == *"venus"* ]]
    745   then
    746     cp -f linux*/*.a temp/
     752  if [[ "${phys}" == *"mars"* ]]
     753  then
     754    cp -f LINUX*/*.a temp
     755  else #VENUS
     756    cp -f linux*/*.a temp/ # on /u/ and /planeto/
     757    #cp -f /home/mlefevre/modipsl/lib/libioipsl.a temp/ #on CICLAD
     758    #cp -f X64*/*.a temp #on MESU and OCCIGEN
    747759    cp -f ../ioipsl/libioipsl.a temp/
    748   else
    749     cp -f LINUX*/*.a temp/
    750760  fi
    751761  cd temp
     
    775785      # include modules for interfacing
    776786      mv  *.mod ../inc/
    777     else # [[ "${phys}" == *"venus"* ]]
    778       mv  ./libo/linux*/*.mod ../inc/
     787    elif [[ "${phys}" == *"venus"* ]] 
     788    then
     789      mv  ./libo/linux*/*.mod ../inc/ # on /u/ and /planeto/
     790      #mv  ./libo/CICLAD*/*.mod ../inc/ # on CICLAD
     791      #mv  ./libo/X64*/*.mod ../inc/ # on MESU and OCCIGEN
    779792      cp -f ./ioipsl/*.mod ../inc/
    780      
    781793    fi
    782794  fi
Note: See TracChangeset for help on using the changeset viewer.