Skip to content

Commit

Permalink
more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasdiener committed Jun 28, 2023
1 parent 2859f45 commit 291f166
Show file tree
Hide file tree
Showing 17 changed files with 39 additions and 23 deletions.
4 changes: 2 additions & 2 deletions examples/autoignition-mpi.py
Original file line number Diff line number Diff line change
Expand Up @@ -689,8 +689,8 @@ def my_rhs(t, state):
rst_filename = args.restart_file

main(actx_class, use_logmgr=args.log, use_leap=args.leap,
use_overintegration=args.overintegration, use_profiling=args.profiling,
lazy=lazy, casename=casename, rst_filename=rst_filename,
use_overintegration=args.overintegration,
casename=casename, rst_filename=rst_filename,
log_dependent=log_dependent, viscous_terms_on=args.navierstokes)

# vim: foldmethod=marker
5 changes: 3 additions & 2 deletions examples/combozzle-mpi.py
Original file line number Diff line number Diff line change
Expand Up @@ -1275,7 +1275,8 @@ def dummy_rhs(t, state):
raise ValueError("Can't use lazy and profiling together.")

from mirgecom.array_context import get_reasonable_array_context_class
actx_class = get_reasonable_array_context_class(lazy=lazy, distributed=True)
actx_class = get_reasonable_array_context_class(
lazy=lazy, distributed=True, profiling=args.profiling)

logging.basicConfig(format="%(message)s", level=logging.INFO)
if args.casename:
Expand All @@ -1293,7 +1294,7 @@ def dummy_rhs(t, state):

print(f"Calling main: {time.ctime(time.time())}")

main(use_logmgr=args.log, use_leap=args.leap, input_file=input_file,
main(use_logmgr=args.log, input_file=input_file,
use_overintegration=args.overintegration,
casename=casename, rst_filename=rst_filename, actx_class=actx_class,
log_dependent=log_dependent, force_eval=force_eval)
Expand Down
3 changes: 2 additions & 1 deletion examples/doublemach-mpi.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,8 @@ def my_rhs(t, state):
raise ValueError("Can't use lazy and profiling together.")

from mirgecom.array_context import get_reasonable_array_context_class
actx_class = get_reasonable_array_context_class(lazy=lazy, distributed=True)
actx_class = get_reasonable_array_context_class(lazy=lazy, distributed=True,
profiling=args.profiling)

logging.basicConfig(format="%(message)s", level=logging.INFO)
if args.casename:
Expand Down
7 changes: 4 additions & 3 deletions examples/doublemach_physical_av-mpi.py
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,8 @@ def _my_rhs_phys_visc_div_av(t, state):

from mirgecom.array_context import get_reasonable_array_context_class
actx_class = get_reasonable_array_context_class(lazy=lazy,
distributed=True)
distributed=True,
profiling=args.profiling)

logging.basicConfig(format="%(message)s", level=logging.INFO)
if args.casename:
Expand All @@ -731,8 +732,8 @@ def _my_rhs_phys_visc_div_av(t, state):
if args.restart_file:
rst_filename = args.restart_file

main(use_logmgr=args.log, use_leap=args.leap, use_profiling=args.profiling,
use_overintegration=args.overintegration, lazy=lazy,
main(use_logmgr=args.log, use_leap=args.leap,
use_overintegration=args.overintegration,
casename=casename, rst_filename=rst_filename, actx_class=actx_class)

# vim: foldmethod=marker
3 changes: 2 additions & 1 deletion examples/heat-source-mpi.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,8 @@ def rhs(t, u):
raise ValueError("Can't use lazy and profiling together.")

from mirgecom.array_context import get_reasonable_array_context_class
actx_class = get_reasonable_array_context_class(lazy=lazy, distributed=True)
actx_class = get_reasonable_array_context_class(
lazy=lazy, distributed=True, profiling=args.profiling)

logging.basicConfig(format="%(message)s", level=logging.INFO)
if args.casename:
Expand Down
3 changes: 2 additions & 1 deletion examples/hotplate-mpi.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,8 @@ def my_rhs(t, state):
raise ValueError("Can't use lazy and profiling together.")

from mirgecom.array_context import get_reasonable_array_context_class
actx_class = get_reasonable_array_context_class(lazy=lazy, distributed=True)
actx_class = get_reasonable_array_context_class(
lazy=lazy, distributed=True, profiling=args.profiling)

logging.basicConfig(format="%(message)s", level=logging.INFO)
if args.casename:
Expand Down
3 changes: 2 additions & 1 deletion examples/lump-mpi.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,8 @@ def my_rhs(t, state):
raise ValueError("Can't use lazy and profiling together.")

from mirgecom.array_context import get_reasonable_array_context_class
actx_class = get_reasonable_array_context_class(lazy=lazy, distributed=True)
actx_class = get_reasonable_array_context_class(
lazy=lazy, distributed=True, profiling=args.profiling)

logging.basicConfig(format="%(message)s", level=logging.INFO)
if args.casename:
Expand Down
3 changes: 2 additions & 1 deletion examples/mixture-mpi.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,8 @@ def my_rhs(t, state):
raise ValueError("Can't use lazy and profiling together.")

from mirgecom.array_context import get_reasonable_array_context_class
actx_class = get_reasonable_array_context_class(lazy=lazy, distributed=True)
actx_class = get_reasonable_array_context_class(
lazy=lazy, distributed=True, profiling=args.profiling)

logging.basicConfig(format="%(message)s", level=logging.INFO)
if args.casename:
Expand Down
3 changes: 2 additions & 1 deletion examples/multiple-volumes-mpi.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,8 @@ def my_rhs(t, state):
raise ValueError("Can't use lazy and profiling together.")

from mirgecom.array_context import get_reasonable_array_context_class
actx_class = get_reasonable_array_context_class(lazy=lazy, distributed=True)
actx_class = get_reasonable_array_context_class(
lazy=lazy, distributed=True, profiling=args.profiling)

logging.basicConfig(format="%(message)s", level=logging.INFO)
if args.casename:
Expand Down
3 changes: 2 additions & 1 deletion examples/nsmix-mpi.py
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,8 @@ def my_rhs(t, state):
raise ValueError("Can't use lazy and profiling together.")

from mirgecom.array_context import get_reasonable_array_context_class
actx_class = get_reasonable_array_context_class(lazy=lazy, distributed=True)
actx_class = get_reasonable_array_context_class(
lazy=lazy, distributed=True, profiling=args.profiling)

logging.basicConfig(format="%(message)s", level=logging.INFO)
if args.casename:
Expand Down
3 changes: 2 additions & 1 deletion examples/poiseuille-local_dt-mpi.py
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,8 @@ def my_rhs(t, state):
raise ValueError("Can't use lazy and profiling together.")

from mirgecom.array_context import get_reasonable_array_context_class
actx_class = get_reasonable_array_context_class(lazy=lazy, distributed=True)
actx_class = get_reasonable_array_context_class(
lazy=lazy, distributed=True, profiling=args.profiling)

logging.basicConfig(format="%(message)s", level=logging.INFO)
if args.casename:
Expand Down
3 changes: 2 additions & 1 deletion examples/poiseuille-mpi.py
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,8 @@ def my_rhs(t, state):
raise ValueError("Can't use lazy and profiling together.")

from mirgecom.array_context import get_reasonable_array_context_class
actx_class = get_reasonable_array_context_class(lazy=lazy, distributed=True)
actx_class = get_reasonable_array_context_class(
lazy=lazy, distributed=True, profiling=args.profiling)

logging.basicConfig(format="%(message)s", level=logging.INFO)
if args.casename:
Expand Down
3 changes: 2 additions & 1 deletion examples/pulse-mpi.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,8 @@ def my_rhs(t, state):
raise ValueError("Can't use lazy and profiling together.")

from mirgecom.array_context import get_reasonable_array_context_class
actx_class = get_reasonable_array_context_class(lazy=lazy, distributed=True)
actx_class = get_reasonable_array_context_class(
lazy=lazy, distributed=True, profiling=args.profiling)

logging.basicConfig(format="%(message)s", level=logging.INFO)
if args.casename:
Expand Down
7 changes: 4 additions & 3 deletions examples/scalar-advdiff-mpi.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,8 @@ def my_rhs(t, state):
raise ValueError("Can't use lazy and profiling together.")

from mirgecom.array_context import get_reasonable_array_context_class
actx_class = get_reasonable_array_context_class(lazy=lazy, distributed=True)
actx_class = get_reasonable_array_context_class(lazy=lazy, distributed=True,
profiling=args.profiling)

logging.basicConfig(format="%(message)s", level=logging.INFO)
if args.casename:
Expand All @@ -421,7 +422,7 @@ def my_rhs(t, state):
if args.restart_file:
rst_filename = args.restart_file

main(actx_class, use_logmgr=args.log, use_leap=args.leap, lazy=lazy,
use_profiling=args.profiling, casename=casename, rst_filename=rst_filename)
main(actx_class, use_logmgr=args.log, use_leap=args.leap,
casename=casename, rst_filename=rst_filename)

# vim: foldmethod=marker
3 changes: 2 additions & 1 deletion examples/sod-mpi.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,8 @@ def my_rhs(t, state):
raise ValueError("Can't use lazy and profiling together.")

from mirgecom.array_context import get_reasonable_array_context_class
actx_class = get_reasonable_array_context_class(lazy=lazy, distributed=True)
actx_class = get_reasonable_array_context_class(
lazy=lazy, distributed=True, profiling=args.profiling)

logging.basicConfig(format="%(message)s", level=logging.INFO)
if args.casename:
Expand Down
3 changes: 2 additions & 1 deletion examples/thermally-coupled-mpi.py
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,8 @@ def my_rhs_and_gradients(t, state):
raise ValueError("Can't use lazy and profiling together.")

from mirgecom.array_context import get_reasonable_array_context_class
actx_class = get_reasonable_array_context_class(lazy=args.lazy, distributed=True)
actx_class = get_reasonable_array_context_class(
lazy=args.lazy, distributed=True, profiling=args.profiling)

logging.basicConfig(format="%(message)s", level=logging.INFO)
if args.casename:
Expand Down
3 changes: 2 additions & 1 deletion examples/vortex-mpi.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,8 @@ def my_rhs(t, state):
raise ValueError("Can't use lazy and profiling together.")

from mirgecom.array_context import get_reasonable_array_context_class
actx_class = get_reasonable_array_context_class(lazy=lazy, distributed=True)
actx_class = get_reasonable_array_context_class(
lazy=lazy, distributed=True, profiling=args.profiling)

logging.basicConfig(format="%(message)s", level=logging.INFO)
if args.casename:
Expand Down

0 comments on commit 291f166

Please sign in to comment.