Changeset 13443


Ignore:
Timestamp:
09/25/12 16:48:47 (12 years ago)
Author:
Mathieu Morlighem
Message:

CHG: updated python version of prognostic.m so that NR works

Location:
issm/trunk-jpl/src/m/classes
Files:
2 edited

Legend:

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

    r13438 r13443  
    1212                 vertex_pairing         = NaN;
    1313                 penalty_factor         = 0;
    14                  requested_outputs       = NaN;
     14                 requested_outputs      = NaN;
    1515        end
    1616        methods
  • issm/trunk-jpl/src/m/classes/prognostic.py

    r13043 r13443  
    2323                self.vertex_pairing         = float('NaN')
    2424                self.penalty_factor         = 0
     25                self.requested_outputs      = float('NaN')
    2526
    2627                #set defaults
     
    3536                string="%s\n%s"%(string,fielddisplay(self,'hydrostatic_adjustment','adjustment of ice shelves surface and bed elevations: ''Incremental'' or ''Absolute'' '))
    3637                string="%s\n%s"%(string,fielddisplay(self,'stabilization','0->no, 1->artificial_diffusivity, 2->streamline upwinding, 3->discontinuous Galerkin'))
     38                string="%s\n%s"%(string,fielddisplay(self,'requested_outputs','additional outputs requested'))
    3739
    3840                return string
     
    6769                md = checkfield(md,'prognostic.stabilization','values',[0,1,2,3])
    6870                md = checkfield(md,'prognostic.min_thickness','>',0)
     71                md = checkfield(md,'prognostic.requested_output','size',[float('NaN'),1])
    6972
    7073                return md
     
    7881                WriteData(fid,'object',self,'fieldname','vertex_pairing','format','DoubleMat','mattype',3)
    7982                WriteData(fid,'object',self,'fieldname','penalty_factor','format','Double')
     83                WriteData(fid,'object',self,'fieldname','requested_outputs','format','DoubleMat','mattype',3);
    8084        # }}}
    8185
Note: See TracChangeset for help on using the changeset viewer.