From 8a0a50401a7830d36cc047f8b769c0a851cf8117 Mon Sep 17 00:00:00 2001 From: Cody Melton Date: Tue, 4 Apr 2023 11:37:35 -0600 Subject: [PATCH] add correct indexing --- src/Estimators/SpinDensityNew.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Estimators/SpinDensityNew.cpp b/src/Estimators/SpinDensityNew.cpp index 11d1cc18c9..b577427a22 100644 --- a/src/Estimators/SpinDensityNew.cpp +++ b/src/Estimators/SpinDensityNew.cpp @@ -227,7 +227,7 @@ void SpinDensityNew::registerOperatorEstimator(hdf_archive& file) { h5desc_.emplace_back(hdf_name / species_.speciesName[s]); auto& oh = h5desc_.back(); - oh.set_dimensions(ng, 0); + oh.set_dimensions(ng, s * derived_parameters_.npoints); } }