removed MG tests, and reinstated CMFD tests

This commit is contained in:
John Tramm 2019-12-16 20:19:39 +00:00
parent a9dedd48ae
commit 05df1ea803
19 changed files with 34 additions and 6 deletions

View file

@ -2,9 +2,6 @@ from tests.testing_harness import CMFDTestHarness
from openmc import cmfd
import numpy as np
import pytest
@pytest.mark.skipif(True, reason='Not Planned for GPU Support')
def test_cmfd_feed_2g():
"""Test 2 group CMFD solver results with CMFD feedback"""
# Initialize and set CMFD mesh

View file

@ -2,8 +2,6 @@ from tests.testing_harness import CMFDTestHarness
from openmc import cmfd
import numpy as np
import pytest
@pytest.mark.skipif(True, reason='Not Planned for GPU Support')
def test_cmfd_feed_ng():
"""Test n group CMFD solver with CMFD feedback"""
# Initialize and set CMFD mesh

View file

@ -82,6 +82,8 @@ class MGXSTestHarness(PyAPITestHarness):
os.remove(f)
import pytest
@pytest.mark.skip(reason="MG not planned for GPU support.")
def test_mg_basic():
create_library()
mat_names = ['base leg', 'base tab', 'base hist', 'base matrix',

View file

@ -7,7 +7,6 @@ from openmc.examples import slab_mg
from tests.testing_harness import PyAPITestHarness
def create_library():
# Instantiate the energy group data and file object
groups = openmc.mgxs.EnergyGroups(group_edges=[0.0, 0.625, 20.0e6])
@ -120,6 +119,8 @@ class MGXSTestHarness(PyAPITestHarness):
os.remove(f)
import pytest
@pytest.mark.skip(reason="MG not planned for GPU support.")
def test_mg_basic_delayed():
create_library()
model = slab_mg(num_regions=6, mat_names=['vec beta', 'vec no beta',

View file

@ -193,6 +193,8 @@ class MGXSTestHarness(PyAPITestHarness):
self._cleanup()
import pytest
@pytest.mark.skip(reason="MG not planned for GPU support.")
def test_mg_convert():
harness = MGXSTestHarness('statepoint.10.h5')
harness.main()

View file

@ -46,6 +46,8 @@ class MGXSTestHarness(PyAPITestHarness):
os.remove(f)
import pytest
@pytest.mark.skip(reason="MG not planned for GPU support.")
def test_mg_legendre():
create_library()
model = slab_mg()

View file

@ -46,6 +46,8 @@ class MGXSTestHarness(PyAPITestHarness):
os.remove(f)
import pytest
@pytest.mark.skip(reason="MG not planned for GPU support.")
def test_mg_max_order():
create_library()
model = slab_mg()

View file

@ -46,6 +46,8 @@ class MGXSTestHarness(PyAPITestHarness):
os.remove(f)
import pytest
@pytest.mark.skip(reason="MG not planned for GPU support.")
def test_mg_survival_biasing():
create_library()
model = slab_mg()

View file

@ -57,6 +57,8 @@ class MGXSTestHarness(PyAPITestHarness):
os.remove(f)
import pytest
@pytest.mark.skip(reason="MG not planned for GPU support.")
def test_mg_tallies():
create_library()
model = slab_mg()

View file

@ -77,6 +77,8 @@ class MGXSTestHarness(PyAPITestHarness):
os.remove(f)
import pytest
@pytest.mark.skip(reason="MG not planned for GPU support.")
def test_mgxs_library_ce_to_mg():
# Set the input set to use the pincell model
model = pwr_pin_cell()

View file

@ -77,6 +77,8 @@ class MGXSTestHarness(PyAPITestHarness):
os.remove(f)
import pytest
@pytest.mark.skip(reason="MG not planned for GPU support.")
def test_mgxs_library_ce_to_mg():
# Set the input set to use the pincell model
model = pwr_pin_cell()

View file

@ -60,6 +60,8 @@ class MGXSTestHarness(PyAPITestHarness):
return outstr
import pytest
@pytest.mark.skip(reason="MG not planned for GPU support.")
def test_mgxs_library_condense():
# Use the pincell model
model = pwr_pin_cell()

View file

@ -57,6 +57,8 @@ class MGXSTestHarness(PyAPITestHarness):
return outstr
import pytest
@pytest.mark.skip(reason="MG not planned for GPU support.")
def test_mgxs_library_correction():
model = pwr_pin_cell()
harness = MGXSTestHarness('statepoint.10.h5', model)

View file

@ -64,6 +64,8 @@ class MGXSTestHarness(PyAPITestHarness):
return outstr
import pytest
@pytest.mark.skip(reason="MG not planned for GPU support.")
def test_mgxs_library_distribcell():
model = pwr_assembly()
harness = MGXSTestHarness('statepoint.10.h5', model)

View file

@ -73,6 +73,8 @@ class MGXSTestHarness(PyAPITestHarness):
os.remove(f)
import pytest
@pytest.mark.skip(reason="MG not planned for GPU support.")
def test_mgxs_library_hdf5():
try:
np.set_printoptions(formatter={'float_kind': '{:.8e}'.format})

View file

@ -58,6 +58,8 @@ class MGXSTestHarness(PyAPITestHarness):
return outstr
import pytest
@pytest.mark.skip(reason="MG not planned for GPU support.")
def test_mgxs_library_histogram():
model = pwr_pin_cell()
harness = MGXSTestHarness('statepoint.10.h5', model)

View file

@ -90,6 +90,8 @@ class MGXSTestHarness(PyAPITestHarness):
return outstr
import pytest
@pytest.mark.skip(reason="MG not planned for GPU support.")
def test_mgxs_library_mesh(model):
harness = MGXSTestHarness('statepoint.5.h5', model)
harness.main()

View file

@ -57,6 +57,8 @@ class MGXSTestHarness(PyAPITestHarness):
return outstr
import pytest
@pytest.mark.skip(reason="MG not planned for GPU support.")
def test_mgxs_library_no_nuclides():
model = pwr_pin_cell()
harness = MGXSTestHarness('statepoint.10.h5', model)

View file

@ -53,6 +53,8 @@ class MGXSTestHarness(PyAPITestHarness):
return outstr
import pytest
@pytest.mark.skip(reason="MG not planned for GPU support.")
def test_mgxs_library_nuclides():
model = pwr_pin_cell()
harness = MGXSTestHarness('statepoint.10.h5', model)