precice / fenics-adapter

preCICE-adapter for the open source computing platform FEniCS
GNU Lesser General Public License v3.0
29 stars 15 forks source link

Support checkpointing of multiple fields #169

Closed BenjaminRodenberg closed 6 months ago

BenjaminRodenberg commented 7 months ago

Currently, the adapter only supports checkpointing for a single field. It would be useful to be able to checkpoint an arbitrary number of fields like suggested in https://github.com/precice/tutorials/issues/50.

This feature was also requested in our forum. See https://precice.discourse.group/t/fenics-precice-implicit-coupling-with-multiple-fields-in-checkpoint/1806.

Note: We need to implement this in a backwards compatible and non-breaking fashion. Meaning, if we follow the approach suggested in https://github.com/precice/tutorials/issues/50 the checkpointing functions need to be able to accept u_n and (u_n) (no tuple vs. tuple).