Ignore:
Timestamp:
04/29/14 10:36:31 (11 years ago)
Author:
cborstad
Message:

CHG: treat stressbalance spc's as rank-1

File:
1 edited

Legend:

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

    r17870 r17876  
    4242                print "SetMarineIceSheetBC warning: ice front all around the glacier, no dirichlet found. Dirichlet must be added manually."
    4343
    44         md.stressbalance.spcvx=float('nan')*numpy.ones((md.mesh.numberofvertices,))
    45         md.stressbalance.spcvy=float('nan')*numpy.ones((md.mesh.numberofvertices,))
    46         md.stressbalance.spcvz=float('nan')*numpy.ones((md.mesh.numberofvertices,))
     44        md.stressbalance.spcvx=float('nan')*numpy.ones(md.mesh.numberofvertices)
     45        md.stressbalance.spcvy=float('nan')*numpy.ones(md.mesh.numberofvertices)
     46        md.stressbalance.spcvz=float('nan')*numpy.ones(md.mesh.numberofvertices)
    4747        md.stressbalance.referential=float('nan')*numpy.ones((md.mesh.numberofvertices,6))
    4848        md.stressbalance.loadingforce=0*numpy.ones((md.mesh.numberofvertices,3))
     
    6868        else:
    6969                pos=numpy.nonzero(md.mesh.vertexonboundary)[0]
    70         md.stressbalance.spcvx[pos[:]]=0
    71         md.stressbalance.spcvy[pos[:]]=0
    72         md.stressbalance.spcvz[pos[:]]=0
     70        md.stressbalance.spcvx[pos]=0
     71        md.stressbalance.spcvy[pos]=0
     72        md.stressbalance.spcvz[pos]=0
    7373
    7474        #Dirichlet Values
Note: See TracChangeset for help on using the changeset viewer.