Changeset 15806


Ignore:
Timestamp:
08/12/13 16:47:12 (12 years ago)
Author:
seroussi
Message:

BUG: Set up mask.icelevelset values before creating dirichlets

File:
1 edited

Legend:

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

    r15801 r15806  
    3838        md.stressbalance.loadingforce=0*numpy.ones((md.mesh.numberofvertices,3))
    3939
     40        #Icefront position
     41        pos=numpy.nonzero(nodeonicefront)[0]
     42        md.mask.icelevelset[pos]=0
     43
    4044        #First find segments that are not completely on the front
    4145        if md.mesh.dimension==2:
     
    6468        else:
    6569                print "      boundary conditions for stressbalance model: spc set as zero"
    66 
    67         #Icefront position
    68         pos=numpy.nonzero(nodeonicefront)[0]
    69         md.mask.icelevelset[pos]=0
    7070
    7171        #Create zeros basalforcings and surfaceforcings
Note: See TracChangeset for help on using the changeset viewer.