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

Last change on this file since 19243 was 19243, checked in by schlegel, 10 years ago

CHG: fix pdd tests so that field names match fields tested, add removal of del18o interpolation tests

File size: 4.0 KB
RevLine 
[19243]1%Test Name: SquareShelfTranIspddIsdeltaO18pdSSA2d
[18002]2md=triangle(model(),'../Exp/Square.exp',150000.);
3md=setmask(md,'all','');
4md=parameterize(md,'../Par/SquareShelf.par');
5
[19243]6%md.verbose=verbose('all');
[18002]7
[19243]8% Use of ispdd and isdelta18o methods
9md.surfaceforcings = SMBd18opdd();
10md.surfaceforcings.isd18opd=1;
11%md.surfaceforcings.precipitation(1:md.mesh.numberofvertices,1:12)=0;
12%md.surfaceforcings.monthlytemperatures(1:md.mesh.numberofvertices,1:12)=273;
[18002]13
[19243]14% Add temperature, precipitation and delta18o needed to measure the surface mass balance
15% creating delta18o
16load '../Data/delta18o.data'
17md.surfaceforcings.delta18o=delta18o;
[18002]18
[19243]19% creating Present day temperatures
20% Same temperature over the all region:
21tmonth(1:12)=238.15+20.;
22for imonth=0:11
23 md.surfaceforcings.temperatures_presentday(1:md.mesh.numberofvertices,imonth+1)=tmonth(imonth+1);
24 % Time for the last line:
25 md.surfaceforcings.temperatures_presentday(md.mesh.numberofvertices+1,imonth+1)=((imonth+1)/12);
26end
27
28% creating initialization and spc temperatures initialization and
29% spc
30md.thermal.spctemperature=mean(md.surfaceforcings.temperatures_presentday(1:md.mesh.numberofvertices,1:12),2)-10; %-10*ones(md.mesh.numberofvertices,1);
31
32md.initialization.temperature=md.thermal.spctemperature; %md.surfaceforcings.temperatures_presentday(1:md.mesh.numberofvertices,1);
33
34% creating precipitation
35for imonth=0:11
36 md.surfaceforcings.precipitations_presentday(1:md.mesh.numberofvertices,imonth+1)=-0.4*10^(-6)*md.mesh.y+0.5;
37 % Time for the last line:
38 md.surfaceforcings.precipitations_presentday(md.mesh.numberofvertices+1,imonth+1)=((imonth+1)/12);
39end
40
41% time steps and resolution
42md.timestepping.time_step=20;
43md.settings.output_frequency=1;
44md.timestepping.final_time=60;
45
46%
47md.transient.requested_outputs={'default','SurfaceforcingsMonthlytemperatures'};
48md=setflowequation(md,'SSA','all');
49md.cluster=generic('name',oshostname(),'np',1); % 3 for the cluster
[18002]50md=solve(md,TransientSolutionEnum());
51
52%Fields and tolerances to track changes
[19243]53field_names ={'Vx1','Vy1','Vel1','Pressure1','Bed1','Surface1','Thickness1','SurfaceforcingsMonthlytemperatures1','SurfaceforcingsMassBalance1',...
54 'Vx2','Vy2','Vel2','Pressure2','Bed2','Surface2','Thickness2','SurfaceforcingsMonthlytemperatures2','SurfaceforcingsMassBalance2',...
55 'Vx3','Vy3','Vel3','Pressure3','Bed3','Surface3','Thickness3','SurfaceforcingsMonthlytemperatures3','SurfaceforcingsMassBalance3'};
56field_tolerances={1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,...
57 1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,...
58 1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13,1e-13};
[18002]59field_values={...
60 (md.results.TransientSolution(1).Vx),...
61 (md.results.TransientSolution(1).Vy),...
62 (md.results.TransientSolution(1).Vel),...
63 (md.results.TransientSolution(1).Pressure),...
64 (md.results.TransientSolution(1).Base),...
65 (md.results.TransientSolution(1).Surface),...
66 (md.results.TransientSolution(1).Thickness),...
[19243]67 (md.results.TransientSolution(1).SurfaceforcingsMonthlytemperatures),...
[18002]68 (md.results.TransientSolution(1).SurfaceforcingsMassBalance),...
69 (md.results.TransientSolution(2).Vx),...
70 (md.results.TransientSolution(2).Vy),...
71 (md.results.TransientSolution(2).Vel),...
72 (md.results.TransientSolution(2).Pressure),...
73 (md.results.TransientSolution(2).Base),...
74 (md.results.TransientSolution(2).Surface),...
75 (md.results.TransientSolution(2).Thickness),...
[19243]76 (md.results.TransientSolution(2).SurfaceforcingsMonthlytemperatures),...
[18002]77 (md.results.TransientSolution(2).SurfaceforcingsMassBalance),...
78 (md.results.TransientSolution(3).Vx),...
79 (md.results.TransientSolution(3).Vy),...
80 (md.results.TransientSolution(3).Vel),...
81 (md.results.TransientSolution(3).Pressure),...
82 (md.results.TransientSolution(3).Base),...
83 (md.results.TransientSolution(3).Surface),...
84 (md.results.TransientSolution(3).Thickness),...
[19243]85 (md.results.TransientSolution(3).SurfaceforcingsMonthlytemperatures),...
[18002]86 (md.results.TransientSolution(3).SurfaceforcingsMassBalance),...
87 };
Note: See TracBrowser for help on using the repository browser.