See the [migration guide](https://github.com/precice/precice/wiki/Porting-adapters-from-preCICE-1.x-to-2.x)