mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: setFields: single warn for internal faces; Updated setFieldsDict
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -216,14 +216,20 @@ bool setFaceFieldType
|
||||
}
|
||||
|
||||
// Override
|
||||
bool hasWarned = false;
|
||||
labelList nChanged(field.boundaryField().size(), 0);
|
||||
forAll(selectedFaces, i)
|
||||
{
|
||||
label facei = selectedFaces[i];
|
||||
if (mesh.isInternalFace(facei))
|
||||
{
|
||||
WarningIn("setFaceFieldType(..)")
|
||||
<< "Ignoring internal face " << facei << endl;
|
||||
if (!hasWarned)
|
||||
{
|
||||
hasWarned = true;
|
||||
WarningIn("setFaceFieldType(..)")
|
||||
<< "Ignoring internal face " << facei
|
||||
<< ". Suppressing further warnings." << endl;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@ -16,7 +16,7 @@ FoamFile
|
||||
|
||||
defaultFieldValues
|
||||
(
|
||||
volScalarFieldValue gamma 0
|
||||
volScalarFieldValue alpha1 0
|
||||
volVectorFieldValue U (0 0 0)
|
||||
);
|
||||
|
||||
@ -30,7 +30,7 @@ regions
|
||||
|
||||
fieldValues
|
||||
(
|
||||
volScalarFieldValue gamma 1
|
||||
volScalarFieldValue alpha1 1
|
||||
);
|
||||
}
|
||||
|
||||
@ -41,7 +41,7 @@ regions
|
||||
|
||||
fieldValues
|
||||
(
|
||||
volScalarFieldValue gamma 1
|
||||
volScalarFieldValue alpha1 1
|
||||
);
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user