[cig-commits] commit: Eliminating an annoying bug that has somehow crept in.
Mercurial
hg at geodynamics.org
Mon Feb 1 15:30:48 PST 2010
changeset: 325:e65260562df0
parent: 227:0a8d058957d4
user: LukeHodkinson at localhost.localdomain
date: Mon Nov 23 15:44:07 2009 +1100
files: MaterialPoints/src/Materials_Register.c
description:
Eliminating an annoying bug that has somehow crept in.
The bug is causing the percentage completion of material
layout to be printed far too often.
diff -r 0a8d058957d4 -r e65260562df0 MaterialPoints/src/Materials_Register.c
--- a/MaterialPoints/src/Materials_Register.c Fri Oct 02 12:39:00 2009 +1000
+++ b/MaterialPoints/src/Materials_Register.c Mon Nov 23 15:44:07 2009 +1100
@@ -216,10 +216,11 @@ void _Materials_Register_PrintParticleAs
static Particle_Index nextCompletedParticleCountToPrint=0;
static Particle_Index nextPlusOneCompletedParticleCountToPrint=0;
- if (firstStatusPrint) {
+ if (*firstStatusPrint) {
nextCompletionRatioToPrint = completionRatioIncrement;
nextCompletedParticleCountToPrint = ceil(swarm->particleLocalCount * nextCompletionRatioToPrint - 0.001 );
nextPlusOneCompletedParticleCountToPrint=0;
+ *firstStatusPrint = False;
}
if ( /*(swarm->myRank == 0) && */ ((lParticle_I+1) >= nextCompletedParticleCountToPrint ) ) {
More information about the CIG-COMMITS
mailing list