We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4657bad commit 7cb5b11Copy full SHA for 7cb5b11
src/adjoint/DAFunction/DAFunctionVariance.C
@@ -38,7 +38,9 @@ DAFunctionVariance::DAFunctionVariance(
38
if (mode_ == "surface")
39
{
40
// check if the faceSources is set
41
- if (faceSources_.size() == 0)
+ label size = faceSources_.size();
42
+ reduce(size, sumOp<label>());
43
+ if (size == 0)
44
45
FatalErrorIn("") << "surface mode is used but patchToFace is not set!"
46
<< abort(FatalError);
0 commit comments