From 4ffaa7130a69b3d5da4a8a07a8d93a05ef3c4d86 Mon Sep 17 00:00:00 2001 From: Michael Zingale Date: Fri, 26 Jan 2024 08:18:08 -0500 Subject: [PATCH] add braces around initialization to address clang-tidy it has: warning: suggest braces around initialization of subobject --- Source/driver/sum_utils.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/driver/sum_utils.cpp b/Source/driver/sum_utils.cpp index f0fa10e35e..438c744f0f 100644 --- a/Source/driver/sum_utils.cpp +++ b/Source/driver/sum_utils.cpp @@ -517,7 +517,7 @@ Castro::gwstrain (Real time, // Standard Kronecker delta. - Real delta[3][3] = {0.0}; + Real delta[3][3] = {{0.0}}; for (int i = 0; i < 3; ++i) { delta[i][i] = 1.0; @@ -539,7 +539,7 @@ Castro::gwstrain (Real time, // Projection operator onto the unit vector n. - Real proj[3][3][3][3] = {0.0}; + Real proj[3][3][3][3] = {{0.0}}; for (int l = 0; l < 3; ++l) { for (int k = 0; k < 3; ++k) { @@ -554,7 +554,7 @@ Castro::gwstrain (Real time, // Now we can calculate the strain tensor. - Real h[3][3] = {0.0}; + Real h[3][3] = {{0.0}}; for (int l = 0; l < 3; ++l) { for (int k = 0; k < 3; ++k) {