Changeset 18649
- Timestamp:
 - 10/15/14 14:40:07 (11 years ago)
 - Location:
 - issm/trunk-jpl/src/m/classes
 - Files:
 - 
      
- 2 edited
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
issm/trunk-jpl/src/m/classes/mask.m
r18492 r18649 53 53 warning('no ice front provided'); 54 54 end 55 icefront=sum(md.mask.ice_levelset(md.mesh.elements)==0,2); 56 if (max(icefront)==3 & strcmp(elementtype(md.mesh),'Tria')) | (max(icefront==6) & strcmp(elementtype(md.mesh),'Penta')), 57 error('At least one element has all nodes on ice front, change md.mask.ice_levelset to fix it') 58 end 55 59 end % }}} 56 60 function disp(obj) % {{{  - 
      
issm/trunk-jpl/src/m/classes/mask.py
r18068 r18649 38 38 raise TypeError("no ice present in the domain") 39 39 40 icefront=numpy.sum(md.mask.ice_levelset[md.mesh.elements]==0,2) 41 if (max(icefront)==3 and m.strcmp(md.mesh.elementtype(),'Tria')) or (max(icefront==6) and m.strcmp(md.mesh.elementtype(),'Penta')): 42 raise TypeError("At least one element has all nodes on ice front, change md.mask.ice_levelset to fix it") 43 40 44 return md 41 45 # }}}  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  ![(please configure the [header_logo] section in trac.ini)](/trac/issm/chrome/common/trac_banner.png)