From 57770e6bc7c31ba8cd402f4cb49008105e5fe712 Mon Sep 17 00:00:00 2001 From: Chichi Lalescu <chichilalescu@gmail.com> Date: Wed, 3 May 2017 21:47:43 +0200 Subject: [PATCH] get rid of unitialized variable warning --- bfps/cpp/full_code/NSVE.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bfps/cpp/full_code/NSVE.cpp b/bfps/cpp/full_code/NSVE.cpp index d9332589..292d0529 100644 --- a/bfps/cpp/full_code/NSVE.cpp +++ b/bfps/cpp/full_code/NSVE.cpp @@ -364,6 +364,8 @@ int NSVE<rnumber>::do_stats() this->stat_file, "statistics", H5P_DEFAULT); + else + stat_group = 0; fs->compute_velocity(fs->cvorticity); *tmp_vec_field = fs->cvelocity->get_cdata(); tmp_vec_field->compute_stats( -- GitLab