Ignore:
Timestamp:
May 11, 2014, 3:56:22 PM (11 years ago)
Author:
aslmd
Message:

MESOSCALE. Adapted the mesoscale model to previous commit to LMD GCM physics where number of scatterers is no longer set at compiling time.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MESOSCALE/LMD_MM_MARS/makemeso

    r1243 r1247  
    207207                tra=1   
    208208              fi
    209             fi
    210             # scatterers: a specific stuff for newphys
    211             if [[ "${phys}" == "newphys_" ]]
    212             then
    213               echo "How many types of scatterer are you using ? 1 [dust] or 2 [dust + water ice]" ; read scat
    214             else
    215               scat=1 ## dummy stuff
    216209            fi
    217210         fi
     
    367360  if [[ "${phys}" == "newphys_" ]]
    368361  then
    369    echo you have ${scat} scatterers
    370362   echo number of processors can be changed without recompiling
    371363   echo x points can be changed without recompiling
     
    398390   echo ${tra} >> last
    399391  fi
    400   echo ${scat} >> last
    401   #echo ${answer} >> last
    402392
    403393#------------
     
    713703         ln -sf ../dyn3d/gr_fi_dyn.F .  ## dommage, a corriger
    714704     ###############################
    715 \rm scatterers.h
    716 cat << EOF > scatterers.h
    717 !-----------------------------------------------------------------------
    718 !   INCLUDE 'scatterers.h'
    719 !
    720 ! Number of kind of tracer radiative properties
    721 ! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    722 ! (ex: naerkind=1 if you use one dust mode without ice ...)
    723 ! (ex: naerkind=2 if you use one dust mode and active ice ...)
    724 !-----------------------------------------------------------------------
    725 
    726       integer, parameter :: naerkind=${scat}
    727 
    728 !-----------------------------------------------------------------------
    729 EOF
    730705     ###############################
    731706     ###############################
     
    789764  # save a copy
    790765  #--------------
    791   cp -f libo/liblmd.a libo/liblmd.a_${lon}_${lat}_${level}_${dom}_${tra}_${scat}
     766  cp -f libo/liblmd.a libo/liblmd.a_${lon}_${lat}_${level}_${dom}_${tra}
    792767  echo '****************************************'
    793768
     
    849824                        echo 'Looks good ! wrf.exe is here...'
    850825                      fi
    851                     cp -f real.exe ../../real_x${lon}_y${lat}_z${level}_d${dom}_t${tra}_p${numproc}_s${scat}.exe
    852                     cp -f wrf.exe ../../wrf_x${lon}_y${lat}_z${level}_d${dom}_t${tra}_p${numproc}_s${scat}.exe
     826                    cp -f real.exe ../../real_x${lon}_y${lat}_z${level}_d${dom}_t${tra}_p${numproc}.exe
     827                    cp -f wrf.exe ../../wrf_x${lon}_y${lat}_z${level}_d${dom}_t${tra}_p${numproc}.exe
    853828                    cd ..  ;;
    854829    'ideal')        #mkdir 'test/em_quarter_ss' 2> /dev/null
     
    865840                        echo 'Looks good ! wrf.exe is here...'
    866841                      fi
    867                     cp -f ideal.exe ../../ideal_x${lon}_y${lat}_z${level}_d${dom}_t${tra}_p${numproc}_s${scat}.exe
    868                     cp -f wrf.exe ../../wrf_x${lon}_y${lat}_z${level}_d${dom}_t${tra}_p${numproc}_s${scat}.exe
     842                    cp -f ideal.exe ../../ideal_x${lon}_y${lat}_z${level}_d${dom}_t${tra}_p${numproc}.exe
     843                    cp -f wrf.exe ../../wrf_x${lon}_y${lat}_z${level}_d${dom}_t${tra}_p${numproc}.exe
    869844                    cd ..  ;;
    870845    'les')          echo '>>> YOUR CONFIG IS : '${config}
     
    881856                        echo 'Looks good ! wrf.exe is here...'
    882857                      fi
    883                     cp -f ideal.exe ../../ideal_x${lon}_y${lat}_z${level}_d${dom}_t${tra}_p${numproc}_s${scat}.exe
    884                     cp -f wrf.exe ../../wrf_x${lon}_y${lat}_z${level}_d${dom}_t${tra}_p${numproc}_s${scat}.exe
     858                    cp -f ideal.exe ../../ideal_x${lon}_y${lat}_z${level}_d${dom}_t${tra}_p${numproc}.exe
     859                    cp -f wrf.exe ../../wrf_x${lon}_y${lat}_z${level}_d${dom}_t${tra}_p${numproc}.exe
    885860                    cd ..  ;;
    886861    *)              echo not supported... please use ; echo ideal les ; exit ;;
     
    894869  echo 'done.'
    895870  echo '****************************************'
    896   cp last ../makemeso_x${lon}_y${lat}_z${level}_d${dom}_t${tra}_p${numproc}_s${scat}
     871  cp last ../makemeso_x${lon}_y${lat}_z${level}_d${dom}_t${tra}_p${numproc}
    897872  mv last ../../
    898   svn info ../../ > ../makemeso_x${lon}_y${lat}_z${level}_d${dom}_t${tra}_p${numproc}_s${scat}.svn.info
     873  svn info ../../ > ../makemeso_x${lon}_y${lat}_z${level}_d${dom}_t${tra}_p${numproc}.svn.info
    899874
    900875  # add here specific messages
Note: See TracChangeset for help on using the changeset viewer.