Changeset 25217
- Timestamp:
- 07/06/20 19:26:14 (5 years ago)
- Location:
- issm/trunk-jpl/test/SandBox
- Files:
-
- 11 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/test/SandBox/Makefile
r24757 r25217 1 1 clean: 2 rm -rf *.tar.gz *.errlog *.outlog *.bin *.qmu.in *.qmu.out *qmu.err *.queue *.toolkits 2 rm -rf *.tar.gz *.errlog *.outlog *.bin *.qmu.in *.qmu.out *qmu.err *.queue *.toolkits *.out -
issm/trunk-jpl/test/SandBox/testbayes.m
r24757 r25217 5 5 md=setflowequation(md,'SSA','all'); 6 6 md.cluster=generic('name',oshostname(),'np',3); 7 md.materials.rho_ice=10^7; %involved in the mass flux, make it easy8 md.geometry.thickness(:)=1; %make it easy9 md.geometry.surface=md.geometry.base+md.geometry.thickness;10 7 11 8 %constrain all velocities to 1 m/yr, in the y-direction 12 md.stressbalance.spcvx(:)=0; 13 md.stressbalance.spcvy(:)=1; 9 pos=find(md.mesh.y==0); 10 md.stressbalance.spcvx(pos)=0; 11 md.stressbalance.spcvy(pos)=0; 12 %md.stressbalance.spcvy(:)=1; 14 13 md.stressbalance.spcvz(:)=0; 15 14 … … 24 23 25 24 %input/output: 26 md.qmu.variables.drag_coefficient=normal_uncertain('scaled_FrictionCoefficient',1,0. 01);25 md.qmu.variables.drag_coefficient=normal_uncertain('scaled_FrictionCoefficient',1,0.10); 27 26 md.qmu.responses.misfit=calibration_function('MaxVel'); 28 27 %md.qmu.responses.MaxVel=response_function('MaxVel',[],[0.0001 0.001 0.01 0.25 0.5 0.75 0.99 0.999 0.9999]); … … 32 31 md.qmu.method(end)=dmeth_params_set(md.qmu.method(end),... 33 32 'seed',1234,... 34 'samples',20 ,...33 'samples',2000,... 35 34 'queso',true,... 36 35 'metropolis_hastings',true,... … … 53 52 %Fields and tolerances to track changes 54 53 md.qmu.results=md.results.dakota; 55 56 error;57 58 %ok, mass flux of 3 profiles should be -3 Gt/yr -3 Gt/yr and the sum, which is -6 Gt/yr59 %we recover those mass fluxes through the mean of the response.60 %also, we recover the max velo, which should be 1m/yr.61 %we put all that data in the montecarlo field, which we will use to test for success.62 %also, check that the stddev are 0.63 md.results.dakota.montecarlo=[];64 for i=1:8,65 md.results.dakota.montecarlo=[md.results.dakota.montecarlo md.results.dakota.dresp_out(i).mean];66 end67 for i=1:8,68 md.results.dakota.montecarlo=[md.results.dakota.montecarlo md.results.dakota.dresp_out(i).stddev];69 end70 field_names ={'montecarlo'};71 field_tolerances={1e-11};72 field_values={...73 md.results.dakota.montecarlo,...74 };
Note:
See TracChangeset
for help on using the changeset viewer.