[5026] | 1 | md=mesh(model,'../Exp/Square.exp',200000);
|
---|
[4998] | 2 | md=geography(md,'all','');
|
---|
| 3 | md=parameterize(md,'../Par/SquareShelf.par');
|
---|
[5026] | 4 | md=extrude(md,3,1);
|
---|
| 5 | md=setelementstype(md,'pattyn','all');
|
---|
| 6 |
|
---|
| 7 | %control parameters
|
---|
| 8 | md.control_analysis=1;
|
---|
[5355] | 9 | md.control_type=RheologyBbarEnum();
|
---|
[5026] | 10 | md.cm_min=10^6;
|
---|
| 11 | md.cm_max=2*10^9;
|
---|
| 12 | md.nsteps=2;
|
---|
[5279] | 13 | md.cm_responses=SurfaceAbsVelMisfitEnum()*ones(md.nsteps,1);
|
---|
[5026] | 14 | md.weights=ones(md.numberofgrids,1);
|
---|
| 15 | md.optscal=10^7*ones(md.nsteps,1);
|
---|
| 16 | md.maxiter=2*ones(md.nsteps,1);
|
---|
| 17 | md.cm_jump=0.3*ones(md.nsteps,1);
|
---|
| 18 | md.vx_obs=md.vx; md.vy_obs=md.vy;
|
---|
| 19 |
|
---|
[4998] | 20 | md.cluster=oshostname();
|
---|
| 21 | md=solve(md,'analysis_type',DiagnosticSolutionEnum);
|
---|
[5098] | 22 |
|
---|
| 23 | %Fields and tolerances to track changes
|
---|
[5355] | 24 | field_names ={'Gradient' 'Misfits' 'RheologyBbar' 'Pressure' 'Vel' 'Vx' 'Vy'};
|
---|
[5098] | 25 | field_tolerances={1e-07,1e-08,1e-08,1e-08,1e-08,1e-08,1e-08,1e-08,1e-08,1e-08};
|
---|
| 26 | field_values={...
|
---|
| 27 | PatchToVec(md.results.DiagnosticSolution.Gradient),...
|
---|
| 28 | md.results.DiagnosticSolution.J,...
|
---|
| 29 | PatchToVec(md.results.DiagnosticSolution.RheologyB),...
|
---|
| 30 | PatchToVec(md.results.DiagnosticSolution.Pressure),...
|
---|
| 31 | PatchToVec(md.results.DiagnosticSolution.Vel),...
|
---|
| 32 | PatchToVec(md.results.DiagnosticSolution.Vx),...
|
---|
| 33 | PatchToVec(md.results.DiagnosticSolution.Vy)
|
---|
| 34 | };
|
---|