pyamrex icon indicating copy to clipboard operation
pyamrex copied to clipboard

Expose `AmrCore` Again

Open ax3l opened this issue 8 months ago • 0 comments

In order to let users implement their whole simulation in pyAMReX (e.g. this user question), we could expose AmrCore again.

Here is the logic to implement purely virtual and python-overwritable methods:

  • https://pybind11.readthedocs.io/en/stable/advanced/classes.html#overriding-virtual-functions-in-python
  • https://pybind11.readthedocs.io/en/stable/advanced/classes.html#virtual-and-inheritance

ax3l avatar Mar 05 '25 00:03 ax3l