Bridge++  Version 1.5.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
gradientFlow_RungeKutta_1st.cpp
Go to the documentation of this file.
1 
15 
16 const std::string GradientFlow_RungeKutta_1st::class_name = "GradientFlow_RungeKutta_1st";
17 
18 //====================================================================
19 void GradientFlow_RungeKutta_1st::flow(double& t, double& Estep, Field_G& U)
20 {
21  //- aliases
22  Field_G& w0 = U;
23  Field_G& w1 = U;
24 
25  Field_G& z0 = m_z0;
26 
27  //- step 0
28  // calculate gradient of m_action Z_0 (SA)
29  m_action->force(z0, w0);
30 
31  // W_1=e^{Z_0}*U
32  mult_exp_Field_G(w1, Estep, z0, w0, m_Nprec); // assume it is ok for w = u case.
33 
34  t += Estep;
35 }
36 
37 
38 //====================================================================
39 //============================================================END=====
void flow(double &t, double &Estep, Field_G &U)
SU(N) gauge field.
Definition: field_G.h:38
virtual void force(Field &)=0
returns force for molcular dynamical update of conjugate momenta.
void mult_exp_Field_G(Field_G &W, const double alpha, const Field_G &iP, const Field_G &U, const int Nprec)