Changeset 1332


Ignore:
Timestamp:
07/16/09 10:24:48 (16 years ago)
Author:
Eric.Larour
Message:

Simplified interace

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/utils/Mesh/MeshYams.m

    r1331 r1332  
    1 function md=MeshYams
     1function md=MeshYams(md,velpath,domainoutline);
    22%MESHYAMS - Build model of Antarctica by refining according to observed velocity error estimator
    33%
     
    1313gradation=3*ones(nsteps,1);
    1414epsilon=10^-0;
    15 domainoutline='DomainOutline.exp';
     15scale=1;
    1616%}
    1717
     
    2424gradation=[1.5*ones(2,1);3*ones(nsteps-2,1)];
    2525epsilon=3*10^-0; %3m/a interpolation error
    26 domainoutline='EnvDomainOutline200km.exp';
     26scale=1;
    2727%%}
    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 data
    41 clear md
    42 
    43 %build new model
    44 md=model;
    4528
    4629%mesh with initial resolution
    4730md=mesh(md,domainoutline,resolution);
    48 disp(['First mesh, number of elements: ' num2str(md.numberofelements)]);
    4931
    5032%load velocities
    5133load(velpath);
     34
     35disp(['First mesh, number of elements: ' num2str(md.numberofelements)]);
    5236
    5337%start mesh adaptation
     
    6751       
    6852disp(['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 model
    75 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.