From 2ea9c808346b008ed7bc0322b37f20c9e44d0c2c Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Fri, 3 Jan 2025 11:34:30 -0800 Subject: [PATCH] PEC: Fix Uninit Var Warning (GCC) --- Source/BoundaryConditions/PEC_Insulator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/BoundaryConditions/PEC_Insulator.cpp b/Source/BoundaryConditions/PEC_Insulator.cpp index b9926e4bf22..b6b6bcf08ea 100644 --- a/Source/BoundaryConditions/PEC_Insulator.cpp +++ b/Source/BoundaryConditions/PEC_Insulator.cpp @@ -69,7 +69,7 @@ namespace bool GuardCell = false; bool isInsulatorBoundary = false; amrex::Real sign = +1._rt; - bool is_normal_to_boundary; + bool is_normal_to_boundary = false; amrex::Real field_value = 0._rt; bool set_field = false; // Loop over all dimensions