Hi,
I need to store the value of the coupled data because I need it for further calculation in boundary condition implementation in the PIMPLE loop. So, I was planning that when precice adapter reads this data, I add it as a scalar in IOLIst and add it to the mesh objectregistry. For example,
IOList<scalar> waveg
(
IOobject("waveg",
mesh_.time().timeName(),
mesh_, IOObject::NO_READ, IOobject::NO_WRITE), 1);
waveg[0] = g;
However, when I go out of the scope of this function, I do not see this IOList added to the mesh objectregistry. How can I add this list there?