[21175] | 1 | //Test Name: SquareShelfConstrainedRestartTranSSA2d
|
---|
| 2 | var md = new model();
|
---|
| 3 | triangle(md,square[0],150000.);
|
---|
| 4 | setmask(md,'all','');
|
---|
| 5 | parameterize(md);
|
---|
| 6 | setflowequation(md,'SSA','all');
|
---|
| 7 | //md.cluster=generic('name',oshostname(),'np',1);
|
---|
| 8 | md.transient.requested_outputs=['IceVolume','TotalSmb'];
|
---|
| 9 |
|
---|
| 10 | //md.verbose=verbose('solution',true);
|
---|
[25836] | 11 | md.settings.checkpoint_frequency=5;
|
---|
[21175] | 12 |
|
---|
| 13 | // time steps and resolution
|
---|
| 14 | md.timestepping.final_time=8;
|
---|
| 15 |
|
---|
| 16 | md=solve(md,'TransientSolution');
|
---|
| 17 | md2=solve(md,'TransientSolution','restart',1);
|
---|
| 18 |
|
---|
| 19 | //Fields and tolerances to track changes
|
---|
| 20 | field_names =['Vx1','Vy1','Vel1','TotalSmb1','Bed1','Surface1','Thickness1','Volume1','Vx2','Vy2','Vel2','TotalSmb2','Bed2','Surface2','Thickness2','Volume2','Vx3','Vy3','Vel3','TotalSmb3','Bed3','Surface3','Thickness3','Volume3'];
|
---|
| 21 | field_tolerances=[1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,
|
---|
| 22 | 1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,
|
---|
| 23 | 1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13];
|
---|
| 24 | field_values=[
|
---|
| 25 | (md.results.TransientSolution(6).Vx)-(md2.results.TransientSolution[0](1).Vx),
|
---|
| 26 | (md.results.TransientSolution(6).Vy)-(md2.results.TransientSolution[0](1).Vy),
|
---|
| 27 | (md.results.TransientSolution(6).Vel)-(md2.results.TransientSolution[0](1).Vel),
|
---|
| 28 | (md.results.TransientSolution(6).TotalSmb)-(md2.results.TransientSolution[0](1).TotalSmb),
|
---|
| 29 | (md.results.TransientSolution(6).Base)-(md2.results.TransientSolution[0](1).Base),
|
---|
| 30 | (md.results.TransientSolution(6).Surface)-(md2.results.TransientSolution[0](1).Surface),
|
---|
| 31 | (md.results.TransientSolution(6).Thickness)-(md2.results.TransientSolution[0](1).Thickness),
|
---|
| 32 | (md.results.TransientSolution(6).IceVolume)-(md2.results.TransientSolution[0](1).IceVolume),
|
---|
| 33 | (md.results.TransientSolution(7).Vx)-(md2.results.TransientSolution[0](2).Vx),
|
---|
| 34 | (md.results.TransientSolution(7).Vy)-(md2.results.TransientSolution[0](2).Vy),
|
---|
| 35 | (md.results.TransientSolution(7).Vel)-(md2.results.TransientSolution[0](2).Vel),
|
---|
| 36 | (md.results.TransientSolution(7).TotalSmb)-(md2.results.TransientSolution[0](2).TotalSmb),
|
---|
| 37 | (md.results.TransientSolution(7).Base)-(md2.results.TransientSolution[0](2).Base),
|
---|
| 38 | (md.results.TransientSolution(7).Surface)-(md2.results.TransientSolution[0](2).Surface),
|
---|
| 39 | (md.results.TransientSolution(7).Thickness)-(md2.results.TransientSolution[0](2).Thickness),
|
---|
| 40 | (md.results.TransientSolution(7).IceVolume)-(md2.results.TransientSolution[0](2).IceVolume),
|
---|
| 41 | (md.results.TransientSolution(8).Vx)-(md2.results.TransientSolution[0](3).Vx),
|
---|
| 42 | (md.results.TransientSolution(8).Vy)-(md2.results.TransientSolution[0](3).Vy),
|
---|
| 43 | (md.results.TransientSolution(8).Vel)-(md2.results.TransientSolution[0](3).Vel),
|
---|
| 44 | (md.results.TransientSolution(8).TotalSmb)-(md2.results.TransientSolution[0](3).TotalSmb),
|
---|
| 45 | (md.results.TransientSolution(8).Base)-(md2.results.TransientSolution[0](3).Base),
|
---|
| 46 | (md.results.TransientSolution(8).Surface)-(md2.results.TransientSolution[0](3).Surface),
|
---|
| 47 | (md.results.TransientSolution(8).Thickness)-(md2.results.TransientSolution[0](3).Thickness),
|
---|
| 48 | (md.results.TransientSolution(8).IceVolume)-(md2.results.TransientSolution[0](3).IceVolume),
|
---|
| 49 | ];
|
---|