Changeset 21877


Ignore:
Timestamp:
07/26/17 15:39:33 (8 years ago)
Author:
Mathieu Morlighem
Message:

CHG: no more geometrical metric

Location:
issm/trunk-jpl/test/NightlyRun
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/test/NightlyRun/test119.m

    r19049 r21877  
    22
    33%Simple mesh
    4 md=bamg(model(),'domain','../Exp/Square.exp','hmax',100000.,'rand',false);
     4md=bamg(model(),'domain','../Exp/Square.exp','hmax',100000.);
    55x1=md.mesh.x;
    66y1=md.mesh.y;
    77
    88%hVertices
    9 md=bamg(model(),'domain','../Exp/Square.exp','hmax',300000.,'hVertices',[10000. 100000. 400000. 100000.]','rand',false);
     9md=bamg(model(),'domain','../Exp/Square.exp','hmax',300000.,'hVertices',[10000. 100000. 400000. 100000.]');
    1010x2=md.mesh.x;
    1111y2=md.mesh.y;
     
    1313%big mesh
    1414t0=clock;
    15 md=bamg(model(),'domain','../Exp/Square.exp','hmax',3000.,'rand',false);
     15md=bamg(model(),'domain','../Exp/Square.exp','hmax',3000.);
    1616nbelements=md.mesh.numberofelements;
    1717if nbelements>267895-50 & nbelements<267895+50
  • issm/trunk-jpl/test/NightlyRun/test119.py

    r21408 r21877  
    88
    99#Simple mesh
    10 md=bamg(model(),'domain','../Exp/Square.exp','hmax',100000.,'rand',False)
     10md=bamg(model(),'domain','../Exp/Square.exp','hmax',100000.)
    1111x1=md.mesh.x
    1212y1=md.mesh.y
    1313
    1414#hVertices
    15 md=bamg(model(),'domain','../Exp/Square.exp','hmax',300000.,'hVertices',np.array([10000.,100000.,400000.,100000.]).reshape(-1,1),'rand',False)
     15md=bamg(model(),'domain','../Exp/Square.exp','hmax',300000.,'hVertices',np.array([10000.,100000.,400000.,100000.]).reshape(-1,1))
    1616x2=md.mesh.x
    1717y2=md.mesh.y
     
    1919#big mesh
    2020t0=time.time()
    21 md=bamg(model(),'domain','../Exp/Square.exp','hmax',3000.,'rand',False)
     21md=bamg(model(),'domain','../Exp/Square.exp','hmax',3000.)
    2222nbelements=md.mesh.numberofelements
    2323elapsedtime=time.time()-t0
  • issm/trunk-jpl/test/NightlyRun/test514.m

    r19049 r21877  
    33hVertices=10000.*ones(27,1);
    44hVertices(1:5)=1000.;
    5 md=bamg(model(),'domain','../Exp/Pig.exp','hmax',20000.,'hVertices',hVertices,'gradation',3.,'geometricalmetric',1);
     5md=bamg(model(),'domain','../Exp/Pig.exp','hmax',20000.,'hVertices',hVertices,'gradation',3.);
    66x1=md.mesh.x;
    77y1=md.mesh.y;
     
    1818metric=ComputeMetric(hessian,2./9.,1.,1000.,25.*10.^3,[]);
    1919md.miscellaneous.dummy=metric;
    20 md2=bamg(md,'metric',md.miscellaneous.dummy,'hmin',1000.,'hmax',20000.,'gradation',3.,'geometricalmetric',1);
     20md2=bamg(md,'metric',md.miscellaneous.dummy,'hmin',1000.,'hmax',20000.,'gradation',3.);
    2121x3=md2.mesh.x;
    2222y3=md2.mesh.y;
    2323
    2424%refine existing mesh 2
    25 md2=bamg(md,'metric',md.miscellaneous.dummy,'hmin',1000.,'hmax',20000.,'gradation',3.,'geometricalmetric',1,'anisomax',1.);
     25md2=bamg(md,'metric',md.miscellaneous.dummy,'hmin',1000.,'hmax',20000.,'gradation',3.,'anisomax',1.);
    2626x4=md2.mesh.x;
    2727y4=md2.mesh.y;
     
    3030hVertices=NaN*ones(md.mesh.numberofvertices,1);
    3131hVertices(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);
     32md2=bamg(md,'metric',md.miscellaneous.dummy,'hmin',1000.,'hmax',20000.,'gradation',3.,'anisomax',1.,'hVertices',hVertices);
    3333x5=md2.mesh.x;
    3434y5=md2.mesh.y;
    3535
    3636%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.);
     37md2=bamg(md,'field',md.inversion.vy_obs,'hmin',1000.,'hmax',20000.,'gradation',3.,'Hessiantype',0,'err',1.);
    3838x6=md2.mesh.x;
    3939y6=md2.mesh.y;
    4040
    4141%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.]);
     42md2=bamg(md,'field',[md.inversion.vy_obs md.geometry.thickness],'hmin',1000.,'hmax',20000.,'gradation',3.,'Hessiantype',1,'err',[10. 100.]);
    4343x7=md2.mesh.x;
    4444y7=md2.mesh.y;
  • issm/trunk-jpl/test/NightlyRun/test514.py

    r21411 r21877  
    1414hVertices=10000.*np.ones((27))
    1515hVertices[0:5]=1000.
    16 md=bamg(model(),'domain','../Exp/Pig.exp','hmax',20000.,'hVertices',hVertices,'gradation',3.,'geometricalmetric',1)
     16md=bamg(model(),'domain','../Exp/Pig.exp','hmax',20000.,'hVertices',hVertices,'gradation',3.)
    1717x1=md.mesh.x
    1818y1=md.mesh.y
     
    2929metric=ComputeMetric(hessian,2./9.,1.,1000.,25.*10.**3,[])
    3030md.miscellaneous.dummy=metric
    31 md2=bamg(copy.deepcopy(md),'metric',md.miscellaneous.dummy,'hmin',1000.,'hmax',20000.,'gradation',3.,'geometricalmetric',1)
     31md2=bamg(copy.deepcopy(md),'metric',md.miscellaneous.dummy,'hmin',1000.,'hmax',20000.,'gradation',3.)
    3232x3=md2.mesh.x
    3333y3=md2.mesh.y
    3434
    3535#refine existing mesh 2
    36 md2=bamg(copy.deepcopy(md),'metric',md.miscellaneous.dummy,'hmin',1000.,'hmax',20000.,'gradation',3.,'geometricalmetric',1,'anisomax',1.)
     36md2=bamg(copy.deepcopy(md),'metric',md.miscellaneous.dummy,'hmin',1000.,'hmax',20000.,'gradation',3.,'anisomax',1.)
    3737x4=md2.mesh.x
    3838y4=md2.mesh.y
     
    4141hVertices=np.nan*np.ones((md.mesh.numberofvertices))
    4242hVertices[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)
     43md2=bamg(copy.deepcopy(md),'metric',md.miscellaneous.dummy,'hmin',1000.,'hmax',20000.,'gradation',3.,'anisomax',1.,'hVertices',hVertices)
    4444x5=md2.mesh.x
    4545y5=md2.mesh.y
    4646
    4747#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.]]))
     48md2=bamg(copy.deepcopy(md),'field',md.inversion.vy_obs,'hmin',1000.,'hmax',20000.,'gradation',3.,'Hessiantype',0,'err',np.array([[1.]]))
    4949x6=md2.mesh.x
    5050y6=md2.mesh.y
    5151
    5252#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.]]))
     53md2=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.]]))
    5454x7=md2.mesh.x
    5555y7=md2.mesh.y
Note: See TracChangeset for help on using the changeset viewer.