source: issm/trunk-jpl/test/NightlyRun/test119.py@ 15647

Last change on this file since 15647 was 15647, checked in by Mathieu Morlighem, 12 years ago

CHG: relaxed tolerances

File size: 736 bytes
RevLine 
[13437]1import numpy
2import time
3from model import *
4from bamg import *
5from MatlabFuncs import *
6
7#Simple mesh
8md=bamg(model(),'domain','../Exp/Square.exp','hmax',100000.)
9x1=md.mesh.x
10y1=md.mesh.y
11
12#hVertices
13md=bamg(model(),'domain','../Exp/Square.exp','hmax',300000.,'hVertices',numpy.array([10000.,100000.,400000.,100000.]).reshape(-1,1))
14x2=md.mesh.x
15y2=md.mesh.y
16
17#big mesh
18t0=time.time()
19md=bamg(model(),'domain','../Exp/Square.exp','hmax',3000.)
20nbelements=md.mesh.numberofelements
21elapsedtime=time.time()-t0
22
23#Fields and tolerances to track changes
24field_names =['x1','y1','x2','y2','nbelements','elapsed time']
[15647]25field_tolerances=[1e-13,1e-13,1e-13,1e-13,1e-13,1.0]
[13437]26field_values=[\
27 x1, y1,\
28 x2, y2,\
29 nbelements,elapsedtime,\
30 ]
Note: See TracBrowser for help on using the repository browser.