source: issm/oecreview/Archive/25834-26739/ISSM-26638-26639.diff@ 26740

Last change on this file since 26740 was 26740, checked in by Mathieu Morlighem, 3 years ago

CHG: added 25834-26739

File size: 1.7 KB
RevLine 
[26740]1Index: ../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
16Index: ../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', '')
Note: See TracBrowser for help on using the repository browser.