Skip to content

Commit

Permalink
Update runner.py
Browse files Browse the repository at this point in the history
  • Loading branch information
loganbvh committed Sep 23, 2023
1 parent a9085e4 commit 0d45f3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tdgl/solver/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from tqdm import TqdmWarning, tqdm

from ..finite_volume.mesh import Mesh
from .options import SolverOptions, SparseSolver
from .options import SolverOptions


def _get(item):
Expand Down Expand Up @@ -233,7 +233,7 @@ def __init__(
self.running_names_and_sizes = (
running_names_and_sizes if running_names_and_sizes is not None else {}
)
if options.sparse_solver is SparseSolver.CUPY:
if options.gpu:
import cupy # type: ignore

array_module = cupy
Expand Down

0 comments on commit 0d45f3f

Please sign in to comment.