[cig-commits] commit: Eliminating that annoying excessive printing of
Mercurial
hg at geodynamics.org
Mon Feb 1 15:30:52 PST 2010
changeset: 329:fbc66183146f
branch: pcu_rejig
user: LukeHodkinson at localhost.localdomain
date: Wed Nov 25 11:13:14 2009 +1100
files: MaterialPoints/src/Materials_Register.c
description:
Eliminating that annoying excessive printing of
progress.
diff -r ebdcd861f4ed -r fbc66183146f MaterialPoints/src/Materials_Register.c
--- a/MaterialPoints/src/Materials_Register.c Tue Nov 24 17:50:37 2009 +1100
+++ b/MaterialPoints/src/Materials_Register.c Wed Nov 25 11:13:14 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