Commit 8f1a8dd4 authored by Andrew Heather's avatar Andrew Heather
Browse files

BUG: corrections to NEARESTFACE clause in directMappedVelocityFlux BC

parent 37c60a62
......@@ -66,16 +66,16 @@ directMappedVelocityFluxFixedValueFvPatchField
FatalErrorIn
(
"directMappedVelocityFluxFixedValueFvPatchField::"
"directMappedVelocityFluxFixedValueFvPatchField\n"
"(\n"
" const directMappedVelocityFluxFixedValueFvPatchField&,\n"
" const fvPatch&,\n"
" const DimensionedField<vector, volMesh>&,\n"
" const fvPatchFieldMapper&\n"
")\n"
) << "\n patch type '" << p.type()
"directMappedVelocityFluxFixedValueFvPatchField"
"("
"const directMappedVelocityFluxFixedValueFvPatchField&, "
"const fvPatch&, "
"const DimensionedField<vector, volMesh>&, "
"const fvPatchFieldMapper&"
")"
) << "Patch type '" << p.type()
<< "' not type '" << directMappedPatchBase::typeName << "'"
<< "\n for patch " << p.name()
<< " for patch " << p.name()
<< " of field " << dimensionedInternalField().name()
<< " in file " << dimensionedInternalField().objectPath()
<< exit(FatalError);
......@@ -102,10 +102,10 @@ directMappedVelocityFluxFixedValueFvPatchField
"directMappedVelocityFluxFixedValueFvPatchField"
"("
"const fvPatch&, "
"const DimensionedField<vector, volMesh>& iF, "
"const DimensionedField<vector, volMesh>&, "
"const dictionary&"
")"
) << "patch type '" << p.type()
) << "Patch type '" << p.type()
<< "' not type '" << directMappedPatchBase::typeName << "'"
<< " for patch " << p.name()
<< " of field " << dimensionedInternalField().name()
......@@ -191,8 +191,8 @@ void directMappedVelocityFluxFixedValueFvPatchField::updateCoeffs()
forAll(Upf, faceI)
{
allUValues[faceStart++] = Upf[faceI];
allPhiValues[faceStart] = phipf[faceI];
allUValues[faceStart + faceI] = Upf[faceI];
allPhiValues[faceStart + faceI] = phipf[faceI];
}
}
......@@ -205,7 +205,7 @@ void directMappedVelocityFluxFixedValueFvPatchField::updateCoeffs()
distMap.constructMap(),
allUValues
);
newUValues = patch().patchSlice(newUValues);
newUValues = patch().patchSlice(allUValues);
mapDistribute::distribute
(
......@@ -214,9 +214,9 @@ void directMappedVelocityFluxFixedValueFvPatchField::updateCoeffs()
distMap.constructSize(),
distMap.subMap(),
distMap.constructMap(),
newPhiValues
allPhiValues
);
newPhiValues = patch().patchSlice(newPhiValues);
newPhiValues = patch().patchSlice(allPhiValues);
break;
}
......@@ -257,9 +257,10 @@ void directMappedVelocityFluxFixedValueFvPatchField::updateCoeffs()
{
FatalErrorIn
(
"directMappedVelocityFluxFixedValueFvPatchField::updateCoeffs()"
)<< "patch can only be used in NEARESTPATCHFACE or NEARESTFACE "
<< "mode" << nl << abort(FatalError);
"directMappedVelocityFluxFixedValueFvPatchField::"
"updateCoeffs()"
) << "patch can only be used in NEARESTPATCHFACE or NEARESTFACE "
<< "mode" << nl << abort(FatalError);
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment