Skip to content

Commit 5b42e05

Browse files
authored
Merge pull request #538 from LLNL/scrpyopt
python: default valid to True in complete calls
2 parents ff86091 + e6fd249 commit 5b42e05

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

python/scr.py.in

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ def start_restart():
357357
raise RuntimeError("SCR_Start_restart failed")
358358
return _pystr(ptr)
359359

360-
def complete_restart(valid):
360+
def complete_restart(valid=True):
361361
"""Close a restart phase after reading checkpoint files.
362362

363363
Each calling process must indicate whether it restarted successfully.
@@ -366,9 +366,9 @@ def complete_restart(valid):
366366

367367
Parameters
368368
----------
369-
valid : bool
369+
valid : bool, optional
370370
pass True if calling process read restart successfully,
371-
False otherwise
371+
False otherwise (default True)
372372

373373
Returns
374374
-------
@@ -448,7 +448,7 @@ def start_output(name, flags):
448448
if rc != _libscr.SCR_SUCCESS:
449449
raise RuntimeError("SCR_Start_output failed")
450450

451-
def complete_output(valid):
451+
def complete_output(valid=True):
452452
"""Close an output phase.
453453

454454
Each calling process must indicate whether it wrote its portion
@@ -458,9 +458,9 @@ def complete_output(valid):
458458

459459
Parameters
460460
----------
461-
valid : bool
461+
valid : bool, optional
462462
pass True if calling process wrote its output successfully,
463-
False otherwise
463+
False otherwise (default True)
464464

465465
Returns
466466
-------

0 commit comments

Comments
 (0)