OpenFOAM / OpenFOAM-8

OpenFOAM Foundation repository for OpenFOAM version 8
GNU General Public License v3.0
115 stars 85 forks source link

codedFvPatchFields: codeOptions missing in codeKeys_ #2

Open lavdwall opened 4 years ago

lavdwall commented 4 years ago

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.