FE Codebase for shape optimization in fluid problems
Initial setup is via:
- Fork repositiory to your account via the Github website
- Clone repository with https:
git clone https://github.com/USERNAME/tonic.git
Clone repository with ssh:
git clone [email protected]:USERNAME/tonic.git
- Install with pip:
cd tonic
pip install --user -e .
- Set upstream remote with https:
git remote add upstream https://github.com/gingroup/tonic.git
Set upstream remote with ssh:
git remote add upstream [email protected]:GinGroup/tonic.git
When you want to write some code:
- Checkout master:
git checkout master
- Pull any changes from upstream:
git pull upstream master
- Checkout a new branch
git checkout -b myFeature
- ???
- Profit!
Make sure you've got sphinx installed. In the doc directory simply do:
make html
This builds an html version of the documentation that will be in doc/build
Tox doesn't seem to work very well with anaconda. Under the assumption we want to stick with using anaconda to install FEniCS, a bash script has been written to automate the testing. In order to run the test suite do:
./provision/travis/run-tests.sh
This will:
- Run pytest
- Attempt to build the documentation
- Run
black --check
against the module code
The Travis build will fail if any of the above fail.