diff --git a/tests/regression_tests/dagmc/external/inputs_true.dat b/tests/regression_tests/dagmc/external/inputs_true.dat
index 2f56410466..dd75bbdbd9 100644
--- a/tests/regression_tests/dagmc/external/inputs_true.dat
+++ b/tests/regression_tests/dagmc/external/inputs_true.dat
@@ -26,6 +26,7 @@
-4 -4 -4 4 4 4
+ 293
diff --git a/tests/regression_tests/dagmc/external/main.cpp b/tests/regression_tests/dagmc/external/main.cpp
index 87b1fcc8c3..6d9c97f59b 100644
--- a/tests/regression_tests/dagmc/external/main.cpp
+++ b/tests/regression_tests/dagmc/external/main.cpp
@@ -4,6 +4,7 @@
#include "openmc/error.h"
#include "openmc/geometry.h"
#include "openmc/geometry_aux.h"
+#include "openmc/material.h"
#include "openmc/nuclide.h"
#include
@@ -66,6 +67,14 @@ int main(int argc, char* argv[])
// Finalize cross sections having assigned temperatures
openmc::finalize_cross_sections();
+ // Check that we correctly assigned cell temperatures with non-void fill
+ for (auto& cell_ptr : openmc::model::cells) {
+ if (cell_ptr->material_.front() != openmc::C_NONE &&
+ cell_ptr->temperature() != 300) {
+ fatal_error("Failed to set cell temperature");
+ }
+ }
+
// Run OpenMC
openmc_err = openmc_run();
if (openmc_err)
diff --git a/tests/regression_tests/dagmc/external/test.py b/tests/regression_tests/dagmc/external/test.py
index c31d814408..a9fa9e3eed 100644
--- a/tests/regression_tests/dagmc/external/test.py
+++ b/tests/regression_tests/dagmc/external/test.py
@@ -64,7 +64,7 @@ def cpp_driver(request):
shutil.rmtree('build')
os.remove('CMakeLists.txt')
-@pytest.fixture
+@pytest.fixture
def model():
model = openmc.model.Model()
@@ -76,7 +76,7 @@ def model():
[ 4, 4, 4])
source = openmc.Source(space=source_box)
model.settings.source = source
- #model.settings.dagmc = True
+ model.settings.temperature['default'] = 293
# Geometry
dag_univ = openmc.DAGMCUniverse("dagmc.h5m")
@@ -103,7 +103,7 @@ def model():
model.materials = mats
return model
-
+
class ExternalDAGMCTest(PyAPITestHarness):
def __init__(self, executable, statepoint_name, model):
super().__init__(statepoint_name, model)