Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ void Foam::coupledPressureFvPatchField::updateCoeffs()
const scalarField& phip = phi->boundaryField()[this->patch().index()];
const Foam::volVectorField* U = &db().lookupObject<volVectorField>(uName_);
const vectorField& Up = U->boundaryField()[this->patch().index()];
const vectorField n = this->patch().nf();
const vectorField n = this->patch().nf().cref();

int t0 = this->patch().boundaryMesh().mesh().time().startTimeIndex();
int t = this->patch().boundaryMesh().mesh().time().timeIndex();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ void Foam::coupledVelocityFvPatchField::updateCoeffs()
}
const Foam::surfaceScalarField* phi = &db().lookupObject<surfaceScalarField>(phiName_);
const scalarField& phip = phi->boundaryField()[this->patch().index()];
const vectorField n = this->patch().nf();
const vectorField n = this->patch().nf().cref();

int t0 = this->patch().boundaryMesh().mesh().time().startTimeIndex();
int t = this->patch().boundaryMesh().mesh().time().timeIndex();
Expand Down
2 changes: 1 addition & 1 deletion FF/Velocity.C
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ std::size_t preciceAdapter::FF::Velocity::write(double* buffer, bool meshConnect
if (fluxCorrection_)
{
scalarField phip = phi_->boundaryFieldRef()[patchID];
vectorField n = U_->boundaryField()[patchID].patch().nf();
const vectorField n = U_->boundaryField()[patchID].patch().nf().cref();
const scalarField& magS = U_->boundaryFieldRef()[patchID].patch().magSf();
UPatch = UPatch - n * (n & U_->boundaryField()[patchID]) + n * phip / magS;
}
Expand Down
1 change: 1 addition & 0 deletions changelog-entries/358.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Fixed an issue preventing compiling the adapter with the Intel compiler [#358](https://github.com/precice/openfoam-adapter/pull/358).