From 0b7411e89bf70c53b52310acf1b45f34adb0be9a Mon Sep 17 00:00:00 2001 From: Baptiste Mouginot Date: Mon, 11 Nov 2024 17:00:03 +0100 Subject: [PATCH] add comments --- tests/unit_tests/dagmc/test_model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit_tests/dagmc/test_model.py b/tests/unit_tests/dagmc/test_model.py index d5de850ae87..48c2f2cfdfb 100644 --- a/tests/unit_tests/dagmc/test_model.py +++ b/tests/unit_tests/dagmc/test_model.py @@ -129,7 +129,7 @@ def test_model_differentiate_with_DAGMC(): mat_vol = openmc.VolumeCalculation(mat_list, 1000000, ll, ur) cell_vol = openmc.VolumeCalculation(list(root.cells.values()), 1000000, ll, ur) model.settings.volume_calculations = [mat_vol, cell_vol] - model.init_lib() + model.init_lib()i # need to reinitialize the lib after differentiating the materials model.calculate_volumes(cwd=p) volume_after = np.sum([m.volume for m in model.materials if "fuel" in m.name]) assert np.isclose(volume_before, volume_after)