Changeset 25981


Ignore:
Timestamp:
02/04/21 15:49:51 (4 years ago)
Author:
jdquinn
Message:

BUG: Last plot was not working

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/examples/UncertaintyQuantification/runme.m

    r25923 r25981  
    1 %PIG Uncertainty Quantification Application
     1%PIG Uncertainty Quantification Tutorial
    22steps=[1];
    33
     
    115115        md.qmu.mass_flux_profile_directory='./MassFluxes/';
    116116
    117         %sampling analysis
     117        %sampling analysis
    118118        md.qmu.method           =dakota_method('nond_samp');
    119119        md.qmu.method(end)      =dmeth_params_set(...
     
    124124        ); %random or lhs
    125125
    126         %a variety of parameters
     126        %a variety of parameters
    127127        md.qmu.params.direct=true;
    128128        md.qmu.params.analysis_driver='';
     
    136136        md.verbose=verbose(0);
    137137
    138         %Here, we choose to run with 4 processors, 3 for DAKOTA
     138        %Here, we choose to run with 4 processors, 3 for Dakota
    139139        % while one serves as the master
    140140        md.cluster=generic('name',oshostname,'np',4);
     
    226226        md.stressbalance.restol=10^-5; %tighten for qmu analyses
    227227
    228         %Here, we choose to run with 2 processors, 1 for DAKOTA
     228        %Here, we choose to run with 2 processors, 1 for Dakota
    229229        % while one serves as the master
    230230        md.cluster=generic('name',oshostname,'np',2);
     
    250250        md = loadmodel('./Models/PIG.Sampling');
    251251
    252         plotmodel(md,'data','mesh','partitionedges','on',...
     252        plotmodel(md,'data','mesh','partition',partition,...
    253253        'linewidth',2, 'axis#all','image','unit','km','colorbar','off',...
    254254        'title','Partition Edges on ISSM mesh','grid','on');
     
    301301
    302302        %To plot importance factors
    303         ifa=importancefactors(md,'scaled_FrictionCoefficient',['indexed_MassFlux_' num2str(index)]);
    304         ifb=importancefactors(md,'scaled_MaterialsRheologyB',['indexed_MassFlux_' num2str(index)]);
    305         ifh=importancefactors(md,'scaled_Thickness',['indexed_MassFlux_' num2str(index)]);
     303        ifa=importancefactors(md,'scaled_FrictionCoefficient',['indexed_MassFlux_' num2str(index)],partition);
     304        ifb=importancefactors(md,'scaled_MaterialsRheologyB',['indexed_MassFlux_' num2str(index)],partition);
     305        ifh=importancefactors(md,'scaled_Thickness',['indexed_MassFlux_' num2str(index)],partition);
    306306
    307307        plotmodel(md,'data',ifh,'data',ifa,'data',ifb,'expdisp#all',...
Note: See TracChangeset for help on using the changeset viewer.