diff --git a/src/MotionModel/entities/vibrating/vibrating.hpp b/src/MotionModel/entities/vibrating/vibrating.hpp index 980ab0e4..5e41e195 100644 --- a/src/MotionModel/entities/vibrating/vibrating.hpp +++ b/src/MotionModel/entities/vibrating/vibrating.hpp @@ -95,7 +95,7 @@ public: realx3 transferPoint(const realx3& p, real dt) { if(!inTimeRange()) return p; - return p + 0.5*dt*(velocity0_+velocity_); + return p + static_cast(0.5)*dt*(velocity0_+velocity_); } // - IO operation diff --git a/src/phasicFlow/Timer/Timer.hpp b/src/phasicFlow/Timer/Timer.hpp index 54e30317..4c731444 100644 --- a/src/phasicFlow/Timer/Timer.hpp +++ b/src/phasicFlow/Timer/Timer.hpp @@ -19,8 +19,8 @@ Licence: -----------------------------------------------------------------------------*/ -#ifndef __Timer_hpp__ -#define __Timer_hpp__ +#ifndef __Timerr_hpp__ +#define __Timerr_hpp__ #include diff --git a/src/phasicFlow/Timer/Timers.hpp b/src/phasicFlow/Timer/Timers.hpp index cd2630fb..fea6604b 100644 --- a/src/phasicFlow/Timer/Timers.hpp +++ b/src/phasicFlow/Timer/Timers.hpp @@ -22,8 +22,10 @@ Licence: #define __Timerss_hpp__ -#include "Timer.hpp" + #include "List.hpp" +#include "Timer.hpp" + namespace pFlow { diff --git a/src/phasicFlow/repository/Time/Time.cpp b/src/phasicFlow/repository/Time/Time.cpp index 4f80061b..625b1bc1 100644 --- a/src/phasicFlow/repository/Time/Time.cpp +++ b/src/phasicFlow/repository/Time/Time.cpp @@ -85,7 +85,7 @@ bool pFlow::Time::write { if(outputToFile()) { - REPORT(0)<<"\nWriting to file at time: "<< cyanText(currentTimeWord())<= endTime_ ) return true; @@ -171,7 +179,7 @@ bool pFlow::timeControl::operator ++(int) currentIter_++; currentTime_ += dt_; - if(screenReport()) + if(screenReport() && !managedExternaly_) { REPORT(0)<<"Time (s): "<