From 4fea37a318459c2f2924d95e66571d7093494590 Mon Sep 17 00:00:00 2001 From: Julian Auriac Date: Tue, 19 Nov 2024 10:58:43 +0100 Subject: [PATCH 1/2] Add environment setup script including Python plugins --- README.md | 7 +++++++ fullClonePython.sh | 17 +++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100755 fullClonePython.sh diff --git a/README.md b/README.md index 5375a81..43f662b 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,13 @@ Additional [examples are available for the other plugins](https://gitlab.maisond To run this hands-on tutorial, you first need to \ref Installation "install PDI" and setup your environment. +Alternatively, you can use the script "fullClonePython.sh" to clone both pdi and pdi/tutorial repositories and setup an environment enabling a default setup with added python plugins. +To clone in your current directory, use this script with : +```bash +chmod u+x fullClonePython.sh +./fullClonePython.sh +``` + ### PDI installation \ref Installation "PDI installation" is documented in a diff --git a/fullClonePython.sh b/fullClonePython.sh new file mode 100755 index 0000000..aa7f554 --- /dev/null +++ b/fullClonePython.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +git clone git@github.com:pdidev/pdi.git +cd pdi +git clone git@github.com:pdidev/tutorial.git -b new_2024 +mkdir build +cd build +cmake .. +mkdir ../../local +cmake -DBUILD_PYCALL_PLUGIN=ON -DBUILD_PYTHON=ON -DUSE_HDF5="EMBEDDED" -DUSE_NetCDF="EMBEDDED" .. +make -j8 +source ./staging/share/pdi/env.sh +cd ../tutorial +cmake . +cp ./solutions/ex10.yml ./ex10.yml +make ex10 +mpirun -np 4 ./ex10 \ No newline at end of file From a0dfe64a0c2732e162de1c9f6b326741f79656e8 Mon Sep 17 00:00:00 2001 From: Julian Auriac Date: Tue, 19 Nov 2024 11:01:50 +0100 Subject: [PATCH 2/2] Fix minor typographical error --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 43f662b..25e1b20 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ To run this hands-on tutorial, you first need to \ref Installation "install PDI" and setup your environment. Alternatively, you can use the script "fullClonePython.sh" to clone both pdi and pdi/tutorial repositories and setup an environment enabling a default setup with added python plugins. -To clone in your current directory, use this script with : +To clone in your current directory, use this script with: ```bash chmod u+x fullClonePython.sh ./fullClonePython.sh