Ignore:
Timestamp:
04/07/16 11:43:43 (9 years ago)
Author:
Mathieu Morlighem
Message:

CHG: do not marshall NodeActivationMask, this is now done automatically by FemModel->InitFromFile. We also now alow positive levelsets for every solutions (presumably...)

File:
1 edited

Legend:

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

    r19443 r20453  
    5454                WriteData(fid,'object',self,'fieldname','groundedice_levelset','format','DoubleMat','mattype',1)
    5555                WriteData(fid,'object',self,'fieldname','ice_levelset','format','DoubleMat','mattype',1)
    56 
    57                 # get mask of vertices of elements with ice
    58                 isice=numpy.array(md.mask.ice_levelset<0.,int)
    59                 vlist = numpy.zeros((md.mesh.numberofvertices,1), dtype=int)
    60                 pos=numpy.nonzero(numpy.sum(isice[md.mesh.elements-1],axis=1))[0]
    61                 vlist[md.mesh.elements[pos,:]-1]=1
    62                 WriteData(fid,'data',vlist,'enum',IceMaskNodeActivationEnum(),'format','DoubleMat','mattype',1);
    6356        # }}}
Note: See TracChangeset for help on using the changeset viewer.