@@ -139,6 +139,7 @@ namespace pfasst
139139 BCVLOG (9 ) << " writing center particle to file" ;
140140 this ->data_stream_fmt % (iter+1 ) % sweep % -1
141141 % center[0 ] % center[1 ] % center[2 ]
142+ // cppcheck-suppress zerodiv
142143 % 0 % 0 % 0
143144 % energy % drift % residual;
144145 this ->data_stream << this ->data_stream_fmt << endl;
@@ -154,6 +155,7 @@ namespace pfasst
154155 this ->log_indent ->increment (9 );
155156 for (size_t p = 0 ; p < cloud->size (); ++p) {
156157 BCVLOG (9 ) << " writing cloud particle " << p << " to file" ;
158+ // cppcheck-suppress zerodiv
157159 this ->data_stream_fmt % (iter+1 ) % sweep % p
158160 % cloud->positions ()[p * cloud->dim ()] % cloud->positions ()[p * cloud->dim () + 1 ] % cloud->positions ()[p * cloud->dim () + 2 ]
159161 % cloud->velocities ()[p * cloud->dim ()] % cloud->velocities ()[p * cloud->dim () + 1 ] % cloud->velocities ()[p * cloud->dim () + 2 ]
@@ -194,7 +196,7 @@ namespace pfasst
194196 }
195197
196198 template <typename scalar, typename time>
197- void BorisSweeper<scalar, time>::update_velocity(const size_t m, const time ds, const vector<time> nodes)
199+ void BorisSweeper<scalar, time>::update_velocity(const size_t m, const time ds, const vector<time>& nodes)
198200 {
199201 BCVLOG (4 ) << " updating velocity (" << m << " ->" << m+1 << " ) with ds=" << ds;
200202 this ->log_indent ->increment (4 );
0 commit comments