source: issm/trunk-jpl/test/NightlyRun/test235.m@ 13670

Last change on this file since 13670 was 13670, checked in by Mathieu Morlighem, 12 years ago

CHG: added point at the end of triangle command, resolution is a float

File size: 2.9 KB
RevLine 
[13670]1md=triangle(model(),'../Exp/Square.exp',180000.);
[11018]2md=setmask(md,'all','');
3md=parameterize(md,'../Par/SquareShelf.par');
4md=setflowequation(md,'macayeal','all');
5md.cluster=generic('name',oshostname(),'np',3);
6
7md.timestepping.time_step=1;
8md.settings.output_frequency=1;
9md.timestepping.final_time=4;
10
11smb = ones(md.mesh.numberofvertices,1)*3.6;
12smb=[ smb smb*-1 ];
13
14md.surfaceforcings.mass_balance= smb;
15md.surfaceforcings.mass_balance(end+1,:)=[1.5 3];
16md.transient.isthermal=0;
17%Dakota options
18
19%partitioning
20md.qmu.numberofpartitions=20;
21md=partitioner(md,'package','chaco','npart',md.qmu.numberofpartitions,'weighting','on');
22md.qmu.partition=md.qmu.partition-1;
23
24%variables
25md.qmu.variables.surface_mass_balance=normal_uncertain('scaled_SurfaceforcingsMassBalance',1,100);
26
27%responses
28md.qmu.responses.MaxVel=response_function('MaxVel',[],[0.0001 0.001 0.01 0.25 0.5 0.75 0.99 0.999 0.9999]);
29md.qmu.responses.IceVolume=response_function('IceVolume',[],[0.0001 0.001 0.01 0.25 0.5 0.75 0.99 0.999 0.9999]);
30md.qmu.responses.MassFlux1=response_function('indexed_MassFlux_1',[],[0.0001 0.001 0.01 0.25 0.5 0.75 0.99 0.999 0.9999]);
31md.qmu.responses.MassFlux2=response_function('indexed_MassFlux_2',[],[0.0001 0.001 0.01 0.25 0.5 0.75 0.99 0.999 0.9999]);
32md.qmu.responses.MassFlux3=response_function('indexed_MassFlux_3',[],[0.0001 0.001 0.01 0.25 0.5 0.75 0.99 0.999 0.9999]);
33md.qmu.responses.MassFlux4=response_function('indexed_MassFlux_4',[],[0.0001 0.001 0.01 0.25 0.5 0.75 0.99 0.999 0.9999]);
34md.qmu.responses.MassFlux5=response_function('indexed_MassFlux_5',[],[0.0001 0.001 0.01 0.25 0.5 0.75 0.99 0.999 0.9999]);
35md.qmu.responses.massFlux6=response_function('indexed_MassFlux_6',[],[0.0001 0.001 0.01 0.25 0.5 0.75 0.99 0.999 0.9999]);
36
37%mass flux profiles
38md.qmu.mass_flux_profiles={'../Exp/MassFlux1.exp','../Exp/MassFlux2.exp','../Exp/MassFlux3.exp','../Exp/MassFlux4.exp','../Exp/MassFlux5.exp','../Exp/MassFlux6.exp'};
39md.qmu.mass_flux_profile_directory=pwd;
40
41%method
42md.qmu.method =dakota_method('nond_l');
43
44%parameters
45md.qmu.params.direct=true;
46md.qmu.params.analysis_driver='';
47md.qmu.params.analysis_components='';
48md.qmu.params.evaluation_concurrency=1;
49md.qmu.params.interval_type='forward';
50md.qmu.params.fd_gradient_step_size='0.1';
51md.qmu.isdakota=1;
52
53md.diagnostic.reltol=10^-5; %tighten for qmu analyses
54md.transient.requested_outputs=IceVolumeEnum();
55
56%solve
[13582]57md=solve(md,TransientSolutionEnum(),'overwrite','y');
[13021]58md.qmu.results=md.results.dakota;
[11018]59
60%Fields and tolerances to track changes
61md.results.dakota.importancefactors=[];
62for i=1:8,
63 md.results.dakota.importancefactors=[md.results.dakota.importancefactors md.results.dakota.dresp_out(i).mean];
64end
65for i=1:8,
66 md.results.dakota.importancefactors=[md.results.dakota.importancefactors md.results.dakota.dresp_out(i).stddev];
67end
68field_names ={'importancefactors'};
69field_tolerances={1e-11};
70field_values={...
71 md.results.dakota.importancefactors,...
72 };
Note: See TracBrowser for help on using the repository browser.