mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
Fix allocation check
This commit is contained in:
parent
fe6f24307a
commit
0796fb87a4
2 changed files with 2 additions and 2 deletions
|
|
@ -195,7 +195,7 @@ contains
|
|||
call close_group(meshes_group)
|
||||
|
||||
! Write information for derivatives.
|
||||
if (size(tally_derivs) > 0) then
|
||||
if (allocated(tally_derivs) .and. size(tally_derivs) > 0) then
|
||||
derivs_group = create_group(tallies_group, "derivatives")
|
||||
do i = 1, size(tally_derivs)
|
||||
associate(deriv => tally_derivs(i))
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ class TestHarness(object):
|
|||
self.parser = OptionParser()
|
||||
self.parser.add_option('--exe', dest='exe', default='openmc')
|
||||
self.parser.add_option('--mpi_exec', dest='mpi_exec', default=None)
|
||||
self.parser.add_option('--mpi_np', dest='mpi_np', type=int, default=1)
|
||||
self.parser.add_option('--mpi_np', dest='mpi_np', type=int, default=3)
|
||||
self.parser.add_option('--update', dest='update', action='store_true',
|
||||
default=False)
|
||||
self._opts = None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue