Skip to content

Commit

Permalink
CHG: protect nond sampling variable.
Browse files Browse the repository at this point in the history
	modified:   ../../../test/NightlyRun/test109.m
  • Loading branch information
larour committed Nov 30, 2024
1 parent 93c8c76 commit 975daed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/m/classes/qmu.m
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,9 @@ function marshall(self,prefix,md,fid) % {{{
WriteData(fid,prefix,'data',false,'name','md.qmu.mass_flux_segments_present','format','Boolean');
return;
end
WriteData(fid,prefix,'data',self.method.params.samples,'name','md.qmu.method.params.samples','format','Integer');
if strcmpi(self.method.method,'nond_sampling'),
WriteData(fid,prefix,'data',self.method.params.samples,'name','md.qmu.method.params.samples','format','Integer');
end
WriteData(fid,prefix,'object',self,'fieldname','numberofresponses','format','Integer');
WriteData(fid,prefix,'object',self,'fieldname','variabledescriptors','format','StringArray');
WriteData(fid,prefix,'object',self,'fieldname','variablepartitions','format','MatArray');
Expand Down

0 comments on commit 975daed

Please sign in to comment.