source: issm/trunk-jpl/test/NightlyRun/test238.m@ 18002

Last change on this file since 18002 was 18002, checked in by schlegel, 11 years ago

NEW: tests for SMB components and interpolation option

File size: 2.7 KB
Line 
1md=triangle(model(),'../Exp/Square.exp',150000.);
2md=setmask(md,'all','');
3md=parameterize(md,'../Par/SquareShelf.par');
4md=setflowequation(md,'SSA','all');
5md.cluster=generic('name',oshostname(),'np',3);
6
7md.timestepping.time_step=1.;
8md.settings.output_frequency=1;
9md.timestepping.final_time=4.;
10md.timestepping.interp_forcings=0;
11
12%Set up transient
13smb=ones(md.mesh.numberofvertices,1)*3.6;
14smb=[ smb smb*-1. ];
15
16md.surfaceforcings.mass_balance=smb;
17md.surfaceforcings.mass_balance(end+1,:)=[1.5 3.];
18md.transient.isthermal=0;
19
20md=solve(md,TransientSolutionEnum());
21
22%Fields and tolerances to track changes
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'};
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};
31field_values={...
32 (md.results.TransientSolution(1).Vx),...
33 (md.results.TransientSolution(1).Vy),...
34 (md.results.TransientSolution(1).Vel),...
35 (md.results.TransientSolution(1).Pressure),...
36 (md.results.TransientSolution(1).Base),...
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),...
44 (md.results.TransientSolution(2).Base),...
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),...
52 (md.results.TransientSolution(3).Base),...
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),...
60 (md.results.TransientSolution(4).Base),...
61 (md.results.TransientSolution(4).Surface),...
62 (md.results.TransientSolution(4).Thickness),...
63 (md.results.TransientSolution(4).SurfaceforcingsMassBalance),...
64 };
Note: See TracBrowser for help on using the repository browser.