Skip to content

Setup script for pdi, including Python plugins #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: new_2024
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
17 changes: 17 additions & 0 deletions fullClonePython.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash

git clone [email protected]:pdidev/pdi.git
cd pdi
git clone [email protected]: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