Generating code piece by piece from the Python wrapper is not easy to deal with the first time you see it done. I think I should write a cleaner version of the wrapper. I'm doing this in branch feature/new-wrapper. In the interest of cleaner code to discuss/diagnose/optimise during the scaling workshop (issue #10 (closed)), I may need to do this sooner rather than later.
- write an abstract class "direct_numerical_simulation", which will contain all the code that's currently written as strings in "_code.py".
- write children of "direct_numerical_simulation" that will contain the code written as strings in "_fluid_solver.py" and "NSVorticityEquation.py".
- write minimal child of "_code.py", which will generate a small main file, initial conditions and hdf5 stats datasets, and then compile and launch.