mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 05:05:30 -04:00
Using pytest request path to specify dagmc file
This commit is contained in:
parent
ed24b2343a
commit
d96c367331
1 changed files with 2 additions and 1 deletions
|
|
@ -30,7 +30,8 @@ def dagmc_model(request):
|
|||
model.settings.source = source
|
||||
|
||||
# geometry
|
||||
dagmc_universe = openmc.DAGMCUniverse('dagmc.h5m')
|
||||
dagmc_file = Path(request.fspath).parent / 'dagmc.h5m'
|
||||
dagmc_universe = openmc.DAGMCUniverse(dagmc_file)
|
||||
model.geometry = openmc.Geometry(dagmc_universe)
|
||||
|
||||
# check number of surfaces and volumes for this pincell model there should
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue