source:
issm/oecreview/Archive/19101-20495/ISSM-19277-19278.diff@
20498
Last change on this file since 20498 was 20498, checked in by , 9 years ago | |
---|---|
File size: 1.5 KB |
-
../trunk-jpl/test/NightlyRun/test237.py
53 53 md.surfaceforcings.precipitations_lgm[0:md.mesh.numberofvertices,imonth]=-0.4*10**(-6)*md.mesh.y+0.5 54 54 md.surfaceforcings.precipitations_lgm[md.mesh.numberofvertices,imonth]=((float(imonth)+1.)/12.) 55 55 56 for iint in xrange(0,(md.timestepping.final_time/md.timestepping.time_step)+2) 56 fsize=int(md.timestepping.final_time/md.timestepping.time_step)+2 57 md.surfaceforcings.Pfac=numpy.zeros((2,fsize)) 58 md.surfaceforcings.Tdiff=numpy.zeros((2,fsize)) 59 md.surfaceforcings.sealev=numpy.zeros((2,fsize)) 60 for iint in xrange(0,fsize): 57 61 # Interpolation factors 58 md.surfaceforcings.Pfac[ 1,iint]=0.15*(iint+1);59 md.surfaceforcings.Tdiff[ 1,iint]=0.15*(iint+1);60 md.surfaceforcings.sealev[ 1,iint]=0.15*(iint+1);62 md.surfaceforcings.Pfac[0,iint]=0.15*(iint+1) 63 md.surfaceforcings.Tdiff[0,iint]=0.15*(iint+1) 64 md.surfaceforcings.sealev[0,iint]=0.15*(iint+1) 61 65 # Year of each data point 62 md.surfaceforcings.Pfac[ 2,iint]=(iint)*20;63 md.surfaceforcings.Tdiff[ 2,iint]=(iint)*20;64 md.surfaceforcings.sealev[ 2,iint]=(iint)*20;66 md.surfaceforcings.Pfac[1,iint]=(float(iint))*20 67 md.surfaceforcings.Tdiff[1,iint]=(float(iint))*20 68 md.surfaceforcings.sealev[1,iint]=(float(iint))*20 65 69 66 70 # 67 71 md.transient.requested_outputs=['default','SurfaceforcingsMonthlytemperatures']
Note:
See TracBrowser
for help on using the repository browser.