puncproject / PUNCpp

Particles-in-UNstructured-Cells, C++ version
https://punc.readthedocs.io
GNU General Public License v3.0
12 stars 6 forks source link

"Integration test" or similar #11

Closed sigvaldm closed 6 years ago

sigvaldm commented 6 years ago

We should have some test case to run to check that we didn't break anything subtle after an update. Ideally we should have a full test suite, but for starters it would help a lot to just have an accurate test simulation whose accuracy should not degrade.

sigvaldm commented 6 years ago

Very crude test implemented. It's nothing impressive, but it may be useful to run after changing crucial parts of the program. It runs a simulation for ~6 min that is expected to have an accuracy of 2%. If we break something very crucial this error is likely to go up. To run it:

cd test
./test.sh