source: issm/oecreview/Archive/15392-16133/ISSM-15526-15527.diff@ 16134

Last change on this file since 16134 was 16134, checked in by Mathieu Morlighem, 12 years ago

Added Archive/15392-16133

File size: 2.0 KB
  • ../trunk-jpl/src/m/classes/flowequation.py

     
    6666                                md = checkfield(md,'flowequation.vertex_equation','size',[md.mesh.numberofvertices],'values',[1,2])
    6767                                md = checkfield(md,'flowequation.element_equation','size',[md.mesh.numberofelements],'values',[1,2])
    6868                        else:
    69                                 md = checkfield(md,'flowequation.vertex_equation','size',[md.mesh.numberofvertices],'values',numpy.arange(0,7+1))
    70                                 md = checkfield(md,'flowequation.element_equation','size',[md.mesh.numberofelements],'values',numpy.arange(0,7+1))
    71                         if not (self.ismacayeal or self.ispattyn or self.ishutter or self.isstokes or self.isl1l2):
     69                                md = checkfield(md,'flowequation.vertex_equation','size',[md.mesh.numberofvertices],'values',numpy.arange(0,8))
     70                                md = checkfield(md,'flowequation.element_equation','size',[md.mesh.numberofelements],'values',numpy.arange(0,8))
     71                        if not (self.ishutter or self.ismacayeal or self.isl1l2 or self.ispattyn or self.isstokes):
    7272                                md.checkmessage("no element types set for this model")
    7373
    7474                if DiagnosticHutterAnalysisEnum() in analyses:
  • ../trunk-jpl/src/m/classes/flowequation.m

     
    4949                                        md = checkfield(md,'flowequation.vertex_equation','size',[md.mesh.numberofvertices 1],'values',[0:8]);
    5050                                        md = checkfield(md,'flowequation.element_equation','size',[md.mesh.numberofelements 1],'values',[0:8]);
    5151                                end
    52                                 if ~(obj.ismacayeal || obj.ispattyn || obj.ishutter || obj.isstokes || obj.isl1l2),
     52                                if ~(obj.ishutter || obj.ismacayeal || obj.isl1l2 || obj.ispattyn || obj.isstokes),
    5353                                        md = checkmessage(md,['no element types set for this model']);
    5454                                end
    5555                        end
Note: See TracBrowser for help on using the repository browser.