anisotropy/anisotropy.sh
L-Nafaryus 4c18dc1b33 Working version
New: openfoam as package
Mod: logging
Fix: checking environment
New: virtual environment for python
2021-05-31 17:12:31 +05:00

19 lines
398 B
Bash
Executable File

#!/usr/bin/env bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
if [ "$1" = "clean" ]; then
git clean -fdx
exit 0
elif [ "$1" = "init" ]; then
python -m venv env
source env/bin/activate
python -m pip install --upgrade pip
python -m pip install requirements.txt
elif [ "$1" = "run" ]; then
source ${OPENFOAM}
python ${DIR}/anisotropy/anisotropy.py
fi