Changeset 26011


Ignore:
Timestamp:
02/20/21 21:21:20 (4 years ago)
Author:
bulthuis
Message:

CGH: add isampling for transient sampling (python)

File:
1 edited

Legend:

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

    r25961 r26011  
    2222        self.ismovingfront = 0
    2323        self.ishydrology = 0
     24        self.issampling = 0
    2425        self.isslc = 0
    2526        self.iscoupler = 0
     
    4344        s += '{}\n'.format(fielddisplay(self, 'ismovingfront', 'indicates whether a moving front capability is used in the transient'))
    4445        s += '{}\n'.format(fielddisplay(self, 'ishydrology', 'indicates whether an hydrology model is used'))
     46        s += '{}\n'.format(fielddisplay(self, 'issampling', 'indicates whether sampling is used in the transient'))
    4547        s += '{}\n'.format(fielddisplay(self, 'isslc', 'indicates if a sea level change solution is used in the transient'))
    4648        s += '{}\n'.format(fielddisplay(self, 'isoceancoupling', 'indicates whether coupling with an ocean model is used in the transient'))
     
    6971        self.ismovingfront = 0
    7072        self.ishydrology = 0
     73        self.issampling = 0
    7174        self.isslc = 0
    7275        self.isoceancoupling = 0
     
    9194        self.ismovingfront = 0
    9295        self.ishydrology = 0
     96        self.issampling = 0
    9397        self.isslc = 0
    9498        self.isoceancoupling = 0
     
    115119        md = checkfield(md, 'fieldname', 'transient.isdamageevolution', 'numel', [1], 'values', [0, 1])
    116120        md = checkfield(md, 'fieldname', 'transient.ishydrology', 'numel', [1], 'values', [0, 1])
     121        md = checkfield(md, 'fieldname', 'transient.issampling', 'numel', [1], 'values', [0, 1])
    117122        md = checkfield(md, 'fieldname', 'transient.ismovingfront', 'numel', [1], 'values', [0, 1])
    118123        md = checkfield(md, 'fieldname', 'transient.isslc', 'numel', [1], 'values', [0, 1])
     
    139144        WriteData(fid, prefix, 'object', self, 'fieldname', 'ishydrology', 'format', 'Boolean')
    140145        WriteData(fid, prefix, 'object', self, 'fieldname', 'ismovingfront', 'format', 'Boolean')
     146        WriteData(fid, prefix, 'object', self, 'fieldname', 'issampling', 'format', 'Boolean')
    141147        WriteData(fid, prefix, 'object', self, 'fieldname', 'isslc', 'format', 'Boolean')
    142148        WriteData(fid, prefix, 'object', self, 'fieldname', 'isoceancoupling', 'format', 'Boolean')
Note: See TracChangeset for help on using the changeset viewer.