source: issm/trunk/test/NightlyRun/test339.m@ 9535

Last change on this file since 9535 was 9535, checked in by Mathieu Morlighem, 14 years ago

New control_types are cells of strings

File size: 1.3 KB
RevLine 
[5033]1md=mesh(model,'../Exp/Square.exp',200000);
[4996]2md=geography(md,'','');
3md=parameterize(md,'../Par/SquareSheetConstrained.par');
[5033]4md=extrude(md,3,1);
5md=setelementstype(md,'macayeal','all');
6
7%control parameters
8md.control_analysis=1;
[9535]9md.control_type={'DragCoefficient'};
[8304]10md.cm_min=1*ones(md.numberofnodes,1);
11md.cm_max=200*ones(md.numberofnodes,1);
[5033]12md.nsteps=2;
[8648]13md.cm_responses=[SurfaceLogVelMisfitEnum()*ones(md.nsteps,1) DragCoefficientAbsGradientEnum*ones(md.nsteps,1)];
14md.weights=ones(md.numberofnodes,2); md.weights(:,2)=2*10^-7;
[5033]15md.optscal=3*ones(md.nsteps,1);
16md.maxiter=2*ones(md.nsteps,1);
17md.cm_jump=0.3*ones(md.nsteps,1);
18md.vx_obs=md.vx; md.vy_obs=md.vy;
19
[5955]20md.cluster=none;
[8295]21md=solve(md,DiagnosticSolutionEnum);
[5098]22
23%Fields and tolerances to track changes
24field_names ={'Gradient' 'Misfits' 'DragCoefficient' 'Pressure' 'Vel' 'Vx' 'Vy'};
25field_tolerances={1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13};
26field_values={...
[6264]27 PatchToVec(md.results.DiagnosticSolution.Gradient1),...
[5098]28 md.results.DiagnosticSolution.J,...
29 PatchToVec(md.results.DiagnosticSolution.DragCoefficient),...
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};
Note: See TracBrowser for help on using the repository browser.