Changeset 1332
- Timestamp:
- 07/16/09 10:24:48 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/utils/Mesh/MeshYams.m
r1331 r1332 1 function md=MeshYams 1 function md=MeshYams(md,velpath,domainoutline); 2 2 %MESHYAMS - Build model of Antarctica by refining according to observed velocity error estimator 3 3 % … … 13 13 gradation=3*ones(nsteps,1); 14 14 epsilon=10^-0; 15 domainoutline='DomainOutline.exp';15 scale=1; 16 16 %} 17 17 … … 24 24 gradation=[1.5*ones(2,1);3*ones(nsteps-2,1)]; 25 25 epsilon=3*10^-0; %3m/a interpolation error 26 domainoutline='EnvDomainOutline200km.exp';26 scale=1; 27 27 %%} 28 29 velpath='/u/wilkes-r1b/larour/ModelData/RignotAntarcticaVelMosaicRampErsAlos/RignotAntVelSmooth.mat'; scale=1;30 %velpath='/u/wilkes-r1b/larour/ModelData/RignotAntarcticaVel1km/RignotAntVel.mat'; scale=365*24*3600; %(from m/s to m/yr)31 %velpath='/u/wilkes-r1b/larour/ModelData/RignotPigVel1996/RignotPig1996_HoleFree.mat'; scale=1;32 %velpath='/proj/ice/larour/Glaciology/Model_Data/RignotAntarcticaVel1km/RignotAntVel';33 %velpath='/proj/ice/larour/Glaciology/Model_Data/BamberAntarcticaVel1km/velocity';34 %velpath='/proj/ice/larour/Glaciology/Model_Data/mosaicAnt1km_ramp_ers_alos/RignotAntVel';35 36 groundingline='GroundingLine.exp';37 icestreams='Icestream.exp';38 parameterfile='Basins.par';39 40 %clear data41 clear md42 43 %build new model44 md=model;45 28 46 29 %mesh with initial resolution 47 30 md=mesh(md,domainoutline,resolution); 48 disp(['First mesh, number of elements: ' num2str(md.numberofelements)]);49 31 50 32 %load velocities 51 33 load(velpath); 34 35 disp(['First mesh, number of elements: ' num2str(md.numberofelements)]); 52 36 53 37 %start mesh adaptation … … 67 51 68 52 disp(['Final mesh, number of elements: ' num2str(md.numberofelements)]); 69 md.vx_obs=InterpFromGrid(x_m,y_m,vx,md.x,md.y,0);70 md.vy_obs=InterpFromGrid(x_m,y_m,vy,md.x,md.y,0);71 md.vel_obs=sqrt(md.vx_obs.^2+md.vy_obs.^2);72 return;73 74 %parameterize model75 disp('Parameterizing');76 md=geography(md,groundingline,icestreams);77 md=parameterize(md,parameterfile);78 79 %md.vx_obs=DataInterp(x_m,y_m,vx*md.yts,md.x,md.y);80 %md.vy_obs=DataInterp(x_m,y_m,vy*md.yts,md.x,md.y);81 %md.vel_obs=sqrt(md.vx_obs.^2+md.vy_obs.^2);82 %return;
Note:
See TracChangeset
for help on using the changeset viewer.