|
137 | 137 | "For this tutorial, we have prepared and tested environement for each machine (dgx, h200 and pocamd). You just need to source the right environement from `idefix-tutorial/environement/xxx.sh` in your terminal window. e.g. on dgx:\n", |
138 | 138 | "\n", |
139 | 139 | "```shell\n", |
140 | | - "source <path_to_idefix_tutorial>/environements/dgx.sh\n", |
| 140 | + "source $IDEFIX_TUTORIAL_DIR/environements/dgx.env\n", |
141 | 141 | "```\n", |
142 | 142 | "\n", |
143 | 143 | "Don't forget to source this environement each time you open a new terminal on the target machine.\n", |
|
213 | 213 | "For this first simple setup, we move in the SimpleSetup/problem1 directory of the tutorial. i.e\n", |
214 | 214 | "\n", |
215 | 215 | "```shell\n", |
216 | | - "cd <path_to_idefix_tutorial>/SimpleSetup/problem1/\n", |
| 216 | + "cd $IDEFIX_TUTORIAL_DIR/SimpleSetup/problem1/\n", |
217 | 217 | "```\n", |
218 | 218 | "\n", |
219 | 219 | "## What is an idefix setup?\n", |
|
278 | 278 | "import os\n", |
279 | 279 | "import sys\n", |
280 | 280 | "# Possibly adapt the idefix path depending on where you cloned the sources\n", |
281 | | - "sys.path.append(\"../idefix.src\")\n", |
| 281 | + "sys.path.append(\"idefix.src\")\n", |
282 | 282 | "from pytools.vtk_io import readVTK\n", |
283 | 283 | "import matplotlib.pyplot as plt\n", |
284 | 284 | "import numpy as np" |
|
402 | 402 | "We first move to the problem directory\n", |
403 | 403 | "\n", |
404 | 404 | "```shell\n", |
405 | | - "cd <path_to_idefix_tutorial>/PythonSetup/problem/\n", |
| 405 | + "cd $IDEFIX_TUTORIAL_DIR/PythonSetup/problem/\n", |
406 | 406 | "```\n", |
407 | 407 | "\n", |
408 | 408 | "## Your tasks\n", |
|
465 | 465 | "For now, lets move to the problem directory\n", |
466 | 466 | "\n", |
467 | 467 | "```shell\n", |
468 | | - "cd idefix-tutorial/AdvancedSetup/problem1\n", |
| 468 | + "cd $IDEFIX_TUTORIAL_DIR/AdvancedSetup/problem1\n", |
469 | 469 | "```" |
470 | 470 | ] |
471 | 471 | }, |
|
657 | 657 | "The first problem is a simple 1D shock tube problem. This can be compiled and run on your laptop or on a cluster.\n", |
658 | 658 | "\n", |
659 | 659 | "```shell\n", |
660 | | - "cd idefix-tutorial/Debugging/problem1\n", |
| 660 | + "cd $IDEFIX_TUTORIAL_DIR/Debugging/problem1\n", |
661 | 661 | "```\n", |
662 | 662 | "\n", |
663 | 663 | "We then configure, compile and run the code\n", |
|
740 | 740 | "The second problem is a pure thermal diffusion problem where the gas is kept fixed with 0 velocity. This can be compiled and run *on your laptop*.\n", |
741 | 741 | "\n", |
742 | 742 | "```shell\n", |
743 | | - "cd idefix-tutorial/Debugging/problem2\n", |
| 743 | + "cd $IDEFIX_TUTORIAL_DIR/Debugging/problem2\n", |
744 | 744 | "```\n", |
745 | 745 | "\n", |
746 | 746 | "We then configure, compile and run the code\n", |
|
861 | 861 | "Let's move to problem 4, which is again a planet-disk interraction problem. This can be compiled and run *on your laptop* or on the on a cluster, but let's focus for now on the GPU version on the a cluster (you can try to do the exercise on your laptop). First go to the right directory\n", |
862 | 862 | "\n", |
863 | 863 | "```shell\n", |
864 | | - "cd idefix-tutorial/Debugging/problem4\n", |
| 864 | + "cd $IDEFIX_TUTORIAL_DIR/Debugging/problem4\n", |
865 | 865 | "```\n", |
866 | 866 | "\n", |
867 | 867 | "We then configure\n", |
|
909 | 909 | { |
910 | 910 | "cell_type": "code", |
911 | 911 | "execution_count": null, |
912 | | - "id": "68fea61b-5fa3-4cfe-85a6-c170b43aeaec", |
| 912 | + "id": "0e28f9fb-0dc0-4e35-9eca-8ae4254c4529", |
913 | 913 | "metadata": {}, |
914 | 914 | "outputs": [], |
915 | 915 | "source": [] |
|
0 commit comments