Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid ambiguous type conversion when accessing tmp<vectorField> #359

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion .github/workflows/system-tests.yaml
Original file line number Diff line number Diff line change
@@ -24,6 +24,6 @@ jobs:
uses: precice/tutorials/.github/workflows/run_testsuite_workflow.yml@develop
with:
suites: openfoam_adapter_pr
build_args: TUTORIALS_REF:${{ needs.gather-refs.outputs.reftutorials }},PRECICE_REF:v3.1.1,OPENFOAM_EXECUTABLE:openfoam2312,OPENFOAM_ADAPTER_REF:${{ github.event.pull_request.head.sha }}
build_args: TUTORIALS_REF:${{ needs.gather-refs.outputs.reftutorials }},PRECICE_REF:aeb0f6f,OPENFOAM_EXECUTABLE:openfoam2312,OPENFOAM_ADAPTER_REF:${{ github.event.pull_request.head.sha }}
systests_branch: develop
loglevel: "DEBUG"
Original file line number Diff line number Diff line change
@@ -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();
Original file line number Diff line number Diff line change
@@ -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();
2 changes: 1 addition & 1 deletion FF/Velocity.C
Original file line number Diff line number Diff line change
@@ -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;
}
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).