-
Notifications
You must be signed in to change notification settings - Fork 6
How should I go about implementing the existing Python functions using Devito?
Rini Banerjee edited this page Jul 29, 2020
·
3 revisions
We recommend you do the following when implementing the existing Python functions in fdm-devito-notebooks
using Devito.
- Copy the Python code into a new Jupyter notebook code cell/set of cells.
- Change the Python code to use Devito. Talk to us on Slack about any issues you are facing - we are happy to help!
- Make sure the notebook code is still compiling.
- (If applicable) Run the tests and keep working on your code until it is correct. Make sure this code is then copied back into the Jupyter notebook once the tests are all passing.
- Read through the section you have just Devito-fied. Do the steps you have taken make sense to the reader? If not, add some Markdown cells in between, explaining what you have done.
- Delete the original Python code from the notebook.