MPLIC: Add an explicit error detailing incompatibility with NCC

Resolves bug report https://bugs.openfoam.org/view.php?id=3999
This commit is contained in:
Will Bainbridge
2023-07-25 09:00:57 +01:00
parent 764a7e570b
commit d98d2c371a

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2020-2022 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2020-2023 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -187,6 +187,13 @@ Foam::tmp<Foam::surfaceScalarField> Foam::MPLIC::surfaceAlpha
}
}
if (!mesh.conformal())
{
FatalErrorInFunction
<< "The " << type() << " scheme is not compatible with "
<< "non-conformal meshes" << exit(FatalError);
}
// Convert the alphaPhi spliced field into a surfaceScalarField
tmp<surfaceScalarField> tslicedAlpha
(