source: issm/trunk/test/NightlyRun/test228.m@ 11027

Last change on this file since 11027 was 11027, checked in by Eric.Larour, 13 years ago

merged trunk-jpl and trunk for revision 11026

File size: 1.4 KB
RevLine 
[11027]1md=triangle(model,'../Exp/Square.exp',200000);
[9641]2md=setmask(md,'all','');
[4998]3md=parameterize(md,'../Par/SquareShelf.par');
[5026]4md=extrude(md,3,1);
[9664]5md=setflowequation(md,'pattyn','all');
[5026]6
7%control parameters
[9681]8md.inversion.iscontrol=1;
9md.inversion.control_parameters={'MaterialsRheologyBbar'};
[9725]10md.inversion.min_parameters=10^6*ones(md.mesh.numberofvertices,1);
11md.inversion.max_parameters=2*10^9*ones(md.mesh.numberofvertices,1);
[9681]12md.inversion.nsteps=2;
13md.inversion.cost_functions=101*ones(md.inversion.nsteps,1);
[9725]14md.inversion.cost_functions_coefficients=ones(md.mesh.numberofvertices,1);
[9681]15md.inversion.gradient_scaling=10^7*ones(md.inversion.nsteps,1);
16md.inversion.maxiter_per_step=2*ones(md.inversion.nsteps,1);
17md.inversion.step_threshold=0.3*ones(md.inversion.nsteps,1);
[9684]18md.inversion.vx_obs=md.initialization.vx; md.inversion.vy_obs=md.initialization.vy;
[5026]19
[8589]20md.cluster=generic('name',oshostname(),'np',3);
[8295]21md=solve(md,DiagnosticSolutionEnum);
[5098]22
23%Fields and tolerances to track changes
[9641]24field_names ={'Gradient' 'Misfits' 'MaterialsRheologyBbar' 'Pressure' 'Vel' 'Vx' 'Vy'};
[5098]25field_tolerances={1e-07,1e-08,1e-08,1e-08,1e-08,1e-08,1e-08,1e-08,1e-08,1e-08};
26field_values={...
[10981]27 (md.results.DiagnosticSolution.Gradient1),...
[5098]28 md.results.DiagnosticSolution.J,...
[10981]29 (md.results.DiagnosticSolution.MaterialsRheologyB),...
30 (md.results.DiagnosticSolution.Pressure),...
31 (md.results.DiagnosticSolution.Vel),...
32 (md.results.DiagnosticSolution.Vx),...
33 (md.results.DiagnosticSolution.Vy)
[5098]34};
Note: See TracBrowser for help on using the repository browser.