Changeset 426
- Timestamp:
- Nov 28, 2011, 10:59:33 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 7 added
- 2 deleted
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.GENERIC/README
r375 r426 254 254 >>> Modified 'makegcm' and makegcm_g95' so that modules files are put 255 255 with libraries (and not in current directory) 256 257 258 256 257 == 258 == WORK FOR GENERIC MODEL STARTS HERE 259 == 259 260 260 261 == 01/08/09 == -
trunk/LMDZ.MARS/libf/phymars/inifis.F
r420 r426 135 135 136 136 write(*,*) "Directory where external input files are:" 137 datafile="/ data/fgglmd/datagcm/datafile"137 datafile="/u/forget/WWW/datagcm/datafile" 138 138 call getin("datadir",datafile) ! default path 139 139 write(*,*) " datafile = ",trim(datafile) -
trunk/MESOSCALE/LMD_MM_MARS/SIMU/runmeso
r390 r426 622 622 cd ${simu_folder} 623 623 rm -rf ${simu_folder}/wrfout* 624 if [[ ${compilo} -eq 3]]624 if [[ ${compilo} -eq 5 ]] 625 625 then 626 626 ulimit -s unlimited -
trunk/MESOSCALE/LMD_MM_MARS/SRC/WRFV2/mars_lmd/makegcm_mpi
r341 r426 493 493 cp -f $libf/grid/dimensions.h $libf/grid/d3_dimensions.h 494 494 cp -f $libf/grid/dimensions.h $libf/grid/d4_dimensions.h 495 495 cp -f $libf/grid/dimensions.h $libf/grid/d5_dimensions.h 496 496 497 497 cd $LMDGCM -
trunk/MESOSCALE_DEV/BENCH
r355 r426 115 115 Timing for main: time 2024-01-17_03:05:00 on domain 1: 0.29685 elapsed seconds. 116 116 117 **** ULRICH + IFORT [open MPI ciclad] 118 ************************************* 119 Timing for Writing wrfout_d01_2024-01-17_03:00:00 for domain 1: 0.03150 elapsed seconds. 120 Timing for processing lateral boundary for domain 1: 0.00600 elapsed seconds. 121 Timing for main: time 2024-01-17_03:00:50 on domain 1: 0.37020 elapsed seconds. 122 Timing for main: time 2024-01-17_03:01:00 on domain 1: 0.26710 elapsed seconds. 123 Timing for main: time 2024-01-17_03:01:50 on domain 1: 0.33070 elapsed seconds. 124 Timing for main: time 2024-01-17_03:02:00 on domain 1: 0.26710 elapsed seconds. 125 Timing for main: time 2024-01-17_03:02:50 on domain 1: 0.33040 elapsed seconds. 126 Timing for main: time 2024-01-17_03:03:00 on domain 1: 0.26650 elapsed seconds. 127 Timing for main: time 2024-01-17_03:03:50 on domain 1: 0.33100 elapsed seconds. 128 Timing for main: time 2024-01-17_03:04:00 on domain 1: 0.26700 elapsed seconds. 129 Timing for main: time 2024-01-17_03:04:50 on domain 1: 0.32990 elapsed seconds. 130 Timing for main: time 2024-01-17_03:05:00 on domain 1: 0.26660 elapsed seconds. 131 117 132 **** FERME UPMC [gnome iDataPlex] + IFORT 118 133 ***************************************** … … 129 144 Timing for main: time 2024-01-17_03:04:50 on domain 1: 0.35210 elapsed seconds. 130 145 Timing for main: time 2024-01-17_03:05:00 on domain 1: 0.25240 elapsed seconds. 146 147 **** ULRICH + IFORT [open MPI ciclad] 8 procs 148 ********************************************* 149 Timing for Writing wrfout_d01_2024-01-17_03:00:00 for domain 1: 0.05560 elapsed seconds. 150 Timing for processing lateral boundary for domain 1: 0.01020 elapsed seconds. 151 Timing for main: time 2024-01-17_03:00:50 on domain 1: 0.39620 elapsed seconds. 152 Timing for main: time 2024-01-17_03:01:00 on domain 1: 0.29870 elapsed seconds. 153 Timing for main: time 2024-01-17_03:01:50 on domain 1: 0.32720 elapsed seconds. 154 Timing for main: time 2024-01-17_03:02:00 on domain 1: 0.27110 elapsed seconds. 155 Timing for main: time 2024-01-17_03:02:50 on domain 1: 0.34010 elapsed seconds. 156 Timing for main: time 2024-01-17_03:03:00 on domain 1: 0.27070 elapsed seconds. 157 Timing for main: time 2024-01-17_03:03:50 on domain 1: 0.32590 elapsed seconds. 158 Timing for main: time 2024-01-17_03:04:00 on domain 1: 0.26950 elapsed seconds. 159 Timing for main: time 2024-01-17_03:04:50 on domain 1: 0.32590 elapsed seconds. 160 Timing for main: time 2024-01-17_03:05:00 on domain 1: 0.27030 elapsed seconds. 131 161 132 162 **** PENN [nouvelle ferme de calcul] + PGF90 [MPI sur 1 proc seulement] -
trunk/UTIL/PYTHON/myplot.py
r425 r426 726 726 "def": "spectral",\ 727 727 "HGT": "spectral",\ 728 "HGT_M": "spectral",\ 728 729 "TK": "gist_heat",\ 729 730 "TPOT": "Paired",\ -
trunk/UTIL/PYTHON/planetoplot.py
r425 r426 139 139 else: errormess("no time axis found.") 140 140 vert = nc.variables["altitude"][:] 141 elif typefile in ['meso','mesoapi' ]:141 elif typefile in ['meso','mesoapi','geo']: 142 142 if vlon is not None or vlat is not None: indices = bidimfind(lon2d,lat2d,vlon,vlat) ; print '********** INDICES: ', indices 143 143 if slon is not None: slon[0][0] = indices[0] ; slon[0][1] = indices[0] … … 150 150 else: londim='WEST-EAST_PATCH_END_UNSTAG' 151 151 lon = np.arange(0,getattr(nc,londim),1) ; lat = np.arange(0,getattr(nc,latdim),1) 152 if vertmode is None: vertmode=0153 if vertmode == 0: vert = np.arange(0,getattr(nc,vertdim),1)154 else: vert = nc.variables["vert"][:]155 152 time = np.arange(0,len(nc.variables["Times"]),1) 153 if typefile in ['geo']: vert = [0.] ; stime = readslices(str(0)) 154 else: 155 if vertmode is None: vertmode=0 156 if vertmode == 0: vert = np.arange(0,getattr(nc,vertdim),1) 157 else: vert = nc.variables["vert"][:] 156 158 #if firstfile: 157 159 # lat0 = lat … … 230 232 print "********************************************" 231 233 while error is False: 232 print "********** nplot", nplot, "error",error234 print "********** NPLOT", nplot 233 235 234 236 ### General plot settings … … 247 249 indexlat = getsindex(slat,((nplot-1)//nlon)%nlat,lat) 248 250 indexvert = getsindex(svert,((nplot-1)//(nlon*nlat))%nvert,vert) 249 250 251 if ope is not None: 251 252 if fileref is not None: index_f = ((nplot-1)//(nlon*nlat*nvert*ntime))%(len(namefiles)+2) ## OK only 1 var, see test in the beginning … … 261 262 if mapmode == 1 and stime is None: indextime = 1 262 263 else: indextime = getsindex(stime,((nplot-1)//(nlon*nlat*nvert))%ntime,time) 264 ltst = None 263 265 if typefile in ['mesoapi','meso'] and indextime is not None: ltst = localtime ( interv[0]+indextime*interv[1], 0.5*(wlon[0]+wlon[1]) ) 264 266 print "********** index lon, lat, vert, time ",indexlon,indexlat,indexvert,indextime … … 329 331 if mapmode == 1: m.pcolor( x, y, what_I_plot, cmap = palette, vmin=zevmin, vmax=zevmax ) 330 332 elif mapmode == 0: pcolor( x, y, what_I_plot, cmap = palette, vmin=zevmin, vmax=zevmax ) 331 if colorb != 'nobar' and varname != 'HGT' : 332 if (fileref is not None) and (index_f is numplot-1): 333 colorbar(fraction=0.05,pad=0.03,format="%.3f",\ 334 ticks=np.linspace(zevmin,zevmax,num=min([ticks/2+1,20])),\ 335 extend='neither',spacing='proportional') 336 else: 337 colorbar(fraction=0.05,pad=0.03,format=fmtvar(fvar.upper()),\ 338 ticks=np.linspace(zevmin,zevmax,num=min([ticks/2+1,20])),\ 339 extend='neither',spacing='proportional') 340 # both min max neither 333 if colorb != 'nobar': 334 if (fileref is not None) and (index_f is numplot-1): daformat = "%.3f" 335 else: daformat = fmtvar(fvar.upper()) 336 colorbar( fraction=0.05,pad=0.03,format=daformat,\ 337 ticks=np.linspace(zevmin,zevmax,num=min([ticks/2+1,20])),extend='neither',spacing='proportional' ) 341 338 ##### 1D field 342 339 elif len(what_I_plot.shape) is 1: … … 346 343 #### Other cases: (maybe plot 3-D field one day or movie ??) 347 344 else: 348 print "WARNING!!! ",len(what_I_plot.shape),"-D PLOT NOT SUPPORTED !!!" 349 print "field dimensions: ", what_I_plot.shape 350 exit() 351 345 print "WARNING!!! ",len(what_I_plot.shape),"-D PLOT NOT SUPPORTED !!! dimensions: ",what_I_plot.shape 346 errormess("Are you sure you did not forget to prescribe a dimension ?") 352 347 else: 353 348 errormess("There is an error in reducing field !") … … 382 377 if addchar: 383 378 [addchar,gogol,gogol2] = getlschar ( all_namefile[index_f] ) 384 plottitle = plottitle + addchar + "_LT"+str(ltst) 385 else: plottitle = plottitle + "_LT"+str(ltst) 379 plottitle = plottitle + addchar + "_LT" 380 else: plottitle = plottitle + "_LT" 381 if ltst is not None: plottitle = plottitle + str(ltst) 386 382 else: 387 383 if fileref is not None: -
trunk/UTIL/PYTHON/pp.py
r424 r426 40 40 zefiles = separatenames(opt.file[i]) 41 41 42 typefile = whatkindfile(Dataset(zefiles[0])) 43 stralt = None 42 typefile = whatkindfile(Dataset(zefiles[0])) ; stralt = None 44 43 if typefile in ["meso","mesoapi"]: 45 44 [lschar,zehour,zehourin] = getlschar ( zefiles[0] ) 46 if opt.var is None: opt.var = ["HGT"] 45 if opt.var is None: opt.var = ["HGT"] ; opt.clb = "nobar" 46 elif typefile == "geo": 47 [lschar,zehour,zehourin] = ["",0,0] 48 if opt.var is None: opt.var = ["HGT_M"] ; opt.clb = "nobar" 47 49 else: 48 50 [lschar,zehour,zehourin] = ["",0,0] 49 if opt.var is None: opt.var = ["phisinit"] 51 if opt.var is None: opt.var = ["phisinit"] ; opt.clb = "nobar" 50 52 51 53 if opt.vmin is not None : zevmin = opt.vmin[min(i,len(opt.vmin)-1)]
Note: See TracChangeset
for help on using the changeset viewer.