devitocodes / pyrevolve

Python library to manage checkpointing for adjoints
Eclipse Public License 1.0
15 stars 6 forks source link

Better driver needed #2

Closed jhueckelheim closed 7 years ago

jhueckelheim commented 7 years ago

The current driver function is taken from the example code in the Revolve reference implementation. It does not do anything useful, and simply prints the actions that Revolve is requesting. It would be nice to have a driver that accepts <objects/function pointers/callbacks/something nice and pythonic> to actually do a useful computation, so that the user only needs to provide the worker functions and pyrevolve does all the rest. This is very simple in principle, but not yet sure how to do this nicely so that potential users can embed pyrevolve into their codes with minimum effort. To be discussed.

jhueckelheim commented 7 years ago

The interface for pyrevolve has been completely overhauled as discussed in https://github.com/opesci/devito/issues/216. Closing this issue.