Skip to content

Commit bf213d2

Browse files
committed
Changed domain size to unit cube in test_projections_parallel.py
1 parent 2e3d43c commit bf213d2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

psydac/feec/tests/test_projections_parallel.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def run_projection_comparison(domain, ncells, degree, periodic, funcs, reduce):
112112
assert np.allclose(p._data[slicep], s._data[slices][subslice], 1e-12, 1e-12)
113113

114114
#==============================================================================
115-
@pytest.mark.parametrize('domain', [(0, 1)])
115+
@pytest.mark.parametrize('domain', [(0., 1.)])
116116
@pytest.mark.parametrize('ncells', [20, 37])
117117
@pytest.mark.parametrize('degree', [3])
118118
@pytest.mark.parametrize('periodic', [True, False])
@@ -122,7 +122,7 @@ def run_projection_comparison(domain, ncells, degree, periodic, funcs, reduce):
122122
def test_projection_parallel_1d(domain, ncells, degree, periodic, funcs, reduce):
123123
run_projection_comparison([domain], [ncells], [degree], [periodic], [funcs], reduce)
124124

125-
@pytest.mark.parametrize('domain', [([-2, 3], [6, 8])])
125+
@pytest.mark.parametrize('domain', [([0., 1.], [0., 1.])])
126126
@pytest.mark.parametrize('ncells', [(27, 40)])
127127
@pytest.mark.parametrize('degree', [(4, 5)])
128128
@pytest.mark.parametrize('periodic', [(True, False), (False, True)])
@@ -133,7 +133,7 @@ def test_projection_parallel_1d(domain, ncells, degree, periodic, funcs, reduce)
133133
def test_projection_parallel_2d(domain, ncells, degree, periodic, funcs, reduce):
134134
run_projection_comparison(domain, ncells, degree, periodic, funcs, reduce)
135135

136-
@pytest.mark.parametrize('domain', [([-2, 3], [6, 8], [-0.5, 0.5])])
136+
@pytest.mark.parametrize('domain', [([0., 1.], [0., 1.], [0., 1.])])
137137
@pytest.mark.parametrize('ncells', [(14, 14, 20)])
138138
@pytest.mark.parametrize('degree', [(2, 2, 3)])
139139
@pytest.mark.parametrize('periodic', [( True, False, False),

0 commit comments

Comments
 (0)