1 #ifndef DEF_VARIATIONAL_MIDPOINTSTEPINTERNALS 2 #define DEF_VARIATIONAL_MIDPOINTSTEPINTERNALS 8 template <
typename T_M,
28 std::cout <<
"q0+q1/2 = \n" << (this->m_q0+this->m_q1)/2.0 << std::endl;
29 std::cout <<
"q1-q0/h = \n" << (this->m_q1-this->m_q0)/this->m_h << std::endl;
30 std::cout <<
"q1+q/2 = \n" << (this->m_q1+q)/2.0 << std::endl;
31 std::cout <<
"q-q1/h = \n" << (q-this->m_q1)/this->m_h << std::endl;
32 f = (this->m_h/2.0) * this->m_problem.dLdq((this->m_q0+this->m_q1)/2.0,(this->m_q1-this->m_q0)/this->m_h)
33 + this->m_problem.dLdv((this->m_q0+this->m_q1)/2.0,(this->m_q1-this->m_q0)/this->m_h)
34 + (this->m_h/2.0) * this->m_problem.dLdq((this->m_q1+q)/2.0,(q-this->m_q1)/this->m_h)
35 - this->m_problem.dLdv((this->m_q1+q)/2.0,(q-this->m_q1)/this->m_h);
44 J = (this->m_h/4.0) * this->m_problem.JqdLdq(pos,vel)
45 + this->m_problem.JvdLdq(pos,vel)/2.0
46 - this->m_problem.JqdLdv(pos,vel)/2.0
47 - this->m_problem.JvdLdv(pos,vel)/this->m_h;
Definition: MidpointStepInternals.hpp:11
Definition: Abstract_Problem.hpp:10
Definition: Abstract_LieProblem.hpp:6
Definition: Abstract_StepInternals.hpp:13
Definition: NOXVector.hpp:14
Definition: Abstract_NOXStep.hpp:12