8 #ifndef __linear_extrap_predictor_h__
9 #define __linear_extrap_predictor_h__
21 namespace LinearExtrapolation4DChronoPredictorEnv
45 const LatticeFermion&
chi,
50 switch( chrono_buf->size() ) {
53 QDPIO::cout <<
"LinearExtrapolationPredictor: giving you zero" << std::endl;
60 QDPIO::cout <<
"LinearExtrapolationPredictor: giving you last soln" << std::endl;
61 chrono_buf->get(0,
psi);
67 QDPIO::cout <<
"LinearExtrapolationPredictor: giving you linear extrapolation" << std::endl;
70 chrono_buf->get(0,y0);
73 chrono_buf->get(1,y1);
75 psi = Real(2)*y0 - y1;
80 QDPIO::cerr <<
"Unknown case reached in LinearExtrapPredictor " << std::endl;
90 const LatticeFermion&
chi) {
96 const LatticeFermion&
chi) {
112 QDPIO::cout <<
"LinearExtrapolationPredictor: registering new X solution. ";
114 QDPIO::cout <<
" number of vectors stored is = " <<
chrono_bufX->size() << std::endl;
124 QDPIO::cout <<
"LinearExtrapolationPredictor: registering new Y solution. ";
126 QDPIO::cout <<
" number of vectors stored is = " <<
chrono_bufY->size() << std::endl;
137 namespace LinearExtrapolation5DChronoPredictorEnv
164 const multi1d<LatticeFermion>&
chi)
171 QDPIO::cout <<
"LinearExtrapolationPredictor: giving you zero" << std::endl;
178 QDPIO::cout <<
"LinearExtrapolationPredictor: giving you last soln" << std::endl;
186 QDPIO::cout <<
"LinearExtrapolationPredictor: giving you linear extrapolation" << std::endl;
188 multi1d<LatticeFermion> y0(
N5);
191 multi1d<LatticeFermion> y1(
N5);
195 for(
int s = 0;
s <
N5;
s++) {
196 psi[
s] = Real(2)*y0[
s] - y1[
s];
201 QDPIO::cerr <<
"Unknown case reached in LinearExtrapPredictor " << std::endl;
221 QDPIO::cout <<
"LinearExtrapolationPredictor: registering new solution. ";
223 QDPIO::cout <<
" number of vectors stored is = " <<
chrono_buf->size() << std::endl;
Primary include file for CHROMA library code.
Chronological predictor for HMC.
Abstract interface for a Chronological Solution predictor in 5D.
Abstract interface for a Chronological Solution predictor.
Circular buffer of arrays.
Class for counted reference semantics.
Linear Operator to arrays.
Class for counted reference semantics.
Asqtad Staggered-Dirac operator.
multi1d< LatticeFermion > chi(Ncb)
multi1d< LatticeFermion > s(Ncb)