precice / openfoam-adapter

OpenFOAM-preCICE adapter
https://precice.org/adapter-openfoam-overview.html
GNU General Public License v3.0
135 stars 80 forks source link

Support OpenFOAM 3.x #8

Closed MakisH closed 4 years ago

MakisH commented 6 years ago

While openfoam.org versions 4.x have no changes that affect the adapter in comparison to versions 5.x, there are some differences in older versions.

Versions 3.x are different from 4.x in at least the following points:

Robust data handling: new convention for const and non-const reference func- tions of fields where the non-const function uses ...Ref(); for example, where boundaryField() provides the const reference to the boundary field, boundaryFieldRef() provides a non-const reference. for tmp objects, non- const access uses a ref() function rather than the () dereferencing operator.

See also the OpenFOAM-dev commit a4e2afa and this issue.

The adapter could support different versions using different branches.

List of tasks:

More tasks may be needed.

For older versions, see #9.

MakisH commented 4 years ago

We have decided to not fix this, and it gets less and less relevant over time. If anyone needs to work on this for their own system, the required steps can still be found above.