mirror of
https://github.com/paboyle/Grid.git
synced 2025-06-13 04:37:05 +01:00
Hadrons: object creation that get properly captured by the memory profiler
This commit is contained in:
@ -118,9 +118,8 @@ void TDWF<FImpl>::setup(void)
|
||||
auto &grb5 = *env().getRbGrid(par().Ls);
|
||||
std::vector<Complex> boundary = strToVec<Complex>(par().boundary);
|
||||
typename DomainWallFermion<FImpl>::ImplParams implParams(boundary);
|
||||
envCreate(FMat, getName(), par().Ls,
|
||||
new DomainWallFermion<FImpl>(U, g5, grb5, g4, grb4, par().mass,
|
||||
par().M5, implParams));
|
||||
envCreateDerived(FMat, DomainWallFermion<FImpl>, getName(), par().Ls, U, g5,
|
||||
grb5, g4, grb4, par().mass, par().M5, implParams);
|
||||
}
|
||||
|
||||
// execution ///////////////////////////////////////////////////////////////////
|
||||
|
@ -111,9 +111,8 @@ void TWilson<FImpl>::setup(void)
|
||||
auto &gridRb = *env().getRbGrid();
|
||||
std::vector<Complex> boundary = strToVec<Complex>(par().boundary);
|
||||
typename WilsonFermion<FImpl>::ImplParams implParams(boundary);
|
||||
envCreate(FMat, getName(), 1, new WilsonFermion<FImpl>(U, grid, gridRb,
|
||||
par().mass,
|
||||
implParams));
|
||||
envCreateDerived(FMat, WilsonFermion<FImpl>, getName(), 1, U, grid, gridRb,
|
||||
par().mass, implParams);
|
||||
}
|
||||
|
||||
// execution ///////////////////////////////////////////////////////////////////
|
||||
|
@ -114,7 +114,7 @@ void TRBPrecCG<FImpl>::setup(void)
|
||||
|
||||
schurSolver(mat, source, sol);
|
||||
};
|
||||
envCreate(SolverFn, getName(), Ls, new SolverFn(solver));
|
||||
envCreate(SolverFn, getName(), Ls, solver);
|
||||
env().addOwnership(getName(), par().action);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user