Skip to content

Commit

Permalink
Hardcode number of elements in unstructured mesh for now
Browse files Browse the repository at this point in the history
  • Loading branch information
pshriwise committed Apr 8, 2024
1 parent 0d599a4 commit e3c3e5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit_tests/test_source_mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,9 +330,9 @@ def test_umesh_source_independent(run_in_tmpdir, request, void_model, library):

mesh_filename = Path(request.fspath).parent / "test_mesh_tets.e"
uscd_mesh = openmc.UnstructuredMesh(mesh_filename, library)
uscd_mesh.add_lbrary_data()
ind_source = openmc.IndependentSource()
model.settings.source = openmc.MeshSource(uscd_mesh, uscd_mesh.n_elements*[ind_source])
n_elements = 12_000
model.settings.source = openmc.MeshSource(uscd_mesh, n_elements*[ind_source])
model.export_to_model_xml()
print(open('model.xml', 'r').read())
try:
Expand Down

0 comments on commit e3c3e5a

Please sign in to comment.