mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: AMIinterpolation: allow construction of empty AMI
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
|
||||
@ -1175,10 +1175,13 @@ void Foam::AMIInterpolation<SourcePatch, TargetPatch>::normaliseWeights
|
||||
const label nFace = returnReduce(wght.size(), sumOp<scalar>());
|
||||
reduce(tSum, sumOp<scalar>());
|
||||
|
||||
Info<< "AMI: Patch " << patchName << " weights min/max/average = "
|
||||
<< returnReduce(minBound, minOp<scalar>()) << ", "
|
||||
<< returnReduce(maxBound, maxOp<scalar>()) << ", "
|
||||
<< tSum/nFace << endl;
|
||||
if (nFace)
|
||||
{
|
||||
Info<< "AMI: Patch " << patchName << " weights min/max/average = "
|
||||
<< returnReduce(minBound, minOp<scalar>()) << ", "
|
||||
<< returnReduce(maxBound, maxOp<scalar>()) << ", "
|
||||
<< tSum/nFace << endl;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user