Changeset 25632


Ignore:
Timestamp:
10/06/20 09:44:24 (4 years ago)
Author:
jdquinn
Message:

BUG: Temp fix for Dakota test suite; needed to add issm_post to bin_PROGRAMS; clean up

Location:
issm/trunk-jpl/src
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/Makefile.am

    r25628 r25632  
    803803issm_dakota_CXXFLAGS= $(CXXFLAGS) $(CXXOPTFLAGS) $(COPTFLAGS)
    804804issm_dakota_LDADD= $(LDADD)
     805bin_PROGRAMS += issm_post
    805806issm_post_SOURCES = main/issm_post.cpp
    806807issm_post_CXXFLAGS= $(CXXFLAGS) $(CXXOPTFLAGS)
  • issm/trunk-jpl/src/m/classes/qmu.py

    r25460 r25632  
    2525        self.method = OrderedDict()
    2626        self.params = OrderedStruct()
     27        self.statistics = OrderedStruct() # TODO: Replace this with 'qmustatistics()' once class is translated
    2728        self.results = OrderedDict()
    2829        self.numberofresponses = 0
     
    217218            flag = False
    218219        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');
    219223    # }}}
  • issm/trunk-jpl/src/m/classes/qmustatistics.m

    r25627 r25632  
    99                %generic information:
    1010                nfiles_per_directory = 5;  %number of files per output directory.
    11                 ndirectories         = 50; %number of output directories.  %ndirectories should be < numcpus
     11                ndirectories         = 50; %number of output directories; should be < numcpus
    1212       
    1313                method = struct('name',{'None'},'fields',{[]},'steps',{[]},'nbins',{NaN},'indices',{[]});
     
    5555                        md = checkfield(md,'fieldname','qmu.statistics.nfiles_per_directory','>=',1);
    5656                        if self.ndirectories>md.cluster.np,
    57                                 error('qmustatistics consistency check: number of cluster cpus should be > to number of output directories');
     57                                error('qmustatistics consistency check: number of cluster CPUs should be > number of output directories');
    5858                        end
    5959                        if (self.ndirectories*self.nfiles_per_directory)~=md.qmu.method.params.samples,
     
    8686                function disp(self) % {{{
    8787
    88                         disp(sprintf('qmustatistics:  post-dakota run processing of QMU statistics:'));
     88                        disp(sprintf('qmustatistics: post-Dakota run processing of QMU statistics:'));
    8989                               
    9090                        if strcmpi(self.method(1).name,'None'),  return; end;
     
    9292                        %generic information:
    9393                        fielddisplay(self,'nfiles_per_directory','number of files per output directory');
    94                         fielddisplay(self,'ndirectories','number of output directories.  %ndirectories should be < numcpus');
     94                        fielddisplay(self,'ndirectories','number of output directories; should be < numcpus');
    9595
    9696                        for i=1:length(self.method),
  • issm/trunk-jpl/src/m/classes/sealevelmodel.py

    r25499 r25632  
    7070        s += '{}\n'.format(fielddisplay(self, 'cluster', 'cluster parameters (number of cpus...'))
    7171        s += '{}\n'.format(fielddisplay(self, 'miscellaneous', 'miscellaneous fields'))
     72
     73        return s
    7274    #}}}
    7375
  • issm/trunk-jpl/src/m/qmu/postqmu.py

    r25629 r25632  
    99
    1010def postqmu(md):
    11     '''
    12     POSTQMU - Deal with Dakota output results in files
     11    """POSTQMU - Deal with Dakota output results in files
    1312   
    14         Usage:
    15             md = postqmu(md)
     13    Usage:
     14        md = postqmu(md)
    1615
    17         TODO:
    18         - Run Dakota test to check that updates from 6/26 are working
    19         - Add checks to Popen
    20     '''
     16    TODO:
     17    - Run Dakota test to check that updates from 6/26 are working
     18    - Add checks to Popen
     19    """
    2120
    2221    # check to see if dakota returned errors in the err file
     
    5655                dakotaresults.modelresults.append(md2.results)
    5756
    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
    6262
    6363    # put dakotaresults in their right location.
  • issm/trunk-jpl/src/m/qmu/preqmu.py

    r25044 r25632  
    1111
    1212def preqmu(md, options):
    13     '''
    14     QMU - apply Quantification of Margins and Uncertainties techniques
     13    """QMU - apply Quantification of Margins and Uncertainties techniques
    1514    to a solution sequence (like stressbalance.py, progonstic.py, etc ...),
    1615    using the Dakota software from Sandia.
    1716
    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:
    1918
    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    """
    2829
    2930    print('preprocessing dakota inputs')
Note: See TracChangeset for help on using the changeset viewer.