Ignore:
Timestamp:
10/03/13 15:35:54 (11 years ago)
Author:
Mathieu Morlighem
Message:

CHG: preparing 2d horizontal mesh

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/classes/stressbalance.py

    r15987 r16295  
    112112                md = checkfield(md,'stressbalance.spcvx','forcing',1)
    113113                md = checkfield(md,'stressbalance.spcvy','forcing',1)
    114                 if md.mesh.dimension==3:
     114                if strcmp(md.mesh.meshtype(),'3D'):
    115115                        md = checkfield(md,'stressbalance.spcvz','forcing',1)
    116116                md = checkfield(md,'stressbalance.restol','size',[1],'>',0)
     
    145145                                        md.checkmessage("Vectors in stressbalance.referential (columns 1 to 3 and 4 to 6) must be orthogonal")
    146146                #CHECK THAT NO rotation specified for FS Grounded ice at base
    147 #               if md.mesh.dimension==3 & md.flowequation.isFS,
    148                 if md.mesh.dimension==3 and md.flowequation.isFS:
     147                if strcmp(md.mesh.meshtype(),'3D') and md.flowequation.isFS:
    149148                        pos=numpy.nonzero(numpy.logical_and(md.mask.groundedice_levelset,md.mesh.vertexonbed))
    150149                        if numpy.any(numpy.logical_not(numpy.isnan(md.stressbalance.referential[pos,:]))):
Note: See TracChangeset for help on using the changeset viewer.