diff --git a/lib/algorithms/CoarsenedMatrix.h b/lib/algorithms/CoarsenedMatrix.h index 8b476603..957607b3 100644 --- a/lib/algorithms/CoarsenedMatrix.h +++ b/lib/algorithms/CoarsenedMatrix.h @@ -129,7 +129,7 @@ public: blockProject(iProj,subspace[i],subspace); eProj=zero; parallel_for(int ss=0;ssoSites();ss++){ - eProj._odata[ss](i)=CComplex(1.0); + eProj[ss](i)=CComplex(1.0); } eProj=eProj - iProj; std::cout<_is_local&&SE->_permute) { - permute(nbr,in._odata[SE->_offset],ptype); + permute(nbr,in[SE->_offset],ptype); } else if(SE->_is_local) { - nbr = in._odata[SE->_offset]; + nbr = in[SE->_offset]; } else { nbr = Stencil.CommBuf()[SE->_offset]; } - res = res + A[point]._odata[ss]*nbr; + res = res + A[point][ss]*nbr; } - vstream(out._odata[ss],res); + vstream(out[ss],res); } return norm2(out); }; @@ -387,9 +387,9 @@ public: parallel_for(int ss=0;ssoSites();ss++){ for(int j=0;joSites();s++) { - // A[8]._odata[s]=val._odata[s]; + // A[8][s]=val[s]; // } } void ForceHermitian(void) { diff --git a/lib/algorithms/FFT.h b/lib/algorithms/FFT.h index e63ff123..959dfb2c 100644 --- a/lib/algorithms/FFT.h +++ b/lib/algorithms/FFT.h @@ -217,8 +217,8 @@ public: FFTW_plan p; { - FFTW_scalar *in = (FFTW_scalar *)&pgbuf._odata[0]; - FFTW_scalar *out= (FFTW_scalar *)&pgbuf._odata[0]; + FFTW_scalar *in = (FFTW_scalar *)&pgbuf[0]; + FFTW_scalar *out= (FFTW_scalar *)&pgbuf[0]; p = FFTW::fftw_plan_many_dft(rank,n,howmany, in,inembed, istride,idist, @@ -261,8 +261,8 @@ public: thread_loop_in_region( (int idx=0;idx::fftw_execute_dft(p,in,out); } }); diff --git a/lib/algorithms/iterative/AdefGeneric.h b/lib/algorithms/iterative/AdefGeneric.h index 2eff5871..30c74dde 100644 --- a/lib/algorithms/iterative/AdefGeneric.h +++ b/lib/algorithms/iterative/AdefGeneric.h @@ -90,7 +90,7 @@ class TwoLevelFlexiblePcg : public LinearFunction void operator() (const Field &src, Field &psi){ void operator() (const Field &src, Field &psi){ - psi.checkerboard = src.checkerboard; + psi.Checkerboard() = src.Checkerboard(); grid = src._grid; RealD f; diff --git a/lib/algorithms/iterative/BlockConjugateGradient.h b/lib/algorithms/iterative/BlockConjugateGradient.h index b2a268b1..7af65dfb 100644 --- a/lib/algorithms/iterative/BlockConjugateGradient.h +++ b/lib/algorithms/iterative/BlockConjugateGradient.h @@ -143,7 +143,7 @@ public: std::cout< &Linop, const Field &src, Field &psi) { - psi.checkerboard = src.checkerboard; + psi.Checkerboard() = src.Checkerboard(); conformable(psi, src); RealD cp, c, a, d, b, ssq, qq, b_pred; diff --git a/lib/algorithms/iterative/ConjugateGradientMixedPrec.h b/lib/algorithms/iterative/ConjugateGradientMixedPrec.h index e464916c..9eb83ba4 100644 --- a/lib/algorithms/iterative/ConjugateGradientMixedPrec.h +++ b/lib/algorithms/iterative/ConjugateGradientMixedPrec.h @@ -67,18 +67,18 @@ public: GridStopWatch TotalTimer; TotalTimer.Start(); - int cb = src_d_in.checkerboard; - sol_d.checkerboard = cb; + int cb = src_d_in.Checkerboard(); + sol_d.Checkerboard() = cb; RealD src_norm = norm2(src_d_in); RealD stop = src_norm * Tolerance*Tolerance; GridBase* DoublePrecGrid = src_d_in._grid; FieldD tmp_d(DoublePrecGrid); - tmp_d.checkerboard = cb; + tmp_d.Checkerboard() = cb; FieldD tmp2_d(DoublePrecGrid); - tmp2_d.checkerboard = cb; + tmp2_d.Checkerboard() = cb; FieldD src_d(DoublePrecGrid); src_d = src_d_in; //source for next inner iteration, computed from residual during operation @@ -86,10 +86,10 @@ public: RealD inner_tol = InnerTolerance; FieldF src_f(SinglePrecGrid); - src_f.checkerboard = cb; + src_f.Checkerboard() = cb; FieldF sol_f(SinglePrecGrid); - sol_f.checkerboard = cb; + sol_f.Checkerboard() = cb; ConjugateGradient CG_f(inner_tol, MaxInnerIterations); CG_f.ErrorOnNoConverge = false; diff --git a/lib/algorithms/iterative/ConjugateGradientReliableUpdate.h b/lib/algorithms/iterative/ConjugateGradientReliableUpdate.h index 9f46912e..3ce2e887 100644 --- a/lib/algorithms/iterative/ConjugateGradientReliableUpdate.h +++ b/lib/algorithms/iterative/ConjugateGradientReliableUpdate.h @@ -76,7 +76,7 @@ public: LinearOperatorBase *Linop_f_use = &Linop_f; bool using_fallback = false; - psi.checkerboard = src.checkerboard; + psi.Checkerboard() = src.Checkerboard(); conformable(psi, src); RealD cp, c, a, d, b, ssq, qq, b_pred; @@ -116,7 +116,7 @@ public: //Single prec initialization FieldF r_f(SinglePrecGrid); - r_f.checkerboard = r.checkerboard; + r_f.Checkerboard() = r.Checkerboard(); precisionChange(r_f, r); FieldF psi_f(r_f); diff --git a/lib/algorithms/iterative/ImplicitlyRestartedLanczos.h b/lib/algorithms/iterative/ImplicitlyRestartedLanczos.h index 897eb52b..a960b634 100644 --- a/lib/algorithms/iterative/ImplicitlyRestartedLanczos.h +++ b/lib/algorithms/iterative/ImplicitlyRestartedLanczos.h @@ -64,11 +64,11 @@ void basisRotate(std::vector &basis,Eigen::MatrixXd& Qt,int j0, int j1, i for(int j=j0; j &basis,Eigen::MatrixXd& Qt,in typedef typename Field::vector_object vobj; GridBase* grid = basis[0]._grid; - result.checkerboard = basis[0].checkerboard; + result.Checkerboard() = basis[0].Checkerboard(); parallel_for(int ss=0;ss < grid->oSites();ss++){ vobj B = zero; for(int k=k0; k Op(_FineOp); for(int k=1;k IRL(ChebyOp,Op,Nstop,Nk,Nm,resid,MaxIt,betastp,MinRes); - FineField src(_FineGrid); src=1.0; src.checkerboard = _checkerboard; + FineField src(_FineGrid); src=1.0; src.Checkerboard() = _checkerboard; int Nconv; IRL.calc(evals_fine,_Aggregate.subspace,src,Nconv,false); diff --git a/lib/algorithms/iterative/SchurRedBlack.h b/lib/algorithms/iterative/SchurRedBlack.h index 46a03aaf..a915d8d0 100644 --- a/lib/algorithms/iterative/SchurRedBlack.h +++ b/lib/algorithms/iterative/SchurRedBlack.h @@ -135,30 +135,30 @@ public: ///////////////////////////////////////////////////// // src_o = (source_o - Moe MeeInv source_e) ///////////////////////////////////////////////////// - _Matrix.MooeeInv(src_e,tmp); assert( tmp.checkerboard ==Even); - _Matrix.Meooe (tmp,Mtmp); assert( Mtmp.checkerboard ==Odd); - tmp=src_o-Mtmp; assert( tmp.checkerboard ==Odd); + _Matrix.MooeeInv(src_e,tmp); assert( tmp.Checkerboard() ==Even); + _Matrix.Meooe (tmp,Mtmp); assert( Mtmp.Checkerboard() ==Odd); + tmp=src_o-Mtmp; assert( tmp.Checkerboard() ==Odd); - //src_o = tmp; assert(src_o.checkerboard ==Odd); + //src_o = tmp; assert(src_o.Checkerboard() ==Odd); _Matrix.Mooee(tmp,src_o); // Extra factor of "m" in source from dumb choice of matrix norm. ////////////////////////////////////////////////////////////// // Call the red-black solver ////////////////////////////////////////////////////////////// std::cout<