[cig-commits] commit: Make VTKOutput not output at all if dumpEvery==0

Mercurial hg at geodynamics.org
Sat Oct 8 02:08:21 PDT 2011


changeset:   886:90a83768712b
tag:         tip
user:        Walter Landry <wlandry at caltech.edu>
date:        Sat Oct 08 02:06:43 2011 -0700
files:       plugins/Output/VTKOutput/VTKOutput.cxx
description:
Make VTKOutput not output at all if dumpEvery==0


diff -r 015f9792082d -r 90a83768712b plugins/Output/VTKOutput/VTKOutput.cxx
--- a/plugins/Output/VTKOutput/VTKOutput.cxx	Sat Oct 08 01:47:58 2011 -0700
+++ b/plugins/Output/VTKOutput/VTKOutput.cxx	Sat Oct 08 02:06:43 2011 -0700
@@ -98,11 +98,9 @@ void VTKOutput( void* _context ) {
   UnderworldContext* context = (UnderworldContext*)_context;
   Dictionary* dictionary = context->dictionary;
 
-  /* Only dump if at the right time step.  We use timeStep-1, because
-     we are outputing after a solve, but before advection.  So
-     timeStep-1 makes more sense in terms of when the simulation looks
-     like this. */
-  if(context->timeStep % context->dumpEvery != 0)
+  /* Only dump if at the right time step. */
+  if(context->dumpEvery != 0
+     && context->timeStep % context->dumpEvery != 0)
     return;
 	
 



More information about the CIG-COMMITS mailing list