diff --git a/src/twoPhaseModels/interfaceCompression/MPLIC/MPLIC.C b/src/twoPhaseModels/interfaceCompression/MPLIC/MPLIC.C index d7fc6c1e35..9e4ae8ac68 100644 --- a/src/twoPhaseModels/interfaceCompression/MPLIC/MPLIC.C +++ b/src/twoPhaseModels/interfaceCompression/MPLIC/MPLIC.C @@ -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::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 tslicedAlpha (