source: issm/oecreview/Archive/19101-20495/ISSM-19277-19278.diff@ 20498

Last change on this file since 20498 was 20498, checked in by Mathieu Morlighem, 9 years ago

CHG: done with Archive/19101-20495

File size: 1.5 KB
  • ../trunk-jpl/test/NightlyRun/test237.py

     
    5353    md.surfaceforcings.precipitations_lgm[0:md.mesh.numberofvertices,imonth]=-0.4*10**(-6)*md.mesh.y+0.5
    5454    md.surfaceforcings.precipitations_lgm[md.mesh.numberofvertices,imonth]=((float(imonth)+1.)/12.)
    5555
    56 for iint in xrange(0,(md.timestepping.final_time/md.timestepping.time_step)+2)
     56fsize=int(md.timestepping.final_time/md.timestepping.time_step)+2
     57md.surfaceforcings.Pfac=numpy.zeros((2,fsize))
     58md.surfaceforcings.Tdiff=numpy.zeros((2,fsize))
     59md.surfaceforcings.sealev=numpy.zeros((2,fsize))
     60for iint in xrange(0,fsize):
    5761    # 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)
    6165         # 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
    6569
    6670#
    6771md.transient.requested_outputs=['default','SurfaceforcingsMonthlytemperatures']
Note: See TracBrowser for help on using the repository browser.