Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clean up MDWF QUDA interface #71

Open
wants to merge 1 commit into
base: devel
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions lib/actions/ferm/invert/quda_solvers/syssolver_linop_nef_quda_w.cc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*! \file
* \brief Solve a MdagM*psi=chi linear system by CG2
*/
* \brief Solve a MdagM*psi=chi linear system by CG2
*/

#include "actions/ferm/invert/syssolver_linop_factory.h"
#include "actions/ferm/invert/syssolver_linop_aggregate.h"
Expand Down Expand Up @@ -32,11 +32,11 @@ namespace Chroma
bool registered = false;
}

LinOpSystemSolverArray<LatticeFermion>* createFerm(XMLReader& xml_in,
const std::string& path,
Handle< FermState< LatticeFermion, multi1d<LatticeColorMatrix>, multi1d<LatticeColorMatrix> > > state,
Handle< LinearOperatorArray<LatticeFermion> > A)
LinOpSystemSolverArray<LatticeFermion>* createFerm(XMLReader& xml_in,
const std::string& path,
Handle< FermState< LatticeFermion, multi1d<LatticeColorMatrix>, multi1d<LatticeColorMatrix> > > state,
Handle< LinearOperatorArray<LatticeFermion> > A)
{
return new LinOpSysSolverQUDANEF(A, state,SysSolverQUDANEFParams(xml_in, path));
}
Expand All @@ -46,10 +46,10 @@ namespace Chroma
{
bool success = true;
if (! registered)
{
success &= Chroma::TheLinOpFermSystemSolverArrayFactory::Instance().registerObject(name, createFerm);
registered = true;
}
{
success &= Chroma::TheLinOpFermSystemSolverArrayFactory::Instance().registerObject(name, createFerm);
registered = true;
}
return success;
}
}
Expand All @@ -76,8 +76,8 @@ namespace Chroma
#else
//not yet
//for(unsigned int s=0; s<quda_inv_param.Ls; s++){
// spinorIn[s]=GetMemoryPtr( chi_s[s].getId() );
// spinorOut[s]=GetMemoryPtr( psi_s[s].getId() );
// spinorIn[s]=GetMemoryPtr( chi_s[s].getId() );
// spinorOut[s]=GetMemoryPtr( psi_s[s].getId() );
//}
#endif

Expand All @@ -100,8 +100,8 @@ namespace Chroma
#else
//not yet implemented
//for(unsigned int s=0; s<quda_inv_param.Ls; s++){
// spinorIn[s]=GetMemoryPtr( chi_s[s].getId() );
// spinorOut[s]=GetMemoryPtr( psi_s[s].getId() );
// spinorIn[s]=GetMemoryPtr( chi_s[s].getId() );
// spinorOut[s]=GetMemoryPtr( psi_s[s].getId() );
//}
#endif

Expand Down
Loading