Skip to content

Changes to compile using clang #3

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

Merged
merged 1 commit into from
Feb 12, 2024
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 @@ -164,24 +164,28 @@ bool Foam::functionObjects::maxCellCourant::write()
const surfaceScalarField& alpha_nei = mesh.thisDb().lookupObject<surfaceScalarField>("alpha_nei");
const surfaceScalarField& uMagSf = mesh.thisDb().lookupObject<surfaceScalarField>("uMagSf");

surfaceScalarField magUf =
mag
surfaceScalarField magUf
(
phi
/
mag
(
rho_own * alpha_own
+
rho_nei * alpha_nei
) / uMagSf
phi
/
(
rho_own * alpha_own
+
rho_nei * alpha_nei
) / uMagSf
)
);

surfaceScalarField faceCo =
surfaceScalarField faceCo
(
mesh.surfaceInterpolation::deltaCoeffs()
*
magUf
*
runTime.deltaT() * 2.0;
runTime.deltaT() * 2.0
);

forAll(mesh.cells(), iCell)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ void Foam::subsonicSupersonicPressureOutletFvPatchScalarField::updateCoeffs()
const vectorField Up = db().lookupObject<volVectorField>(UName_).boundaryField()[patch().index()];

//
const scalarField c = sqrt(gammap / psip);
const scalarField c (sqrt(gammap / psip));

//-
const scalarField phip = db().lookupObject<surfaceScalarField>(phiName_).boundaryField()[patch().index()];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ void Foam::timeVaryingTotalPressureFvPatchScalarField::updateCoeffs
thermo.gamma(pp, Tp, patch().index())
);

scalarField gM1ByG = (gammap - 1.0)/gammap;
scalarField gM1ByG ((gammap - 1.0)/gammap);

operator==
(
Expand Down