Changeset 25632
- Timestamp:
- 10/06/20 09:44:24 (4 years ago)
- Location:
- issm/trunk-jpl/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/Makefile.am
r25628 r25632 803 803 issm_dakota_CXXFLAGS= $(CXXFLAGS) $(CXXOPTFLAGS) $(COPTFLAGS) 804 804 issm_dakota_LDADD= $(LDADD) 805 bin_PROGRAMS += issm_post 805 806 issm_post_SOURCES = main/issm_post.cpp 806 807 issm_post_CXXFLAGS= $(CXXFLAGS) $(CXXOPTFLAGS) -
issm/trunk-jpl/src/m/classes/qmu.py
r25460 r25632 25 25 self.method = OrderedDict() 26 26 self.params = OrderedStruct() 27 self.statistics = OrderedStruct() # TODO: Replace this with 'qmustatistics()' once class is translated 27 28 self.results = OrderedDict() 28 29 self.numberofresponses = 0 … … 217 218 flag = False 218 219 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'); 219 223 # }}} -
issm/trunk-jpl/src/m/classes/qmustatistics.m
r25627 r25632 9 9 %generic information: 10 10 nfiles_per_directory = 5; %number of files per output directory. 11 ndirectories = 50; %number of output directories . %ndirectoriesshould be < numcpus11 ndirectories = 50; %number of output directories; should be < numcpus 12 12 13 13 method = struct('name',{'None'},'fields',{[]},'steps',{[]},'nbins',{NaN},'indices',{[]}); … … 55 55 md = checkfield(md,'fieldname','qmu.statistics.nfiles_per_directory','>=',1); 56 56 if self.ndirectories>md.cluster.np, 57 error('qmustatistics consistency check: number of cluster cpus should be > tonumber of output directories');57 error('qmustatistics consistency check: number of cluster CPUs should be > number of output directories'); 58 58 end 59 59 if (self.ndirectories*self.nfiles_per_directory)~=md.qmu.method.params.samples, … … 86 86 function disp(self) % {{{ 87 87 88 disp(sprintf('qmustatistics: post-dakota run processing of QMU statistics:'));88 disp(sprintf('qmustatistics: post-Dakota run processing of QMU statistics:')); 89 89 90 90 if strcmpi(self.method(1).name,'None'), return; end; … … 92 92 %generic information: 93 93 fielddisplay(self,'nfiles_per_directory','number of files per output directory'); 94 fielddisplay(self,'ndirectories','number of output directories . %ndirectoriesshould be < numcpus');94 fielddisplay(self,'ndirectories','number of output directories; should be < numcpus'); 95 95 96 96 for i=1:length(self.method), -
issm/trunk-jpl/src/m/classes/sealevelmodel.py
r25499 r25632 70 70 s += '{}\n'.format(fielddisplay(self, 'cluster', 'cluster parameters (number of cpus...')) 71 71 s += '{}\n'.format(fielddisplay(self, 'miscellaneous', 'miscellaneous fields')) 72 73 return s 72 74 #}}} 73 75 -
issm/trunk-jpl/src/m/qmu/postqmu.py
r25629 r25632 9 9 10 10 def postqmu(md): 11 ''' 12 POSTQMU - Deal with Dakota output results in files 11 """POSTQMU - Deal with Dakota output results in files 13 12 14 15 13 Usage: 14 md = postqmu(md) 16 15 17 18 19 20 '''16 TODO: 17 - Run Dakota test to check that updates from 6/26 are working 18 - Add checks to Popen 19 """ 21 20 22 21 # check to see if dakota returned errors in the err file … … 56 55 dakotaresults.modelresults.append(md2.results) 57 56 58 if md.qmu.statistics.method[0].name != 'None': 59 md.qmu.isdakota = 0 60 md = loadresultsfromdisk(md, [md.miscellaneous.name,'.stats']) 61 md.qmu.isdakota = 1 57 # TODO: Uncomment the following once qmustatistics class is translated 58 # if md.qmu.statistics.method[0].name != 'None': 59 # md.qmu.isdakota = 0 60 # md = loadresultsfromdisk(md, [md.miscellaneous.name,'.stats']) 61 # md.qmu.isdakota = 1 62 62 63 63 # put dakotaresults in their right location. -
issm/trunk-jpl/src/m/qmu/preqmu.py
r25044 r25632 11 11 12 12 def preqmu(md, options): 13 ''' 14 QMU - apply Quantification of Margins and Uncertainties techniques 13 """QMU - apply Quantification of Margins and Uncertainties techniques 15 14 to a solution sequence (like stressbalance.py, progonstic.py, etc ...), 16 15 using the Dakota software from Sandia. 17 16 18 options come from the solve.py routine. They can include Dakota options:17 Options come from the solve.py routine. They can include Dakota options: 19 18 20 qmufile: input file for Dakota 21 22 (ivap, iresp, imethod, and iparams are currently unimplemented) 23 ivar: selection number for variables input (if several are specified in variables) 24 iresp: same thing for response functions 25 imethod: same thing for methods 26 iparams: same thing for params 27 ''' 19 qmufile : input file for Dakota 20 ivap : <currently unimplemented> 21 iresp : <currently unimplemented> 22 imethod : <currently unimplemented> 23 iparams : <currently unimplemented> 24 ivar : selection number for variables input (if several are specified in variables) 25 iresp : same thing for response functions 26 imethod : same thing for methods 27 iparams : same thing for params 28 """ 28 29 29 30 print('preprocessing dakota inputs')
Note:
See TracChangeset
for help on using the changeset viewer.