17 lines
545 B
Python
17 lines
545 B
Python
"""GPU LBM library. CPU utilities do not initialize or import CUDA eagerly."""
|
|
from importlib import import_module
|
|
|
|
__version__ = "0.5.1"
|
|
__all__ = ["Simulation", "lbm", "body", "common", "cuda", "config", "__version__"]
|
|
|
|
|
|
def __getattr__(name):
|
|
if name == "Simulation":
|
|
value = import_module(".simulation", __name__).Simulation
|
|
elif name in ("lbm", "body", "common", "cuda", "config"):
|
|
value = import_module("." + name, __name__)
|
|
else:
|
|
raise AttributeError(name)
|
|
globals()[name] = value
|
|
return value
|