Changeset 26446


Ignore:
Timestamp:
09/21/21 01:46:03 (3 years ago)
Author:
jdquinn
Message:

BUG: Missing checkconsistency case

File:
1 edited

Legend:

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

    r25688 r26446  
    2727        self.fe_HO = ''
    2828        self.fe_FS = ''
    29         self.augmented_lagrangian_r = 1.
    30         self.augmented_lagrangian_rhop = 1.
    31         self.augmented_lagrangian_rlambda = 1.
    32         self.augmented_lagrangian_rholambda = 1.
    33         self.XTH_theta = 0.
     29        self.augmented_lagrangian_r = 1
     30        self.augmented_lagrangian_rhop = 1
     31        self.augmented_lagrangian_rlambda = 1
     32        self.augmented_lagrangian_rholambda = 1
     33        self.XTH_theta = 0
    3434        self.vertex_equation = np.nan
    3535        self.element_equation = np.nan
     
    107107        md = checkfield(md, 'fieldname', 'flowequation.XTH_theta', 'numel', [1], '>=', 0., '<', .5)
    108108        if m.strcmp(md.mesh.domaintype(), '2Dhorizontal'):
    109             md = checkfield(md, 'fieldname', 'flowequation.vertex_equation', 'size', [md.mesh.numberofvertices], 'values', [1, 2])
    110             md = checkfield(md, 'fieldname', 'flowequation.element_equation', 'size', [md.mesh.numberofelements], 'values', [1, 2])
     109            md = checkfield(md, 'fieldname', 'flowequation.vertex_equation', 'size', [md.mesh.numberofvertices], 'values', [1, 2, 4])
     110            md = checkfield(md, 'fieldname', 'flowequation.element_equation', 'size', [md.mesh.numberofelements], 'values', [1, 2, 4])
     111        elif m.strcmp(md.mesh.domaintype(), '3Dsurface'):
     112            md = checkfield(md, 'fieldname', 'flowequation.vertex_equation', 'size', [md.mesh.numberofvertices], 'values', np.arange(1, 2 + 1))
     113            md = checkfield(md, 'fieldname', 'flowequation.element_equation', 'size', [md.mesh.numberofelements], 'values', np.arange(1, 2 + 1))
    111114        elif m.strcmp(md.mesh.domaintype(), '2Dvertical'):
    112115            md = checkfield(md, 'fieldname', 'flowequation.vertex_equation', 'size', [md.mesh.numberofvertices], 'values', [2, 5, 6])
     
    117120        else:
    118121            raise RuntimeError('Case not supported yet')
     122
    119123        if not (self.isSIA or self.isSSA or self.isL1L2 or self.isMLHO or self.isHO or self.isFS):
    120124            md.checkmessage("no element types set for this model")
Note: See TracChangeset for help on using the changeset viewer.