diff --git a/README.md b/README.md index 5375a81..25e1b20 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