From 90510e6ee53d18d4394bf91ec6dd4baabe3442e5 Mon Sep 17 00:00:00 2001 From: Christian Witzler <c.witzler@fz-juelich.de> Date: Wed, 30 Sep 2020 12:28:38 +0000 Subject: [PATCH] Changes to catalyst example for reduce memory usage --- CatalystEnabledSimulation/fedriver.py | 2 +- notebooks/catalyst.ipynb | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CatalystEnabledSimulation/fedriver.py b/CatalystEnabledSimulation/fedriver.py index 929628c..78deb07 100644 --- a/CatalystEnabledSimulation/fedriver.py +++ b/CatalystEnabledSimulation/fedriver.py @@ -25,7 +25,7 @@ rank = comm.Get_rank() import fedatastructures -grid = fedatastructures.GridClass([10, 12, 10], [2, 2, 2]) +grid = fedatastructures.GridClass([5, 6, 5], [4, 4, 4]) attributes = fedatastructures.AttributesClass(grid) doCoprocessing = True diff --git a/notebooks/catalyst.ipynb b/notebooks/catalyst.ipynb index bc30296..f5f0966 100644 --- a/notebooks/catalyst.ipynb +++ b/notebooks/catalyst.ipynb @@ -49,6 +49,7 @@ "source": [ "%%bash --bg --proc server_process\n", "export OMP_NUM_THREADS=1\n", + "pkill -f pvserver", "pvserver --server-port=11223 > ${JUPYTER_LOG_DIR}/pvserver.log 2>&1" ] }, @@ -67,6 +68,7 @@ "source": [ "%%bash --bg --proc catalyst_process\n", "export OMP_NUM_THREADS=1\n", + "pkill -f pvpython", "cd CatalystEnabledSimulation\n", "pvpython ./fedriver.py ./cpscript.py > ${JUPYTER_LOG_DIR}/simulation.log 2>&1" ] -- GitLab