Commit 472cef74 authored by Simon Spannagel's avatar Simon Spannagel
Browse files

Runge-Kutta integrator: make some methods const

parent 3cbb0b08
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -68,7 +68,7 @@ namespace allpix {
         * @brief Return the time step
         * @return Current time step of the integration
         */
        T getTimeStep() { return h_; }
        T getTimeStep() const { return h_; }

        /**
         * @brief Changes the current value during integration
@@ -80,17 +80,17 @@ namespace allpix {
         * @brief Get the value to integrate
         * @return Current value
         */
        Eigen::Matrix<T, D, 1> getValue() { return y_; }
        Eigen::Matrix<T, D, 1> getValue() const { return y_; }
        /**
         * @brief Get the total integration error
         * @return Total integrated error
         */
        Eigen::Matrix<T, D, 1> getError() { return error_; }
        Eigen::Matrix<T, D, 1> getError() const { return error_; }
        /**
         * @brief Get the time during integration
         * @return Current time
         */
        T getTime() { return t_; }
        T getTime() const { return t_; }

        /**
         * @brief Execute a single time step of the integration