@@ -103,10 +103,10 @@ void Fang2017filter::setTime(double _startTime, double _deltaTime,
103103 deltaTime = _deltaTime ;
104104 endTime = _endTime ;
105105 Ntimes = (endTime - startTime ) / deltaTime ;
106- Info << "startTime = " << startTime << endl ;
107- Info << "endTime = " << endTime << endl ;
108- Info << "deltaTime = " << deltaTime << endl ;
109- Info << "Ntimes = " << Ntimes << endl ;
106+ Foam :: Info << "startTime = " << startTime << endl ;
107+ Foam :: Info << "endTime = " << endTime << endl ;
108+ Foam :: Info << "deltaTime = " << deltaTime << endl ;
109+ Foam :: Info << "Ntimes = " << Ntimes << endl ;
110110 timeVector = Eigen ::VectorXd ::LinSpaced (Ntimes + 1 , startTime , endTime );
111111}
112112
@@ -120,9 +120,9 @@ void Fang2017filter::setObservationTime(int _observationStart,
120120 M_Assert (_observationStart > 0 , "First observation timestep can't be 0" );
121121 observationStart = _observationStart ;
122122 observationDelta = _observationDelta ;
123- Info << "First observation at time = " << timeVector (observationStart ) << " s"
123+ Foam :: Info << "First observation at time = " << timeVector (observationStart ) << " s"
124124 << endl ;
125- Info << "Observations taken every " << observationDelta << " timesteps" << endl ;
125+ Foam :: Info << "Observations taken every " << observationDelta << " timesteps" << endl ;
126126 observationBoolVec = Eigen ::VectorXi ::Zero (timeVector .size () - 1 );
127127
128128 for (int i = observationStart - 1 ; i < Ntimes ; i += observationDelta )
@@ -274,15 +274,15 @@ void Fang2017filter::buildJointEns()
274274void Fang2017filter ::setObservationSize (int _size )
275275{
276276 observationSize = _size ;
277- Info << "Observation size = " << observationSize << endl ;
277+ Foam :: Info << "Observation size = " << observationSize << Foam :: endl ;
278278}
279279
280280//--------------------------------------------------------------------------
281281///
282282void Fang2017filter ::setStateSize (int _size )
283283{
284284 stateSize = _size ;
285- Info << "State size = " << stateSize << endl ;
285+ Foam :: Info << "State size = " << stateSize << Foam :: endl ;
286286}
287287
288288//--------------------------------------------------------------------------
@@ -297,7 +297,7 @@ int Fang2017filter::getStateSize()
297297void Fang2017filter ::setParameterSize (int _size )
298298{
299299 parameterSize = _size ;
300- Info << "Parameter size = " << parameterSize << endl ;
300+ Foam :: Info << "Parameter size = " << parameterSize << Foam :: endl ;
301301}
302302
303303//--------------------------------------------------------------------------
@@ -362,13 +362,13 @@ void Fang2017filter::run(int innerLoopMax, word outputFolder)
362362
363363 while (timeStepI < Ntimes )
364364 {
365- Info << "timeStep " << timeStepI << endl ;
365+ Foam :: Info << "timeStep " << timeStepI << Foam :: endl ;
366366 innerLoopI = 0 ;
367367 oldStateEns .assignSamples (stateEns .getSamples ());
368368
369369 while (innerLoopI < innerLoopMax )
370370 {
371- Info << "Inner loop " << innerLoopI << endl ;
371+ Foam :: Info << "Inner loop " << innerLoopI << Foam :: endl ;
372372
373373 // Projection
374374 if (innerLoopI == 0 )
@@ -385,19 +385,19 @@ void Fang2017filter::run(int innerLoopMax, word outputFolder)
385385 sampleParameterDist ();
386386 }
387387
388- Info << "\ndebug : parameterPriorMean = " <<
389- parameterPriorMean << endl ;
390- Info << "\ndebug : parameterMean.col(" << timeStepI << ") =\n" <<
391- parameterMean .col (timeStepI ) << endl ;
388+ Foam :: Info << "\ndebug : parameterPriorMean = " <<
389+ parameterPriorMean << Foam :: endl ;
390+ Foam :: Info << "\ndebug : parameterMean.col(" << timeStepI << ") =\n" <<
391+ parameterMean .col (timeStepI ) << Foam :: endl ;
392392 }
393393 else
394394 {
395- Info << "\ndebug : parameterMean before loop =\n" <<
396- parameterMean .col (timeStepI ) << endl ;
395+ Foam :: Info << "\ndebug : parameterMean before loop =\n" <<
396+ parameterMean .col (timeStepI ) << Foam :: endl ;
397397 setParameterPriorDensity (parameterMean .col (timeStepI ), parameterPriorCov );
398398 sampleParameterDist ();
399- Info << "\ndebug : parameterMean after loop =\n" <<
400- parameterMean .col (timeStepI ) << endl ;
399+ Foam :: Info << "\ndebug : parameterMean after loop =\n" <<
400+ parameterMean .col (timeStepI ) << Foam :: endl ;
401401 }
402402
403403 stateProjection ();
@@ -407,9 +407,9 @@ void Fang2017filter::run(int innerLoopMax, word outputFolder)
407407 {
408408 Eigen ::MatrixXd measNoiseSamps = ensembleFromDensity (measNoiseDensity );
409409 observeState ();
410- Info << "\ndebug : observation =\n" <<
410+ Foam :: Info << "\ndebug : observation =\n" <<
411411 observations .col (observationBoolVec .head (timeStepI + 1 ).sum () - 1 ) <<
412- endl ;
412+ Foam :: endl ;
413413 updateJointEns (
414414 observations .col (
415415 observationBoolVec .head (timeStepI + 1 ).sum () - 1 ));
0 commit comments