Changeset 25649
- Timestamp:
- 10/07/20 00:44:24 (5 years ago)
- Location:
- issm/trunk-jpl/src/m/classes
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/qmu.py
r25632 r25649 1 1 import numpy as np 2 2 3 from collections import OrderedDict 3 4 from dakota_method import * … … 6 7 from IssmConfig import * 7 8 from MatlabFuncs import * 9 from qmustatistics import qmustatistics 8 10 from WriteData import WriteData 9 11 … … 25 27 self.method = OrderedDict() 26 28 self.params = OrderedStruct() 27 self.statistics = OrderedStruct() # TODO: Replace this with 'qmustatistics()' once class is translated29 self.statistics = qmustatistics() 28 30 self.results = OrderedDict() 29 31 self.numberofresponses = 0 … … 218 220 flag = False 219 221 WriteData(fid, prefix, 'data', flag, 'name', 'md.qmu.mass_flux_segments_present', 'format', 'Boolean') 220 # TODO: Uncomment this and remove the following line once qmustatistics class is translated 221 #self.statistics.marshall 222 WriteData(fid,prefix,'name','md.qmu.statistics','data',0,'format','Boolean'); 222 self.statistics.marshall(prefix, md, fid) 223 223 # }}} -
issm/trunk-jpl/src/m/classes/qmustatistics.m
r25632 r25649 72 72 for s=1:length(m.steps), 73 73 if m.steps(s)<=0, 74 error(sprintf('qmustatistics consistency check error: qmu.statistics.method(%i).steps(%i) should be > 0!',i,s));74 error(sprintf('qmustatistics consistency check error: qmu.statistics.method(%i).steps(%i) should be > 0!',i,s)); 75 75 end 76 76 if m.steps(s)> md.mesh.numberofvertices
Note:
See TracChangeset
for help on using the changeset viewer.