Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add braces around initialization to address clang-tidy #2733

Merged
merged 1 commit into from
Jan 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Source/driver/sum_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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) {
Expand All @@ -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) {
Expand Down
Loading