Changeset 21877
- Timestamp:
- 07/26/17 15:39:33 (8 years ago)
- Location:
- issm/trunk-jpl/test/NightlyRun
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/test/NightlyRun/test119.m
r19049 r21877 2 2 3 3 %Simple mesh 4 md=bamg(model(),'domain','../Exp/Square.exp','hmax',100000. ,'rand',false);4 md=bamg(model(),'domain','../Exp/Square.exp','hmax',100000.); 5 5 x1=md.mesh.x; 6 6 y1=md.mesh.y; 7 7 8 8 %hVertices 9 md=bamg(model(),'domain','../Exp/Square.exp','hmax',300000.,'hVertices',[10000. 100000. 400000. 100000.]' ,'rand',false);9 md=bamg(model(),'domain','../Exp/Square.exp','hmax',300000.,'hVertices',[10000. 100000. 400000. 100000.]'); 10 10 x2=md.mesh.x; 11 11 y2=md.mesh.y; … … 13 13 %big mesh 14 14 t0=clock; 15 md=bamg(model(),'domain','../Exp/Square.exp','hmax',3000. ,'rand',false);15 md=bamg(model(),'domain','../Exp/Square.exp','hmax',3000.); 16 16 nbelements=md.mesh.numberofelements; 17 17 if nbelements>267895-50 & nbelements<267895+50 -
issm/trunk-jpl/test/NightlyRun/test119.py
r21408 r21877 8 8 9 9 #Simple mesh 10 md=bamg(model(),'domain','../Exp/Square.exp','hmax',100000. ,'rand',False)10 md=bamg(model(),'domain','../Exp/Square.exp','hmax',100000.) 11 11 x1=md.mesh.x 12 12 y1=md.mesh.y 13 13 14 14 #hVertices 15 md=bamg(model(),'domain','../Exp/Square.exp','hmax',300000.,'hVertices',np.array([10000.,100000.,400000.,100000.]).reshape(-1,1) ,'rand',False)15 md=bamg(model(),'domain','../Exp/Square.exp','hmax',300000.,'hVertices',np.array([10000.,100000.,400000.,100000.]).reshape(-1,1)) 16 16 x2=md.mesh.x 17 17 y2=md.mesh.y … … 19 19 #big mesh 20 20 t0=time.time() 21 md=bamg(model(),'domain','../Exp/Square.exp','hmax',3000. ,'rand',False)21 md=bamg(model(),'domain','../Exp/Square.exp','hmax',3000.) 22 22 nbelements=md.mesh.numberofelements 23 23 elapsedtime=time.time()-t0 -
issm/trunk-jpl/test/NightlyRun/test514.m
r19049 r21877 3 3 hVertices=10000.*ones(27,1); 4 4 hVertices(1:5)=1000.; 5 md=bamg(model(),'domain','../Exp/Pig.exp','hmax',20000.,'hVertices',hVertices,'gradation',3. ,'geometricalmetric',1);5 md=bamg(model(),'domain','../Exp/Pig.exp','hmax',20000.,'hVertices',hVertices,'gradation',3.); 6 6 x1=md.mesh.x; 7 7 y1=md.mesh.y; … … 18 18 metric=ComputeMetric(hessian,2./9.,1.,1000.,25.*10.^3,[]); 19 19 md.miscellaneous.dummy=metric; 20 md2=bamg(md,'metric',md.miscellaneous.dummy,'hmin',1000.,'hmax',20000.,'gradation',3. ,'geometricalmetric',1);20 md2=bamg(md,'metric',md.miscellaneous.dummy,'hmin',1000.,'hmax',20000.,'gradation',3.); 21 21 x3=md2.mesh.x; 22 22 y3=md2.mesh.y; 23 23 24 24 %refine existing mesh 2 25 md2=bamg(md,'metric',md.miscellaneous.dummy,'hmin',1000.,'hmax',20000.,'gradation',3.,' geometricalmetric',1,'anisomax',1.);25 md2=bamg(md,'metric',md.miscellaneous.dummy,'hmin',1000.,'hmax',20000.,'gradation',3.,'anisomax',1.); 26 26 x4=md2.mesh.x; 27 27 y4=md2.mesh.y; … … 30 30 hVertices=NaN*ones(md.mesh.numberofvertices,1); 31 31 hVertices(find(md.mesh.vertexonboundary))=500; 32 md2=bamg(md,'metric',md.miscellaneous.dummy,'hmin',1000.,'hmax',20000.,'gradation',3.,' geometricalmetric',1,'anisomax',1.,'hVertices',hVertices);32 md2=bamg(md,'metric',md.miscellaneous.dummy,'hmin',1000.,'hmax',20000.,'gradation',3.,'anisomax',1.,'hVertices',hVertices); 33 33 x5=md2.mesh.x; 34 34 y5=md2.mesh.y; 35 35 36 36 %refine existing mesh 4 37 md2=bamg(md,'field',md.inversion.vy_obs,'hmin',1000.,'hmax',20000.,'gradation',3.,' geometricalmetric',1,'Hessiantype',0,'err',1.);37 md2=bamg(md,'field',md.inversion.vy_obs,'hmin',1000.,'hmax',20000.,'gradation',3.,'Hessiantype',0,'err',1.); 38 38 x6=md2.mesh.x; 39 39 y6=md2.mesh.y; 40 40 41 41 %refine existing mesh 5 42 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 md2=bamg(md,'field',[md.inversion.vy_obs md.geometry.thickness],'hmin',1000.,'hmax',20000.,'gradation',3.,'Hessiantype',1,'err',[10. 100.]); 43 43 x7=md2.mesh.x; 44 44 y7=md2.mesh.y; -
issm/trunk-jpl/test/NightlyRun/test514.py
r21411 r21877 14 14 hVertices=10000.*np.ones((27)) 15 15 hVertices[0:5]=1000. 16 md=bamg(model(),'domain','../Exp/Pig.exp','hmax',20000.,'hVertices',hVertices,'gradation',3. ,'geometricalmetric',1)16 md=bamg(model(),'domain','../Exp/Pig.exp','hmax',20000.,'hVertices',hVertices,'gradation',3.) 17 17 x1=md.mesh.x 18 18 y1=md.mesh.y … … 29 29 metric=ComputeMetric(hessian,2./9.,1.,1000.,25.*10.**3,[]) 30 30 md.miscellaneous.dummy=metric 31 md2=bamg(copy.deepcopy(md),'metric',md.miscellaneous.dummy,'hmin',1000.,'hmax',20000.,'gradation',3. ,'geometricalmetric',1)31 md2=bamg(copy.deepcopy(md),'metric',md.miscellaneous.dummy,'hmin',1000.,'hmax',20000.,'gradation',3.) 32 32 x3=md2.mesh.x 33 33 y3=md2.mesh.y 34 34 35 35 #refine existing mesh 2 36 md2=bamg(copy.deepcopy(md),'metric',md.miscellaneous.dummy,'hmin',1000.,'hmax',20000.,'gradation',3.,' geometricalmetric',1,'anisomax',1.)36 md2=bamg(copy.deepcopy(md),'metric',md.miscellaneous.dummy,'hmin',1000.,'hmax',20000.,'gradation',3.,'anisomax',1.) 37 37 x4=md2.mesh.x 38 38 y4=md2.mesh.y … … 41 41 hVertices=np.nan*np.ones((md.mesh.numberofvertices)) 42 42 hVertices[np.nonzero(md.mesh.vertexonboundary)]=500. 43 md2=bamg(copy.deepcopy(md),'metric',md.miscellaneous.dummy,'hmin',1000.,'hmax',20000.,'gradation',3.,' geometricalmetric',1,'anisomax',1.,'hVertices',hVertices)43 md2=bamg(copy.deepcopy(md),'metric',md.miscellaneous.dummy,'hmin',1000.,'hmax',20000.,'gradation',3.,'anisomax',1.,'hVertices',hVertices) 44 44 x5=md2.mesh.x 45 45 y5=md2.mesh.y 46 46 47 47 #refine existing mesh 4 48 md2=bamg(copy.deepcopy(md),'field',md.inversion.vy_obs,'hmin',1000.,'hmax',20000.,'gradation',3.,' geometricalmetric',1,'Hessiantype',0,'err',np.array([[1.]]))48 md2=bamg(copy.deepcopy(md),'field',md.inversion.vy_obs,'hmin',1000.,'hmax',20000.,'gradation',3.,'Hessiantype',0,'err',np.array([[1.]])) 49 49 x6=md2.mesh.x 50 50 y6=md2.mesh.y 51 51 52 52 #refine existing mesh 5 53 md2=bamg(copy.deepcopy(md),'field',np.hstack((md.inversion.vy_obs,md.geometry.thickness)),'hmin',1000.,'hmax',20000.,'gradation',3.,' geometricalmetric',1,'Hessiantype',1,'err',np.array([[10.,100.]]))53 md2=bamg(copy.deepcopy(md),'field',np.hstack((md.inversion.vy_obs,md.geometry.thickness)),'hmin',1000.,'hmax',20000.,'gradation',3.,'Hessiantype',1,'err',np.array([[10.,100.]])) 54 54 x7=md2.mesh.x 55 55 y7=md2.mesh.y
Note:
See TracChangeset
for help on using the changeset viewer.