Skip to content

Commit e3c3e5a

Browse files
committed
Hardcode number of elements in unstructured mesh for now
1 parent 0d599a4 commit e3c3e5a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/unit_tests/test_source_mesh.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -330,9 +330,9 @@ def test_umesh_source_independent(run_in_tmpdir, request, void_model, library):
330330

331331
mesh_filename = Path(request.fspath).parent / "test_mesh_tets.e"
332332
uscd_mesh = openmc.UnstructuredMesh(mesh_filename, library)
333-
uscd_mesh.add_lbrary_data()
334333
ind_source = openmc.IndependentSource()
335-
model.settings.source = openmc.MeshSource(uscd_mesh, uscd_mesh.n_elements*[ind_source])
334+
n_elements = 12_000
335+
model.settings.source = openmc.MeshSource(uscd_mesh, n_elements*[ind_source])
336336
model.export_to_model_xml()
337337
print(open('model.xml', 'r').read())
338338
try:

0 commit comments

Comments
 (0)