[26740] | 1 | Index: ../trunk-jpl/test/NightlyRun/test257.py
|
---|
| 2 | ===================================================================
|
---|
| 3 | --- ../trunk-jpl/test/NightlyRun/test257.py (revision 26638)
|
---|
| 4 | +++ ../trunk-jpl/test/NightlyRun/test257.py (revision 26639)
|
---|
| 5 | @@ -23,8 +23,8 @@
|
---|
| 6 | # Generate basin IDs for 3 basins
|
---|
| 7 | idbasin = np.zeros((md.mesh.numberofelements,))
|
---|
| 8 | iid1 = np.where(md.mesh.y >= 2. / 3. * ymax)[0]
|
---|
| 9 | -iid2 = intersect(np.where(md.mesh.y < 2. / 3. * ymax)[0], np.where(md.mesh.x >= 1. / 3. * xmax)[0])
|
---|
| 10 | -iid3 = intersect(np.where(md.mesh.y < 2. / 3. * ymax)[0], np.where(md.mesh.x < 1. / 3. * xmax)[0])
|
---|
| 11 | +iid2 = np.where(np.logical_and(md.mesh.y < 2. / 3. * ymax, md.mesh.x >= 1. / 3. * xmax))[0]
|
---|
| 12 | +iid3 = np.where(np.logical_and(md.mesh.y < 2. / 3. * ymax, md.mesh.x < 1. / 3. * xmax))[0]
|
---|
| 13 | for ii in range(md.mesh.numberofelements):
|
---|
| 14 | for vertex in range(3):
|
---|
| 15 | if md.mesh.elements[ii][vertex] - 1 in iid1: # one vertex in basin 1; NOTE: offset because of 1-based vertex indexing
|
---|
| 16 | Index: ../trunk-jpl/test/NightlyRun/test812.py
|
---|
| 17 | ===================================================================
|
---|
| 18 | --- ../trunk-jpl/test/NightlyRun/test812.py (revision 26638)
|
---|
| 19 | +++ ../trunk-jpl/test/NightlyRun/test812.py (revision 26639)
|
---|
| 20 | @@ -2,11 +2,12 @@
|
---|
| 21 | import numpy as np
|
---|
| 22 | from socket import gethostname
|
---|
| 23 | from model import *
|
---|
| 24 | -from parameterize import *
|
---|
| 25 | -from setflowequation import *
|
---|
| 26 | -from setmask import *
|
---|
| 27 | -from solve import *
|
---|
| 28 | -from triangle import *
|
---|
| 29 | +from parameterize import parameterize
|
---|
| 30 | +from setflowequation import setflowequation
|
---|
| 31 | +from setmask import setmask
|
---|
| 32 | +from solve import solve
|
---|
| 33 | +from triangle import triangle
|
---|
| 34 | +from SetMLHOBC import SetMLHOBC
|
---|
| 35 |
|
---|
| 36 | md = triangle(model(), '../Exp/Square.exp', 50000.)
|
---|
| 37 | md = setmask(md, 'all', '')
|
---|