diff --git a/examples/demag/main_demag.py b/examples/demag/main_demag.py index 5687d75..290acf5 100644 --- a/examples/demag/main_demag.py +++ b/examples/demag/main_demag.py @@ -16,10 +16,12 @@ from metalpy.scab.utils.misc import define_inducing_field from config import get_exec_config +from metalpy.utils.taichi import ti_prepare from metalpy.utils.time import Timer def main(grid_size): + ti_prepare(packed=True) a, c = 10, 40 timer = Timer()