Skip to content

Commit 18b2000

Browse files
author
Daniel Ruprecht
committed
removed const keywords in scalar_sweeper; they should be there, no idea why it worked even with them
1 parent bc7f126 commit 18b2000

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

examples/scalar/scalar_sweeper.hpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ class ScalarSweeper
3030
typedef pfasst::encap::VectorEncapsulation<complex<double>> complex_vector_type;
3131

3232
//! Parameter lambda and initial value u0
33-
const complex<double> lambda, u0;
33+
complex<double> lambda, u0;
3434

3535
//! The complex unit i = sqrt(-1)
36-
const complex<double> i_complex = complex<double>(0, 1);
36+
complex<double> i_complex = complex<double>(0, 1);
3737

3838
//! Error at the final time. For the scalar example, an analytical solution is known.
3939
double error;
@@ -117,7 +117,6 @@ class ScalarSweeper
117117
/**
118118
* Computes the exact solution \\( u_0 \\exp \\left( \\lambda*t \\right) \\)
119119
* at a given time t.
120-
* @param[in] ???
121120
* @param[in] Time t
122121
*/
123122
void exact(complex_vector_type& q, time t)

0 commit comments

Comments
 (0)