mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Apply suggestions from @paulromano
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
This commit is contained in:
parent
65852f4fbc
commit
b8c7c76444
2 changed files with 3 additions and 5 deletions
|
|
@ -405,7 +405,7 @@ void load_state_point()
|
|||
|
||||
if (simulation::restart_batch >= settings::n_max_batches) {
|
||||
fatal_error(fmt::format(
|
||||
"The number of batches specified for simiulation ({}) is smaller"
|
||||
"The number of batches specified for simulation ({}) is smaller"
|
||||
" than the number of batches in the restart statepoint file ({})",
|
||||
settings::n_max_batches, simulation::restart_batch));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,13 +3,12 @@ import os
|
|||
from pathlib import Path
|
||||
|
||||
import openmc
|
||||
import pytest
|
||||
|
||||
from tests.testing_harness import TestHarness
|
||||
from tests.regression_tests import config
|
||||
from tests import cdtemp
|
||||
|
||||
import pytest
|
||||
|
||||
class StatepointRestartTestHarness(TestHarness):
|
||||
def __init__(self, final_sp, restart_sp):
|
||||
super().__init__(final_sp)
|
||||
|
|
@ -65,8 +64,7 @@ def test_statepoint_restart():
|
|||
|
||||
|
||||
def test_batch_check(request):
|
||||
xmls = glob.glob('*.xml')
|
||||
xmls = [request.fspath.dirpath() / Path(f) for f in xmls]
|
||||
xmls = list(request.path.parent.glob('*.xml'))
|
||||
|
||||
with cdtemp(xmls):
|
||||
model = openmc.Model.from_xml()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue