Changeset 19278
- Timestamp:
- 04/09/15 14:26:04 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/test/NightlyRun/test237.py
r19277 r19278 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 #
Note:
See TracChangeset
for help on using the changeset viewer.