diff --git a/palace/drivers/basesolver.cpp b/palace/drivers/basesolver.cpp index 05ff32053..3cd9a6c7f 100644 --- a/palace/drivers/basesolver.cpp +++ b/palace/drivers/basesolver.cpp @@ -446,7 +446,7 @@ void BaseSolver::PostprocessSurfaces(const PostOperator &postop, const std::stri for (const auto &[idx, data] : postop.GetSurfacePostOp().flux_surfs) { const std::complex Phi = postop.GetSurfaceFlux(idx); - double scale; + double scale = 1.0; switch (data.type) { case (SurfaceFluxType::ELECTRIC):