source: issm/trunk/test/Verification/test4_icesheet_noicefront_3d/updatearchive.m@ 16

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

Added new tests form ice1

  • Property svn:executable set to *
File size: 1.1 KB
Line 
1% This file can be run to update the velocity archives of the test4.
2% This test deals with an icesheet without icefront for a 3d model. The geometry
3% is square. Just run this file in Matlab, with a properly setup Ice code.
4
5% The archive files will be saved in this directory but will not commited to ice1.
6% Just commit the result if you want to.
7
8md=model;
9md=mesh(md,'DomainOutline.exp',100000);
10md=geography(md,'','');
11md=parameterize(md,'Square.par');
12md=extrude(md,10,3);
13md=setelementstype(md,'pattyn','all');
14
15%Compute solution with Ice model
16md=solve(md,'diagnostic','ice');
17archive_pattyn=md.vel;
18
19%Save the solution in the directory
20save archive_pattyn archive_pattyn
21
22%Compute temperature with Ice model
23md=solve(md,'thermalsteady','ice');
24archive_temperature=md.temperature;
25archive_melting=md.melting;
26
27%Save the solution in the directory
28save archive_temperature archive_temperature
29save archive_melting archive_melting
30
31%Compute solution with Ice model
32md=setelementstype(md,'hutter','all');
33md=solve(md,'diagnostic','ice');
34archive_hutter=md.vel;
35
36%Save the solution in the directory
37save archive_hutter archive_hutter
38
Note: See TracBrowser for help on using the repository browser.