Skip to content

Commit

Permalink
Fix SU2 paths
Browse files Browse the repository at this point in the history
  • Loading branch information
MakisH committed Apr 19, 2024
1 parent e12ca13 commit 7cdf04a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions provisioning/install-su2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ wget --quiet https://github.com/su2code/SU2/archive/refs/tags/v7.5.1.tar.gz
tar -xzf v7.5.1.tar.gz
rm -fv v7.5.1.tar.gz

# Add SU2 to PATH and apply.
# Add SU2 and the SU2 adapter to PATH and apply.
# We first export to a separate script, so that we can load it here (non-interactive shell).
{
echo "export SU2_HOME=\"\${HOME}/SU2-7.5.1\""
echo "export SU2_RUN=\"\${SU2_HOME}/SU2_CFD/bin\""
echo "export PATH=\"\${SU2_RUN}:\${PATH}\""
echo "export PYTHONPATH=\"\${SU2_RUN}:\${PYTHONPATH}\""
echo "export SU2_RUN=\"\${SU2_HOME}/SU2_CFD\""
echo "export PATH=\"\${SU2_RUN}/bin/:\${HOME}/su2-adapter/run/:\${PATH}\""
echo "export PYTHONPATH=\"\${SU2_RUN}/bin/:\${PYTHONPATH}\""
} >> ~/.su2-bashrc

echo ". \${HOME}/.su2-bashrc" >> ~/.bashrc
Expand Down

0 comments on commit 7cdf04a

Please sign in to comment.