source: issm/trunk-jpl/test/NightlyRun/test445.m

Last change on this file was 25176, checked in by jdquinn, 5 years ago

CHG: Changes to test suites.

File size: 3.4 KB
Line 
1%Test Name: SquareSheetShelfSteaEnthalpyHO3dDakotaSampNeff
2
3% TODO:
4% - Figure out why test fails intermittently on Mac with "Index exceeds array
5% bounds."
6%
7
8md=triangle(model(),'../Exp/Square.exp',150000.);
9md=setmask(md,'../Exp/SquareShelf.exp','');
10md=parameterize(md,'../Par/SquareSheetShelf.par');
11md=extrude(md,3,2.);
12md=setflowequation(md,'HO','all');
13md.cluster=generic('name',oshostname(),'np',3);
14md.timestepping.time_step=0.;
15md.thermal.isenthalpy=1;
16md.thermal.isdynamicbasalspc=1;
17md.initialization.waterfraction=zeros(md.mesh.numberofvertices,1);
18md.initialization.watercolumn=zeros(md.mesh.numberofvertices,1);
19
20md.friction.coupling=3;
21md.friction.effective_pressure=md.materials.rho_ice*md.constants.g*md.geometry.thickness+md.materials.rho_water*md.constants.g*md.geometry.base;
22
23%dakota version
24version=IssmConfig('_DAKOTA_VERSION_');
25version=version(1:3);
26version=str2num(version);
27
28%partitioning
29npart=10;
30partition=partitioner(md,'package','chaco','npart',npart,'weighting','on')-1;
31md.qmu.isdakota=1;
32
33%variables
34md.qmu.variables.neff=normal_uncertain('descriptor','scaled_FrictionEffectivePressure',...
35 'mean',ones(npart,1),...
36 'stddev',.05*ones(npart,1),...
37 'partition',partition);
38md.qmu.variables.geoflux=normal_uncertain('descriptor','scaled_BasalforcingsGeothermalflux',...
39 'mean',ones(npart,1),...
40 'stddev',.05*ones(npart,1),...
41 'partition',partition);
42
43%responses
44md.qmu.responses.MaxVel=response_function('descriptor','MaxVel');
45md.qmu.responses.MassFlux1=response_function('descriptor','indexed_MassFlux_1');
46md.qmu.responses.MassFlux2=response_function('descriptor','indexed_MassFlux_2');
47md.qmu.responses.MassFlux3=response_function('descriptor','indexed_MassFlux_3');
48md.qmu.responses.MassFlux4=response_function('descriptor','indexed_MassFlux_4');
49md.qmu.responses.MassFlux5=response_function('descriptor','indexed_MassFlux_5');
50md.qmu.responses.MassFlux6=response_function('descriptor','indexed_MassFlux_6');
51md.qmu.responses.MassFlux7=response_function('descriptor','indexed_MassFlux_7');
52
53%mass flux profiles
54md.qmu.mass_flux_profiles={'../Exp/MassFlux1.exp','../Exp/MassFlux2.exp','../Exp/MassFlux3.exp','../Exp/MassFlux4.exp','../Exp/MassFlux5.exp','../Exp/MassFlux6.exp','../Exp/Square.exp'};
55md.qmu.mass_flux_profile_directory=pwd;
56
57md.qmu.method =dakota_method('nond_samp');
58md.qmu.method(end)=dmeth_params_set(md.qmu.method(end),...
59 'seed',1234,...
60 'samples',20,...
61 'sample_type','random');
62
63%% a variety of parameters
64md.qmu.params.direct=true;
65md.qmu.params.analysis_components='';
66md.qmu.params.tabular_graphics_data=true;
67
68if version>=6,
69 md.qmu.params.analysis_driver='matlab';
70 md.qmu.params.evaluation_scheduling='master';
71 md.qmu.params.processors_per_evaluation=2;
72else
73 md.qmu.params.analysis_driver='stressbalance';
74 md.qmu.params.evaluation_concurrency=1;
75end
76
77
78md.stressbalance.reltol=10^-5; %tighten for qmu analyses
79
80md=solve(md,'Steadystate','overwrite','y');
81
82%Fields and tolerances to track changes
83md.qmu.results=md.results.dakota;
84
85%we put all the mean and stdev data in the montecarlo field, which we will use to test for success.
86md.results.dakota.montecarlo=[];
87for i=1:8,
88 md.results.dakota.montecarlo=[md.results.dakota.montecarlo md.results.dakota.dresp_out(i).mean];
89end
90for i=1:8,
91 md.results.dakota.montecarlo=[md.results.dakota.montecarlo md.results.dakota.dresp_out(i).stddev];
92end
93field_names ={'montecarlo'};
94field_tolerances={2e-10};
95field_values={...
96 md.results.dakota.montecarlo,...
97 };
98
Note: See TracBrowser for help on using the repository browser.