When compile for U.C for U codedFixedValue BC there is an error:
U.C:47:64: error: cannot convert 'const Patch {aka const Foam::fvPatchField<double>}' to 'double' in initialization
double p = patch().lookupPatchField<volScalarField, scalar>("p");
^
/opt/openfoam7/wmake/rules/General/transform:25: recipe for target 'Make/linux64GccDPInt32Opt/fixedValueFvPatchFieldTemplate.o' failed
make: *** [Make/linux64GccDPInt32Opt/fixedValueFvPatchFieldTemplate.o] Error 1
--> FOAM FATAL IO ERROR:
Failed wmake "dynamicCode/U/platforms/linux64GccDPInt32Opt/lib/libU_4a41ae87fd232a890046042bbdc457ac2c21c661.so"
file: /home/openfoam/OpenFOAM/dualFuelEngine/tutorials/multiCompression/tube/0/U.boundaryField.inlet from line 25 to line 29.
From function void Foam::codedBase::createLibrary(Foam::dynamicCode&, const Foam::dynamicCodeContext&) const
in file db/dynamicLibrary/codedBase/codedBase.C at line 206.
FOAM exiting
When compile for U.C for U codedFixedValue BC there is an error: