20 APP_ABORT(
"SkParserBase::compute_grid(..) : Initial parse failed");
34 kgrid.resize(Nx * Ny * Nz);
46 if (
skraw.size() != kgridraw1.size())
47 APP_ABORT(
"SkParserBase::set_grid: S(k) and k-grid don't match");
57 if (
skraw.size() != kgridraw1.size())
58 APP_ABORT(
"SkParserBase::set_grid: S(k) and k-grid don't match");
77 APP_ABORT(
"SkParserBase::compute_sk() : Initial parse failed");
81 APP_ABORT(
"SkParserBase::compute_sk() : Kgrid and SK not the same size");
94 sk.resize(Nx * Ny * Nz);
95 skerr.resize(Nx * Ny * Nz);
103 newindex = nx * Ny * Nz + ny * Nz + nz;
107 skerr[newindex] = 0.0;
115 newindex = nx * Ny * Nz + ny * Nz + nz;
std::vector< RealType > skerr_raw
T rmin() const
return the first grid point
void get_sk(std::vector< RealType > &sk, std::vector< RealType > &skerr)
void set(T ri, T rf, int n) override
Set the grid given the parameters.
helper functions for EinsplineSetBuilder
QTBase::RealType RealType
std::vector< PosType > kgridraw
std::vector< RealType > skraw
std::vector< PosType > kgrid
QMCTraits::IndexType IndexType
#define APP_ABORT(msg)
Widely used but deprecated fatal error macros from legacy code.
OHMMS_INDEXTYPE IndexType
define other types
int size() const
returns the size of the grid
T rmax() const
return the last grid point
void get_grid(Grid_t &xgrid, Grid_t &ygrid, Grid_t &zgrid)
void set_grid(const std::vector< PosType > &gridpoints)
void get_gridinfo_from_posgrid(const std::vector< PosType > &posgridlist, const IndexType &axis, RealType &lx, RealType &rx, RealType &dx, IndexType &Nx)
std::vector< RealType > sk
std::vector< RealType > skerr