Changeset 18971


Ignore:
Timestamp:
12/30/14 10:45:42 (10 years ago)
Author:
Mathieu Morlighem
Message:

BUG: fixed some matlab to python conversion

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/test/NightlyRun/test236.py

    r18968 r18971  
    4848# creating precipitation
    4949md.surfaceforcings.precipitations_presentday=numpy.zeros((md.mesh.numberofvertices+1,12))
     50md.surfaceforcings.precipitations_lgm=numpy.zeros((md.mesh.numberofvertices+1,12))
    5051for imonth in xrange(0,12):
    5152    md.surfaceforcings.precipitations_presentday[0:md.mesh.numberofvertices,imonth]=-0.4*10**(-6)*md.mesh.y+0.5
     
    5556
    5657# Interpolation factors
    57 md.surfaceforcings.Tdiff[1,1:md.timestepping.final_time]=0.5;
    58 md.surfaceforcings.sealev[1,1:md.timestepping.final_time]=0.5;
     58md.surfaceforcings.Tdiff=0.5*numpy.ones((2,md.timestepping.final_time))
     59md.surfaceforcings.sealev=0.5*numpy.ones((2,md.timestepping.final_time))
    5960# Year of each data point
    60 md.surfaceforcings.Tdiff[2,1:md.timestepping.final_time]=1:1:md.timestepping.final_time;
    61 md.surfaceforcings.sealev[2,1:md.timestepping.final_time]=1:1:md.timestepping.final_time;
     61md.surfaceforcings.Tdiff[1,1:md.timestepping.final_time]=numpy.arange(1.,md.timestepping.final_time)
     62md.surfaceforcings.sealev[1,1:md.timestepping.final_time]=numpy.arange(1.,md.timestepping.final_time)
    6263
    6364# time steps and resolution
Note: See TracChangeset for help on using the changeset viewer.