mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 13:45:36 -04:00
removed MG tests, and reinstated CMFD tests
This commit is contained in:
parent
a9dedd48ae
commit
05df1ea803
19 changed files with 34 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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})
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue