From ca55d4d96ce7427040e8e4731c92031c5c197b45 Mon Sep 17 00:00:00 2001 From: James E McClure Date: Fri, 5 Jun 2015 07:35:55 -0400 Subject: [PATCH] Trying to fix segfault in WriteBlobStates in tests/BlobAnalyzeParallel --- tests/BlobAnalyzeParallel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/BlobAnalyzeParallel.cpp b/tests/BlobAnalyzeParallel.cpp index 2f132e87..dd519028 100644 --- a/tests/BlobAnalyzeParallel.cpp +++ b/tests/BlobAnalyzeParallel.cpp @@ -38,7 +38,7 @@ inline void WriteBlobStates(TwoPhase TCAT, double D, double porosity){ pw = TCAT.paw_global; aws = TCAT.aws; // Compute the averages over the entire non-wetting phsae - for (a=0; a<(int)TCAT.BlobAverages.size(1); a++){ + for (a=0; a0; a--){ + for (a=TCAT.nblobs_global-1; a>0; a--){ // Subtract the features one-by-one vol_n -= TCAT.BlobAverages(0,a); pan -= TCAT.BlobAverages(2,a)*TCAT.BlobAverages(0,a);