OpenFOAM/OpenFOAM-8

codedFvPatchFields: codeOptions missing in codeKeys_

lavdwall opened this issue · 0 comments

Since the official bug reporting website seems to be currently unavailable, I report the issue here.

Both in codedFixedValueFvPatchFields.C and codedMixedFvPatchFields.C, the "codeOptions" key is missing from codeKeys_. Because of that codeOptions is not written at write time, which causes problems when restarting a case or trying to run in parallel after regular decomposition.

I believe it should be as follows:

template<>
const Foam::wordList
Foam::CodedBase<Foam::codedMixedFvPatchFieldBase>::codeKeys_ =
{
    "code",
    "codeInclude",
    "codeOptions",
    "localCode"
};

This issue also applies to the development version.