mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: normalResidual has the potential to contain uninitilized values
This commit is contained in:
committed by
Andrew Heather
parent
6c3a868fbe
commit
eb8e0aefa5
@ -251,6 +251,9 @@ void Foam::reconstruction::plicRDF::calcResidual
|
||||
const label celli = interfaceLabels_[i];
|
||||
if (mag(normal_[celli]) == 0 || mag(interfaceNormal_[i]) == 0)
|
||||
{
|
||||
normalResidual[i].celli = celli;
|
||||
normalResidual[i].normalResidual = 0;
|
||||
normalResidual[i].avgAngle = 0;
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
@ -81,9 +81,9 @@ class plicRDF
|
||||
//- residuals storage
|
||||
struct normalRes
|
||||
{
|
||||
label celli;
|
||||
scalar normalResidual;
|
||||
scalar avgAngle;
|
||||
label celli = {};
|
||||
scalar normalResidual = {};
|
||||
scalar avgAngle = {};
|
||||
};
|
||||
|
||||
//- Reference to mesh
|
||||
|
||||
Reference in New Issue
Block a user