Changeset 330


Ignore:
Timestamp:
Oct 25, 2011, 10:10:00 PM (13 years ago)
Author:
aslmd
Message:

MESOSCALE: changes related to g95 support. but the model does not compile apparently. notes taken in NOTES.txt but sorry g95 with LMD_MM_MARS no longer supported at least on 64bits machines. LMDZ.MARS: minor changes related to warning while trying to compile with g95.

Location:
trunk
Files:
3 added
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/libf/phymars/dimradmars.h

    r148 r330  
    4949
    5050!  Warning : the "nir" thermal IR bands are not ordered by wavelength:
    51 !      iir=1 : central 15um CO2 bands \   
     51!      iir=1 : central 15um CO2 bands    
    5252!      iir=2 : CO2 band wings    [long1co2-long2co2] MINUS central band
    5353!      iir=3 : 9 um band [long1ir - long1co2]
  • trunk/LMDZ.MARS/libf/phymars/meso_inc/meso_inc_les.F

    r290 r330  
    1          if (callrichsl .eq. .false.) then
     1         if (.not.callrichsl) then
    22       
    33             DO ig=1,ngrid
  • trunk/LMDZ.MARS/libf/phymars/physiq.F

    r319 r330  
    8989c    pt(ngrid,nlayer)      Temperature (K)
    9090c    pq(ngrid,nlayer,nq)   Advected fields
    91 c    pudyn(ngrid,nlayer)    \
    92 c    pvdyn(ngrid,nlayer)     \ Dynamical temporal derivative for the
    93 c    ptdyn(ngrid,nlayer)     / corresponding variables
    94 c    pqdyn(ngrid,nlayer,nq) /
     91c    pudyn(ngrid,nlayer)    |
     92c    pvdyn(ngrid,nlayer)    | Dynamical temporal derivative for the
     93c    ptdyn(ngrid,nlayer)    | corresponding variables
     94c    pqdyn(ngrid,nlayer,nq) |
    9595c    pw(ngrid,?)           vertical velocity
    9696c
     
    9898c   -------
    9999c
    100 c    pdu(ngrid,nlayermx)        \
    101 c    pdv(ngrid,nlayermx)         \  Temporal derivative of the corresponding
    102 c    pdt(ngrid,nlayermx)         /  variables due to physical processes.
    103 c    pdq(ngrid,nlayermx,nqmx)   /
    104 c    pdpsrf(ngrid)             /
     100c    pdu(ngrid,nlayermx)       |
     101c    pdv(ngrid,nlayermx)       |  Temporal derivative of the corresponding
     102c    pdt(ngrid,nlayermx)       |  variables due to physical processes.
     103c    pdq(ngrid,nlayermx,nqmx)  |
     104c    pdpsrf(ngrid)             |
    105105c    tracerdyn                 call tracer in dynamical part of GCM ?
    106106
     
    17731773         if (calltherm .and. (z_out .gt. 0.)) then
    17741774         call surflayer_interpol(ngrid,nlayer,z0,g,zzlay,zu,zv,wmax_th
    1775      &              ,tsurf,zh,z_out,Teta_out,u_out,ustar,tstar)
     1775     &              ,tsurf,zh,z_out,Teta_out,u_out,ustar,tstar,L_mo)
    17761776
    17771777         zu2(:)=sqrt(zu(:,1)*zu(:,1)+zv(:,1)*zv(:,1))
  • trunk/LMDZ.MARS/libf/phymars/thermcell_dqupdown.F90

    r313 r330  
    212212                 if ((q(ig,k) .gt. 0.) .and. ( q(ig,k) .gt. 1.e-15 )) then
    213213                   !! only print if it is the thermal scheme which makes qa<0
    214                    print*,'qa<0 created by thermals!!!',charvar,ig,k,fm0(ig,k),qa(ig,k-1),entr0(ig,k),q(ig,k),fm0(ig,k+1),detr0(ig,k)
     214                   print*,'qa<0 created by thermals!!!',charvar,ig,k, &
     215     &                     fm0(ig,k),qa(ig,k-1),     &
     216     &                     entr0(ig,k),q(ig,k),fm0(ig,k+1),detr0(ig,k)
    215217                   print*,'---------> Cancelling qa'
    216218                 endif
  • trunk/MESOSCALE/LMD_MM_MARS/SRC/WRFV2/mars_lmd_new/makegcm_g95

    r86 r330  
    152152#setenv localdir "LOCAL_DIR=`pwd`"
    153153#setenv localdir "`pwd`"
    154 cd $model
     154d $model
    155155if $CRAY then
    156156   set optim90="-Wp'-P' -DCRAY "'-p$(LIBO) -eiv '
     
    180180else if $LINUX then
    181181# Ehouarn 'g95' compiler
    182 # Aymeric : added option for NETCDF libraries
    183    set optim90=" -DMESOSCALE -O2 -fno-second-underscore -fstatic -fzero -Wall "
    184    set optimtru90=" -DMESOSCALE -O2 -fno-second-underscore -fstatic -fzero -Wall "
     182   set optim="-O3 -fstatic -funroll-loops -fno-second-underscore -DMESOSCALE"
     183   set optim90=" -O3 -fstatic -funroll-loops -fno-second-underscore -DMESOSCALE"
     184   set optimtru90=" -O3 -fstatic -funroll-loops -fno-second-underscore -DMESOSCALE"
     185## Aymeric : added option for NETCDF libraries
     186#   set optim90=" -DMESOSCALE -O2 -fno-second-underscore -fstatic -fzero -Wall
     187#   set optimtru90=" -DMESOSCALE -O2 -fno-second-underscore -fstatic -fzero -Wall
    185188#   set opt_link=" -Mfree -L/usr/local/pgi/linux86/lib -lpgf90 -lpgftnrtl -lpghpf -lpghpf2 -L$NCDFLIB -lnetcdf -Wl,-Bstatic "
    186189# Ehouarn: there is no /usr/local/pgi/linux86/lib, but it doesn't matter
     
    339342                       
    340343    case -O:
    341         set optim90="$2" ; shift ; shift ; goto top
     344#        set optim90="$2" ; shift ; shift ; goto top
     345        set optim="$2" ; set optim90="$2" ; set optimtru90="$2" ; shift ; shift ; goto top
    342346
    343347     case -p
     
    375379           set optim90="$optim90"" -G1 "
    376380        else if $LINUX then
    377 #           set optim90="-g -Mbounds "
    378 #           set optim90="-mcmodel=medium"
    379 #         Aymeric : thought I'd complete the g95 debugging
    380           set optim="$optim"" -g -fbounds-check -DMESOSCALE "
    381           set optim90="$optim90"" -g -fbounds-check -DMESOSCALE "
    382           set optimtru90="$optimtru90"" -g -fbounds-check -DMESOSCALE "
     381##           set optim90="-g -Mbounds "
     382##           set optim90="-mcmodel=medium"
     383##         Aymeric : thought I'd complete the g95 debugging
     384#          set optim="$optim"" -g -fbounds-check -DMESOSCALE "
     385#          set optim90="$optim90"" -g -fbounds-check -DMESOSCALE "
     386#          set optimtru90="$optimtru90"" -g -fbounds-check -DMESOSCALE "
     387           ## for g95
     388           set optim="-g -Wall -ftrace=full -fbounds-check -DMESOSCALE"
     389           set optim90="-g -Wall -ftrace=full -fbounds-check -DMESOSCALE"
     390           set optimtru90="-g -Wall -ftrace=full -fbounds-check -DMESOSCALE"
    383391        else
    384392           echo "pas d option debug predefinie pour cette machine"
     
    523531# Build the appropriate 'dimensions.h' file
    524532cd dimension
    525 makdim $ntrac $dim
     533./makdim $ntrac $dim
    526534# echo contents of dimensions.h to standard output
    527535cat $libf/grid/dimensions.h
     
    751759else if $LINUX then
    752760# Ehouarn : adapt to g95
     761 set optim="$optim -fmod=$libo"
    753762 set optim90="$optim90 -fmod=$libo"
    754763 set optimtru90="$optimtru90 -fmod=$libo"
     
    772781echo $make -f $LMDGCM/makefile \
    773782OPTION_DEP="$opt_dep" OPTION_LINK="$opt_link" \
     783OPTIM="$optim" \
    774784OPTIM90="$optim90" \
    775785OPTIMTRU90="$optimtru90" \
     
    796806$make -f $LMDGCM/makefile \
    797807OPTION_DEP="$opt_dep" OPTION_LINK="$opt_link" \
     808OPTIM="$optim" \
    798809OPTIM90="$optim90" \
    799810OPTIMTRU90="$optimtru90" \
     
    817828PROG=$code
    818829
     830# cleanup, remove dimensions.h
    819831\rm $libf/grid/dimensions.h
  • trunk/MESOSCALE/LMD_MM_MARS/makemeso

    r318 r330  
    389389                     # PGF90, 64 bits, no nesting
    390390     pgf_64_single)    echo 1 | configure > log_compile 2> log_error
     391                       #### the following line is necessary because readtesassim has a line "use netcdf" in it!
     392                       #sed s+"-L../mars_lmd/libo -llmd"+"-L../mars_lmd/libo -llmd $NETCDF/lib/libnetcdf.a"+g configure.wrf > yeah ; mv -f yeah configure.wrf
    391393                       sed -f mars.sed configure.wrf > yeah ; mv -f yeah configure.wrf ;;
    392394                     # PGF90, 64 bits, nesting
     
    400402     g95_64_single)    cd arch ; sed s/"PC Linux i486 i586 i686, g95 compiler"/"PC Linux i486 i586 i686 x86_64, g95 compiler"/g configure.defaults > yeahyeahyeah ; rm configure.defaults ; mv yeahyeahyeah configure.defaults ; cd ..
    401403                       echo 14 | configure > log_compile 2> log_error
     404                         ##### marche pas ....
     405                         #sed s+"-fno-second-underscore"+""+g configure.wrf > yeah ; mv -f yeah configure.wrf
     406                         #sed -f mars.sed configure.wrf > yeah ; mv -f yeah configure.wrf
     407                         #sed s+"-L../mars_lmd/libo -llmd"+"-L../mars_lmd/libo -llmd $NETCDF/lib/libnetcdf.a"+g configure.wrf > yeah ; mv -f yeah configure.wrf ;;
    402408                       sed -f mars.sed configure.wrf > yeah ; mv -f yeah configure.wrf ;;
    403409                       #sed s+"=       g95"+"=       /home/physastro/aspiga/mysoft/g95/g95-install/bin/x86_64-unknown-linux-gnu-g95"+g configure.wrf > yeah ; mv -f yeah configure.wrf;;
  • trunk/MESOSCALE_DEV/NETCDF/g95_netcdf

    r27 r330  
    55###
    66
    7 wget http://www.lmd.jussieu.fr/~hourdin/PATCH_LMDZ4OR_G95/netcdf-3.6.1.tar.gz
    8 gunzip netcdf-3.6.1.tar.gz
     7#wget http://www.lmd.jussieu.fr/~hourdin/PATCH_LMDZ4OR_G95/netcdf-3.6.1.tar.gz
     8#gunzip netcdf-3.6.1.tar.gz
    99tar xvf netcdf-3.6.1.tar
    1010
  • trunk/MESOSCALE_DEV/NOTES.txt

    r295 r330  
    1 faire la carte des z0
     1--- sur nouvelles machines problemes run parallele avec nouvelle physique
     2
     3--- makegcm_g95 ne marche pas avec -no-second-underscore
     4    marche sans et semble compiler correctement
     5
     6--- conflits quelque soit la combinaison (f-no-second-underscore ou pas) lors
     7de la compilation du dynamical core WRF avec g95 64 bits
     8http://forum.wrfforum.com/viewtopic.php?f=5&t=3467
     9
     10
     11gfortran https://bi.offis.de/wisent/tiki-index.php?page=WRF-gFortran
     12
    213
    314cc-----------------------------------
Note: See TracChangeset for help on using the changeset viewer.