@@ -185,10 +185,10 @@ void Streamer::reinit(const Eref& e, ProcPtr p)
185185 if ( tick != tableDt_[0 ] )
186186 {
187187 moose::showWarn ( " Table " + tableIds_[i].path () + " has "
188- " different clock dt. "
189- " Make sure all tables added to Streamer have the same "
190- " dt value."
191- );
188+ " different clock dt. "
189+ " Make sure all tables added to Streamer have the same "
190+ " dt value."
191+ );
192192 }
193193 }
194194 }
@@ -209,12 +209,12 @@ void Streamer::reinit(const Eref& e, ProcPtr p)
209209 if ( tableTick_[i] != tableTick_[0 ] )
210210 {
211211 LOG ( moose::warning
212- , " Table " << tableIds_[i].path ()
213- << " has tick (dt) which is different than the first table."
214- << endl
215- << " Got " << tableTick_[i] << " expected " << tableTick_[0 ]
216- << endl << " Disabling this table."
217- );
212+ , " Table " << tableIds_[i].path ()
213+ << " has tick (dt) which is different than the first table."
214+ << endl
215+ << " Got " << tableTick_[i] << " expected " << tableTick_[0 ]
216+ << endl << " Disabling this table."
217+ );
218218 invalidTables.push_back ( i );
219219 }
220220 }
@@ -236,7 +236,7 @@ void Streamer::reinit(const Eref& e, ProcPtr p)
236236 // write now.
237237 currTime_ = 0.0 ;
238238 zipWithTime ( );
239- StreamerBase::writeToOutFile (outfilePath_, format_, " w " , data_, columns_);
239+ StreamerBase::writeToOutFile (outfilePath_, format_, WRITE , data_, columns_);
240240 data_.clear ( );
241241}
242242
@@ -247,7 +247,7 @@ void Streamer::reinit(const Eref& e, ProcPtr p)
247247void Streamer::cleanUp ( )
248248{
249249 zipWithTime ( );
250- StreamerBase::writeToOutFile ( outfilePath_, format_, " a " , data_, columns_ );
250+ StreamerBase::writeToOutFile ( outfilePath_, format_, APPEND , data_, columns_ );
251251 data_.clear ( );
252252}
253253
@@ -261,7 +261,7 @@ void Streamer::process(const Eref& e, ProcPtr p)
261261{
262262 // LOG( moose::debug, "Writing Streamer data to file." );
263263 zipWithTime ( );
264- StreamerBase::writeToOutFile ( outfilePath_, format_, " a " , data_, columns_ );
264+ StreamerBase::writeToOutFile ( outfilePath_, format_, APPEND , data_, columns_ );
265265 data_.clear ();
266266 numWriteEvents_ += 1 ;
267267}
@@ -284,12 +284,12 @@ void Streamer::addTable( Id table )
284284 tables_.push_back ( t );
285285 tableTick_.push_back ( table.element ()->getTick () );
286286
287- // NOTE: If user can make sure that names are unique in table, using name is
288- // better than using the full path.
289- if ( t->getColumnName ().size () > 0 )
290- columns_.push_back ( t->getColumnName ( ) );
287+ // NOTE: Table can also have name. If name is set by User, use the name to
288+ // for column name, else use full path of the table .
289+ if (t->getColumnName ().size () > 0 )
290+ columns_.push_back (t->getColumnName () );
291291 else
292- columns_.push_back ( moose::moosePathToUserPath ( table.path () ) );
292+ columns_.push_back (table.path ());
293293}
294294
295295/* *
@@ -355,7 +355,7 @@ size_t Streamer::getNumTables( void ) const
355355 * @Synopsis Get number of write events in streamer. Useful for debugging and
356356 * performance measuerments.
357357 *
358- * @Returns
358+ * @Returns
359359 */
360360/* ----------------------------------------------------------------------------*/
361361size_t Streamer::getNumWriteEvents ( void ) const
@@ -414,8 +414,8 @@ void Streamer::zipWithTime( )
414414 {
415415#if 0
416416 LOG( moose::debug
417- , "Table " << tables_[i]->getName( ) << " is not functional. Filling with zero "
418- );
417+ , "Table " << tables_[i]->getName( ) << " is not functional. Filling with zero "
418+ );
419419#endif
420420 tVec.resize ( numEntriesInEachTable, 0 );
421421 }
0 commit comments