Changeset 21575


Ignore:
Timestamp:
02/24/17 02:53:12 (8 years ago)
Author:
bdef
Message:

BUG:effectively marshaling segments

File:
1 edited

Legend:

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

    r21303 r21575  
    9292                md = checkfield(md,'fieldname','mesh.numberofvertices','>',0)
    9393                md = checkfield(md,'fieldname','mesh.average_vertex_connectivity','>=',9,'message',"'mesh.average_vertex_connectivity' should be at least 9 in 2d")
     94                md = checkfield(md,'fieldname','mesh.segments','NaN',1,'Inf',1,'>',0,'size',[np.nan,3]);
    9495                if solution=='ThermalSolution':
    9596                        md.checkmessage("thermal not supported for 2d mesh")
     
    117118                WriteData(fid,prefix,'object',self,'class','mesh','fieldname','numberofvertices','format','Integer')
    118119                WriteData(fid,prefix,'object',self,'class','mesh','fieldname','average_vertex_connectivity','format','Integer')
     120                WriteData(fid,prefix,'object',self,'class','mesh','fieldname','segments','format','DoubleMat','mattype',3);
    119121        # }}}
Note: See TracChangeset for help on using the changeset viewer.