ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
exx_lri_detail.h
Go to the documentation of this file.
1//=======================
2// AUTHOR : Huanjing Gong
3// DATE : 2026-03-17
4//=======================
5
6#ifndef EXXLRIDETAIL_H
7#define EXXLRIDETAIL_H
8
11
12#include <cmath>
13#include <vector>
14#include <map>
15#include <string>
16
17#if defined(__GLIBC__)
18#include <malloc.h>
19#endif
20
21 class UnitCell;
22 class K_Vectors;
23
24namespace ExxLriDetail
25{
27 = std::map<Conv_Coulomb_Pot_K::Coulomb_Type, std::vector<std::map<std::string, std::string>>>;
29inline void trim_malloc_cache()
30{
31#if defined(__GLIBC__)
32 malloc_trim(0);
33#endif
34}
35
36extern double default_spencer_rcut(const UnitCell& ucell, const K_Vectors& kv);
37
39 const UnitCell& ucell,
40 const K_Vectors& kv,
41 bool* synthesized_rcut = nullptr);
42}
43
44#endif
Class for k-points management.
Definition klist.h:20
Provide the basic information about unitcell.
Definition unitcell.h:16
std::map< Conv_Coulomb_Pot_K::Coulomb_Type, std::vector< std::map< std::string, std::string > > > CoulombParam
Definition coulomb_config.h:29
Definition exx_lri_detail.cpp:18
void trim_malloc_cache()
Definition exx_lri_detail.h:28
double default_spencer_rcut(const UnitCell &ucell, const K_Vectors &kv)
Definition exx_lri_detail.cpp:20
CoulombParam build_center2_cut_coulomb_param(const CoulombParam &coulomb_param, const UnitCell &ucell, const K_Vectors &kv, bool *synthesized_rcut)
Definition exx_lri_detail.cpp:25
std::map< Conv_Coulomb_Pot_K::Coulomb_Type, std::vector< std::map< std::string, std::string > > > CoulombParam
Definition exx_lri_detail.h:26