source: issm/trunk-jpl/test/NightlyRun/test229.m@ 19049

Last change on this file since 19049 was 19049, checked in by Mathieu Morlighem, 10 years ago

NEW: test name is now included in the file itself so that people don't forget to include it

File size: 2.7 KB
RevLine 
[19049]1%Test Name: SquareShelfTranForcePos2d
[13670]2md=triangle(model(),'../Exp/Square.exp',150000.);
[9641]3md=setmask(md,'all','');
[8674]4md=parameterize(md,'../Par/SquareShelf.par');
[15565]5md=setflowequation(md,'SSA','all');
[8674]6md.cluster=generic('name',oshostname(),'np',3);
7
[13580]8md.timestepping.time_step=1.;
[9720]9md.settings.output_frequency=1;
[13580]10md.timestepping.final_time=4.;
[8674]11
12%Set up transient
[13580]13smb=ones(md.mesh.numberofvertices,1)*3.6;
14smb=[ smb smb*2. ];
[8674]15
[13580]16md.surfaceforcings.mass_balance=smb;
17md.surfaceforcings.mass_balance(end+1,:)=[1.5 3.];
[9682]18md.transient.isthermal=0;
[8674]19
[13581]20md=solve(md,TransientSolutionEnum());
[8674]21
22%Fields and tolerances to track changes
[9619]23field_names={'Vx1','Vy1','Vel1','Pressure1','Bed1','Surface1','Thickness1','SurfaceforcingsMassBalance1', ...
24 'Vx2','Vy2','Vel2','Pressure2','Bed2','Surface2','Thickness2','SurfaceforcingsMassBalance2', ...
25 'Vx3','Vy3','Vel3','Pressure3','Bed3','Surface3','Thickness3','SurfaceforcingsMassBalance3', ...
26 'Vx4','Vy4','Vel4','Pressure4','Bed4','Surface4','Thickness4','SurfaceforcingsMassBalance4'};
[8790]27field_tolerances={1e-09,1e-09,1e-10,1e-10,1e-10,1e-10,1e-10,1e-10,...
28 1e-09,1e-09,1e-10,1e-10,1e-10,1e-10,1e-10,1e-10,...
29 1e-09,1e-09,1e-10,1e-10,1e-10,1e-10,1e-10,1e-10,...
30 1e-09,1e-09,1e-10,1e-10,1e-10,1e-10,1e-10,1e-10};
[8674]31field_values={...
[10976]32 (md.results.TransientSolution(1).Vx),...
33 (md.results.TransientSolution(1).Vy),...
34 (md.results.TransientSolution(1).Vel),...
35 (md.results.TransientSolution(1).Pressure),...
[17555]36 (md.results.TransientSolution(1).Base),...
[10976]37 (md.results.TransientSolution(1).Surface),...
38 (md.results.TransientSolution(1).Thickness),...
39 (md.results.TransientSolution(1).SurfaceforcingsMassBalance),...
40 (md.results.TransientSolution(2).Vx),...
41 (md.results.TransientSolution(2).Vy),...
42 (md.results.TransientSolution(2).Vel),...
43 (md.results.TransientSolution(2).Pressure),...
[17555]44 (md.results.TransientSolution(2).Base),...
[10976]45 (md.results.TransientSolution(2).Surface),...
46 (md.results.TransientSolution(2).Thickness),...
47 (md.results.TransientSolution(2).SurfaceforcingsMassBalance),...
48 (md.results.TransientSolution(3).Vx),...
49 (md.results.TransientSolution(3).Vy),...
50 (md.results.TransientSolution(3).Vel),...
51 (md.results.TransientSolution(3).Pressure),...
[17555]52 (md.results.TransientSolution(3).Base),...
[10976]53 (md.results.TransientSolution(3).Surface),...
54 (md.results.TransientSolution(3).Thickness),...
55 (md.results.TransientSolution(3).SurfaceforcingsMassBalance),...
56 (md.results.TransientSolution(4).Vx),...
57 (md.results.TransientSolution(4).Vy),...
58 (md.results.TransientSolution(4).Vel),...
59 (md.results.TransientSolution(4).Pressure),...
[17555]60 (md.results.TransientSolution(4).Base),...
[10976]61 (md.results.TransientSolution(4).Surface),...
62 (md.results.TransientSolution(4).Thickness),...
63 (md.results.TransientSolution(4).SurfaceforcingsMassBalance),...
[8685]64 };
Note: See TracBrowser for help on using the repository browser.