Changeset 61 for trunk/mesoscale/LMD_LES_MARS/modif_mars
- Timestamp:
- Feb 14, 2011, 7:11:03 PM (14 years ago)
- Location:
- trunk/mesoscale/LMD_LES_MARS/modif_mars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mesoscale/LMD_LES_MARS/modif_mars/makeles
r60 r61 11 11 12 12 echo "Use -n if you don't want to recompile physics" 13 13 echo "Use -p if you want the new LMD physics" 14 14 15 15 # … … 18 18 19 19 donotcompilephys=0 20 while getopts "n" options; do 20 phys="" 21 while getopts "np" options; do 21 22 case $options in 22 23 n ) donotcompilephys=1;; ## do not recompile physics 24 p ) phys="newphys_";; ## with new physics 23 25 esac 24 26 done … … 40 42 # 41 43 cd $MMM 42 makemeso -j 44 if [[ "${phys}" == "newphys_" ]] 45 then 46 makemeso -j -p 47 else 48 makemeso -j 49 fi 43 50 # 44 51 #makemeso -rd < last > /dev/null … … 78 85 ## 79 86 ##TODO: le rendre adapte aux reponses du user a makemeso 80 #touch conf81 #echo 3 >> conf87 touch conf 88 echo 3 >> conf 82 89 ##echo 4 >> conf #openMP n'arrange pas beaucoup de le tps de calcul 83 #echo 1 >> conf90 echo 1 >> conf 84 91 ##------------------------------ 85 92 ##------------------------------ … … 97 104 #echo 0 >> conf 98 105 99 ## MPI (dm) 64 bits IFORT 100 touch conf 101 echo 7 >> conf 102 echo 1 >> conf 106 ### MPI (dm) 64 bits IFORT 107 #echo IFORT IFORT IFORT IFORT 108 #touch conf 109 #echo 7 >> conf 110 #echo 1 >> conf 103 111 104 112 … … 127 135 128 136 sed s+"-fastsse"+" "+g configure.wrf > yeah 137 #sed s+"-fastsse"+"-mcmodel=medium -Mlarge_arrays"+g configure.wrf > yeah ##marche pas 129 138 # 130 139 # sometimes fastsse is problematic … … 133 142 ##sed s+"-fastsse"+"-fastsse -mcmodel=medium"+g configure.wrf > yeah 134 143 mv yeah configure.wrf 144 145 #sed s+"-Mvect=noaltcode"+"#-Mvect=noaltcode"+g configure.wrf > yeah ; mv yeah configure.wrf 146 135 147 #sed s+"-mp -Minfo=mp"+"-mp -Minfo=mp -mp=nonuma"+g configure.wrf > yeah 136 148 #mv yeah configure.wrf 137 149 138 #### OBLIGATOIRE POUR IFORT, OK AVEC LES AUTRES ??? 150 #### OBLIGATOIRE POUR IFORT, OK AVEC LES AUTRES ??? a priori oui 139 151 sed s+"-llmd"+"-llmd $NETCDF/lib/libnetcdf.a"+g configure.wrf > yeah 140 152 mv yeah configure.wrf 141 153 154 ############################################################# 155 if [[ "${phys}" == "newphys_" ]] 156 then 157 sed s+"ARCH_LOCAL = "+"ARCH_LOCAL = -DNEWPHYS "+g configure.wrf > yeah 158 mv -f yeah configure.wrf 159 fi 160 ############################################################# 161 142 162 143 163 \rm conf 144 145 164 146 165 # -
trunk/mesoscale/LMD_LES_MARS/modif_mars/makeles_ciclad
r42 r61 11 11 12 12 echo "Use -n if you don't want to recompile physics" 13 13 echo "Use -p if you want the new LMD physics" 14 14 15 15 # … … 18 18 19 19 donotcompilephys=0 20 while getopts "n" options; do 20 phys="" 21 while getopts "np" options; do 21 22 case $options in 22 23 n ) donotcompilephys=1;; ## do not recompile physics 24 p ) phys="newphys_";; ## with new physics 23 25 esac 24 26 done … … 40 42 # 41 43 cd $MMM 42 makemeso -j 44 if [[ "${phys}" == "newphys_" ]] 45 then 46 makemeso -j -p 47 else 48 makemeso -j 49 fi 43 50 # 44 51 #makemeso -rd < last > /dev/null … … 72 79 cd $here 73 80 74 # ------------------------------75 # ------------------------------76 # 77 # MPI (dm) 64 bits78 # 79 # TODO: le rendre adapte aux reponses du user a makemeso81 ##------------------------------ 82 ##------------------------------ 83 ## 84 ## MPI (dm) 64 bits 85 ## 86 ##TODO: le rendre adapte aux reponses du user a makemeso 80 87 touch conf 81 88 echo 3 >> conf 82 # echo 4 >> conf #openMP n'arrange pas beaucoup de le tps de calcul89 ##echo 4 >> conf #openMP n'arrange pas beaucoup de le tps de calcul 83 90 echo 1 >> conf 84 # ------------------------------85 # ------------------------------91 ##------------------------------ 92 ##------------------------------ 86 93 87 94 … … 97 104 #echo 0 >> conf 98 105 106 ### MPI (dm) 64 bits IFORT 107 #echo IFORT IFORT IFORT IFORT 108 #touch conf 109 #echo 7 >> conf 110 #echo 1 >> conf 99 111 100 112 … … 132 144 mv yeah configure.wrf 133 145 134 135 146 #sed s+"-Mvect=noaltcode"+"#-Mvect=noaltcode"+g configure.wrf > yeah ; mv yeah configure.wrf 136 137 138 147 139 148 #sed s+"-mp -Minfo=mp"+"-mp -Minfo=mp -mp=nonuma"+g configure.wrf > yeah 140 149 #mv yeah configure.wrf 141 150 151 #### OBLIGATOIRE POUR IFORT, OK AVEC LES AUTRES ??? a priori oui 152 sed s+"-llmd"+"-llmd $NETCDF/lib/libnetcdf.a"+g configure.wrf > yeah 153 mv yeah configure.wrf 154 155 ############################################################# 156 if [[ "${phys}" == "newphys_" ]] 157 then 158 sed s+"ARCH_LOCAL = "+"ARCH_LOCAL = -DNEWPHYS "+g configure.wrf > yeah 159 mv -f yeah configure.wrf 160 fi 161 ############################################################# 162 163 142 164 \rm conf 143 144 165 145 166 #
Note: See TracChangeset
for help on using the changeset viewer.