Ignore:
Timestamp:
09/18/13 13:49:15 (12 years ago)
Author:
cborstad
Message:

BUG: missed some numpy handles for function calls

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/test/Par/SquareShelf2.py

    r16170 r16171  
    2323iVelF = netCDF4.Dataset('../Data/SquareShelf.nc','r')
    2424
    25 x=reshape(iVelF.variables['x'][:],(-1))
    26 y=reshape(iVelF.variables['y'][:],(-1))
     25x=numpy.reshape(iVelF.variables['x'][:],(-1))
     26y=numpy.reshape(iVelF.variables['y'][:],(-1))
    2727vx=iVelF.variables['vx'][:]
    2828vy=iVelF.variables['vy'][:]
     
    5555
    5656#Materials
    57 md.initialization.temperature = (273.-20.)*ones((md.mesh.numberofvertices,1))
     57md.initialization.temperature = (273.-20.)*numpy.ones((md.mesh.numberofvertices,1))
    5858md.materials.rheology_B = paterson(md.initialization.temperature)
    59 md.materials.rheology_n = 3.*ones((md.mesh.numberofelements,1))
     59md.materials.rheology_n = 3.*numpy.ones((md.mesh.numberofelements,1))
    6060
    6161#Damage
     
    6363
    6464#Friction
    65 md.friction.coefficient = 20.*ones((md.mesh.numberofvertices,1))
     65md.friction.coefficient = 20.*numpy.ones((md.mesh.numberofvertices,1))
    6666md.friction.coefficient[numpy.nonzero(md.mask.groundedice_levelset<0.)[0]]=0.
    67 md.friction.p = ones((md.mesh.numberofelements,1))
    68 md.friction.q = ones((md.mesh.numberofelements,1))
     67md.friction.p = numpy.ones((md.mesh.numberofelements,1))
     68md.friction.q = numpy.ones((md.mesh.numberofelements,1))
    6969
    7070#Numerical parameters
     
    7777md.steadystate.reltol = 0.02
    7878md.stressbalance.reltol = 0.02
    79 md.stressbalance.abstol = nan
     79md.stressbalance.abstol = float('nan')
    8080md.timestepping.time_step = 1.
    8181md.timestepping.final_time = 3.
Note: See TracChangeset for help on using the changeset viewer.