Changeset 13494
- Timestamp:
- 10/01/12 10:13:02 (12 years ago)
- Location:
- issm/trunk-jpl/test/NightlyRun
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/test/NightlyRun/test514.m
r12805 r13494 1 1 %Simple mesh 1 2 hVertices=10000 *ones(27,1);3 hVertices(1:5)=1000 ;4 md=bamg(model,'domain','../Exp/Pig.exp','hmax',20000 ,'hVertices',hVertices,'gradation',3,'geometricalmetric',1);2 hVertices=10000.*ones(27,1); 3 hVertices(1:5)=1000.; 4 md=bamg(model,'domain','../Exp/Pig.exp','hmax',20000.,'hVertices',hVertices,'gradation',3.,'geometricalmetric',1); 5 5 x1=md.mesh.x; 6 6 y1=md.mesh.y; 7 7 8 8 %Simple mesh 2 9 md=bamg(model,'domain','../Exp/Pig.exp','hmax',10000 );9 md=bamg(model,'domain','../Exp/Pig.exp','hmax',10000.); 10 10 md=setmask(md,'../Exp/PigShelves.exp','../Exp/PigIslands.exp'); 11 11 md=parameterize(md,'../Par/Pig.par'); … … 15 15 %refine existing mesh 1 16 16 hessian=ComputeHessian(md.mesh.elements,md.mesh.x,md.mesh.y,md.inversion.vy_obs,'node'); 17 metric=ComputeMetric(hessian,2 /9,1,1000,25*10^3,[]);17 metric=ComputeMetric(hessian,2./9.,1.,1000.,25.*10.^3,[]); 18 18 md.miscellaneous.dummy=metric; 19 md2=bamg(md,'metric',md.miscellaneous.dummy,'hmin',1000 ,'hmax',20000,'gradation',3,'geometricalmetric',1);19 md2=bamg(md,'metric',md.miscellaneous.dummy,'hmin',1000.,'hmax',20000.,'gradation',3.,'geometricalmetric',1); 20 20 x3=md2.mesh.x; 21 21 y3=md2.mesh.y; 22 22 23 23 %refine existing mesh 2 24 md2=bamg(md,'metric',md.miscellaneous.dummy,'hmin',1000 ,'hmax',20000,'gradation',3,'geometricalmetric',1,'anisomax',1);24 md2=bamg(md,'metric',md.miscellaneous.dummy,'hmin',1000.,'hmax',20000.,'gradation',3.,'geometricalmetric',1,'anisomax',1.); 25 25 x4=md2.mesh.x; 26 26 y4=md2.mesh.y; … … 29 29 hVertices=NaN*ones(md.mesh.numberofvertices,1); 30 30 hVertices(find(md.mesh.vertexonboundary))=500; 31 md2=bamg(md,'metric',md.miscellaneous.dummy,'hmin',1000 ,'hmax',20000,'gradation',3,'geometricalmetric',1,'anisomax',1,'hVertices',hVertices);31 md2=bamg(md,'metric',md.miscellaneous.dummy,'hmin',1000.,'hmax',20000.,'gradation',3.,'geometricalmetric',1,'anisomax',1.,'hVertices',hVertices); 32 32 x5=md2.mesh.x; 33 33 y5=md2.mesh.y; 34 34 35 35 %refine existing mesh 4 36 md2=bamg(md,'field',md.inversion.vy_obs,'hmin',1000 ,'hmax',20000,'gradation',3,'geometricalmetric',1,'Hessiantype',0,'err',1);36 md2=bamg(md,'field',md.inversion.vy_obs,'hmin',1000.,'hmax',20000.,'gradation',3.,'geometricalmetric',1,'Hessiantype',0,'err',1.); 37 37 x6=md2.mesh.x; 38 38 y6=md2.mesh.y; 39 39 40 40 %refine existing mesh 5 41 md2=bamg(md,'field',[md.inversion.vy_obs md.geometry.thickness],'hmin',1000 ,'hmax',20000,'gradation',3,'geometricalmetric',1,'Hessiantype',1,'err',[10 100]);41 md2=bamg(md,'field',[md.inversion.vy_obs md.geometry.thickness],'hmin',1000.,'hmax',20000.,'gradation',3.,'geometricalmetric',1,'Hessiantype',1,'err',[10. 100.]); 42 42 x7=md2.mesh.x; 43 43 y7=md2.mesh.y;
Note:
See TracChangeset
for help on using the changeset viewer.