mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 05:35:49 -04:00
Set argc in one place as suggested by @paulromano.
This commit is contained in:
parent
ca56044904
commit
40a64f785f
1 changed files with 1 additions and 2 deletions
|
|
@ -185,11 +185,10 @@ def init(args=None, intracomm=None):
|
|||
"""
|
||||
if args is not None:
|
||||
args = ['openmc'] + list(args)
|
||||
argc = len(args)
|
||||
else:
|
||||
args = ['openmc']
|
||||
argc = 1
|
||||
|
||||
argc = len(args)
|
||||
# Create the argv array. Note that it is actually expected to be of
|
||||
# length argc + 1 with the final item being a null pointer.
|
||||
argv = (POINTER(c_char) * (argc + 1))()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue