From 94a31eb78a6956500ef0d4edfe9780efeced71a9 Mon Sep 17 00:00:00 2001 From: Alex Kaszynski Date: Wed, 2 Feb 2022 00:05:00 -0700 Subject: [PATCH] fix jupyter resource args (#876) --- ansys/mapdl/core/jupyter.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ansys/mapdl/core/jupyter.py b/ansys/mapdl/core/jupyter.py index 40745318a6..615c86712d 100644 --- a/ansys/mapdl/core/jupyter.py +++ b/ansys/mapdl/core/jupyter.py @@ -36,7 +36,6 @@ def launch_mapdl_on_cluster( verbose=False, start_timeout=600, tag="latest", - **kwargs, ): """Start MAPDL on the ANSYS jupyter cluster in gRPC mode. @@ -123,7 +122,13 @@ def launch_mapdl_on_cluster( additional_switches += f"-m -{memory} -np {nproc}" args = additional_switches.split() - ip, name = manager.spawn_mapdl(version=tag, args=args, verbose=verbose) + ip, name = manager.spawn_mapdl( + version=tag, + args=args, + verbose=verbose, + cpu=1000*nproc, + memory=memory, + ) # connect to the pod instance from ansys.mapdl.core import Mapdl