Changeset 25217


Ignore:
Timestamp:
07/06/20 19:26:14 (5 years ago)
Author:
Eric.Larour
Message:

CHG: dak/slr related tests.

Location:
issm/trunk-jpl/test/SandBox
Files:
11 added
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/test/SandBox/Makefile

    r24757 r25217  
    11clean:
    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  
    55md=setflowequation(md,'SSA','all');
    66md.cluster=generic('name',oshostname(),'np',3);
    7 md.materials.rho_ice=10^7; %involved in the mass flux, make it easy
    8 md.geometry.thickness(:)=1; %make it easy
    9 md.geometry.surface=md.geometry.base+md.geometry.thickness;
    107
    118%constrain all velocities to 1 m/yr, in the y-direction
    12 md.stressbalance.spcvx(:)=0;
    13 md.stressbalance.spcvy(:)=1;
     9pos=find(md.mesh.y==0);
     10md.stressbalance.spcvx(pos)=0;
     11md.stressbalance.spcvy(pos)=0;
     12%md.stressbalance.spcvy(:)=1;
    1413md.stressbalance.spcvz(:)=0;
    1514
     
    2423
    2524%input/output:
    26 md.qmu.variables.drag_coefficient=normal_uncertain('scaled_FrictionCoefficient',1,0.01);
     25md.qmu.variables.drag_coefficient=normal_uncertain('scaled_FrictionCoefficient',1,0.10);
    2726md.qmu.responses.misfit=calibration_function('MaxVel');
    2827%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]);
     
    3231md.qmu.method(end)=dmeth_params_set(md.qmu.method(end),...
    3332'seed',1234,...
    34 'samples',20,...
     33'samples',2000,...
    3534'queso',true,...
    3635'metropolis_hastings',true,...
     
    5352%Fields and tolerances to track changes
    5453md.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/yr
    59 %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 end
    67 for i=1:8,
    68         md.results.dakota.montecarlo=[md.results.dakota.montecarlo md.results.dakota.dresp_out(i).stddev];
    69 end
    70 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.