Skip to content

Commit

Permalink
mypy fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasdiener committed Aug 28, 2024
1 parent 16a3a6a commit 0b491e9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mirgecom/array_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,8 @@ def log_disk_cache_config(actx: ArrayContext) -> None:
assert isinstance(actx, (PyOpenCLArrayContext, PytatoPyOpenCLArrayContext))

if actx_class_is_distributed(type(actx)):
from grudge.array_context import MPIBasedArrayContext
assert isinstance(actx, MPIBasedArrayContext)
rank = actx.mpi_communicator.Get_rank()
else:
rank = 0
Expand Down

0 comments on commit 0b491e9

Please sign in to comment.