From f81df060deeb65d203d282d28933e6c8bf40ffed Mon Sep 17 00:00:00 2001 From: James E McClure Date: Mon, 17 Aug 2015 21:29:22 -0400 Subject: [PATCH] NWP blob average is segfaulting? --- common/TwoPhase.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/common/TwoPhase.h b/common/TwoPhase.h index 76634e6f..beb7102b 100644 --- a/common/TwoPhase.h +++ b/common/TwoPhase.h @@ -1208,8 +1208,8 @@ void TwoPhase::PrintAll(int timestep){ void TwoPhase::PrintComponents(int timestep){ if (Dm.rank==0){ - printf("PRINT COMPONENT AVEREAGES: time = %i \n",timestep); - for (int b=0; b 0.0){ fprintf(NWPLOG,"%i ",timestep-5); fprintf(NWPLOG,"%i ",b); @@ -1242,11 +1242,12 @@ void TwoPhase::PrintComponents(int timestep){ fprintf(NWPLOG,"%.5g ",ComponentAverages_NWP(CMY,b)); fprintf(NWPLOG,"%.5g ",ComponentAverages_NWP(CMZ,b)); fprintf(NWPLOG,"%.5g ",ComponentAverages_WP(TRAWN,b)); - fprintf(NWPLOG,"%.5g\n",ComponentAverages_WP(TRJWN,b)); } + fprintf(NWPLOG,"%.5g\n",ComponentAverages_WP(TRJWN,b)); + } } fflush(NWPLOG); - for (int b=0; b 0.0){ fprintf(WPLOG,"%i ",timestep-5); fprintf(WPLOG,"%i ",b); @@ -1284,7 +1285,7 @@ void TwoPhase::PrintComponents(int timestep){ } } fflush(WPLOG); - +*/ } }