Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/ISSMteam/ISSM
Browse files Browse the repository at this point in the history
  • Loading branch information
TidbitSoftware committed Jan 24, 2025
2 parents 57a4537 + 2f757f0 commit d6fe538
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/m/classes/hydrologyshakti.m
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
md = checkfield(md,'fieldname','hydrology.moulin_input','>=',0,'NaN',1,'Inf',1,'timeseries',1);
md = checkfield(md,'fieldname','hydrology.reynolds','>',0,'size',[md.mesh.numberofelements 1],'NaN',1,'Inf',1);
md = checkfield(md,'fieldname','hydrology.neumannflux','timeseries',1,'NaN',1,'Inf',1);
md = checkfield(md,'fieldname','hydrology.spchead','size',[md.mesh.numberofvertices 1]);
md = checkfield(md,'fieldname','hydrology.spchead','Inf',1,'timeseries',1);
md = checkfield(md,'fieldname','hydrology.relaxation','>=',0);
md = checkfield(md,'fieldname','hydrology.storage','>=',0);
md = checkfield(md,'fieldname','hydrology.requested_outputs','stringrow',1);
Expand Down Expand Up @@ -98,7 +98,7 @@ function marshall(self,prefix,md,fid) % {{{
WriteData(fid,prefix,'object',self,'class','hydrology','fieldname','moulin_input','format','DoubleMat','mattype',1,'timeserieslength',md.mesh.numberofvertices+1,'yts',md.constants.yts);
WriteData(fid,prefix,'object',self,'class','hydrology','fieldname','reynolds','format','DoubleMat','mattype',2);
WriteData(fid,prefix,'object',self,'class','hydrology','fieldname','neumannflux','format','DoubleMat','mattype',2,'timeserieslength',md.mesh.numberofelements+1,'yts',md.constants.yts);
WriteData(fid,prefix,'object',self,'class','hydrology','fieldname','spchead','format','DoubleMat','mattype',1);
WriteData(fid,prefix,'object',self,'class','hydrology','fieldname','spchead','format','DoubleMat','mattype',1,'timeserieslength',md.mesh.numberofvertices+1,'yts',md.constants.yts);
WriteData(fid,prefix,'object',self,'class','hydrology','fieldname','relaxation','format','Double');
WriteData(fid,prefix,'object',self,'class','hydrology','fieldname','storage','format','Double');
outputs = self.requested_outputs;
Expand Down
4 changes: 2 additions & 2 deletions src/m/classes/hydrologyshakti.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def checkconsistency(self, md, solution, analyses): # {{{
md = checkfield(md, 'fieldname', 'hydrology.moulin_input', '>=', 0, 'NaN', 1, 'Inf', 1, 'timeseries', 1)
md = checkfield(md, 'fieldname', 'hydrology.reynolds', '>', 0, 'size', [md.mesh.numberofelements], 'NaN', 1, 'Inf', 1)
md = checkfield(md, 'fieldname', 'hydrology.neumannflux', 'timeseries', 1, 'NaN', 1, 'Inf', 1)
md = checkfield(md, 'fieldname', 'hydrology.spchead', 'size', [md.mesh.numberofvertices])
md = checkfield(md, 'fieldname', 'hydrology.spchead', 'Inf', 1, 'timeseries', 1)
md = checkfield(md, 'fieldname', 'hydrology.relaxation', '>=', 0)
md = checkfield(md, 'fieldname', 'hydrology.storage', '>=', 0)
md = checkfield(md, 'fieldname', 'hydrology.requested_outputs', 'stringrow', 1)
Expand All @@ -95,7 +95,7 @@ def marshall(self, prefix, md, fid): # {{{
WriteData(fid, prefix, 'object', self, 'class', 'hydrology', 'fieldname', 'moulin_input', 'format', 'DoubleMat', 'mattype', 1, 'timeserieslength', md.mesh.numberofvertices + 1, 'yts', yts)
WriteData(fid, prefix, 'object', self, 'class', 'hydrology', 'fieldname', 'reynolds', 'format', 'DoubleMat', 'mattype', 2)
WriteData(fid, prefix, 'object', self, 'class', 'hydrology', 'fieldname', 'neumannflux', 'format', 'DoubleMat', 'mattype', 2, 'timeserieslength', md.mesh.numberofelements + 1, 'yts', yts)
WriteData(fid, prefix, 'object', self, 'class', 'hydrology', 'fieldname', 'spchead', 'format', 'DoubleMat', 'mattype', 1)
WriteData(fid, prefix, 'object', self, 'class', 'hydrology', 'fieldname', 'spchead', 'format', 'DoubleMat', 'mattype', 1, 'timeserieslength', md.mesh.numberofvertices + 1, 'yts', md.constants.yts)
WriteData(fid, prefix, 'object', self, 'class', 'hydrology', 'fieldname', 'relaxation', 'format', 'Double')
WriteData(fid, prefix, 'object', self, 'class', 'hydrology', 'fieldname', 'storage', 'format', 'Double')
#process requested outputs
Expand Down

0 comments on commit d6fe538

Please sign in to comment.