Changeset 15521


Ignore:
Timestamp:
07/19/13 09:33:36 (12 years ago)
Author:
cborstad
Message:

reverting vector/array change

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/boundaryconditions/SetIceShelfBC.py

    r15519 r15521  
    3232#       pos=find(md.mesh.vertexonboundary & ~nodeonicefront);
    3333        pos=numpy.nonzero(numpy.logical_and(md.mesh.vertexonboundary,numpy.logical_not(nodeonicefront)))[0]
    34         md.diagnostic.spcvx=float('nan')*numpy.ones((md.mesh.numberofvertices,))
    35         md.diagnostic.spcvy=float('nan')*numpy.ones((md.mesh.numberofvertices,))
    36         md.diagnostic.spcvz=float('nan')*numpy.ones((md.mesh.numberofvertices,))
     34        md.diagnostic.spcvx=float('nan')*numpy.ones((md.mesh.numberofvertices,1))
     35        md.diagnostic.spcvy=float('nan')*numpy.ones((md.mesh.numberofvertices,1))
     36        md.diagnostic.spcvz=float('nan')*numpy.ones((md.mesh.numberofvertices,1))
    3737        md.diagnostic.spcvx[pos]=0
    3838        md.diagnostic.spcvy[pos]=0
     
    9393
    9494        if isinstance(md.initialization.temperature,numpy.ndarray) and numpy.size(md.initialization.temperature,axis=0)==md.mesh.numberofvertices:
    95                 md.thermal.spctemperature=float('nan')*numpy.ones((md.mesh.numberofvertices,))
     95                md.thermal.spctemperature=float('nan')*numpy.ones((md.mesh.numberofvertices,1))
    9696#               pos=find(md.mesh.vertexonsurface); md.thermal.spctemperature(pos)=md.initialization.temperature(pos); %impose observed temperature on surface
    9797                pos=numpy.nonzero(md.mesh.vertexonsurface)[0]
    9898                md.thermal.spctemperature[pos]=md.initialization.temperature[pos]    #impose observed temperature on surface
    9999                if not isinstance(md.basalforcings.geothermalflux,numpy.ndarray) or not numpy.size(md.basalforcings.geothermalflux,axis=0)==md.mesh.numberofvertices:
    100                         md.basalforcings.geothermalflux=numpy.zeros((md.mesh.numberofvertices,))
     100                        md.basalforcings.geothermalflux=numpy.zeros((md.mesh.numberofvertices,1))
    101101        else:
    102102                print "      no thermal boundary conditions created: no observed temperature found"
Note: See TracChangeset for help on using the changeset viewer.