ergo
basis_func_pair_list_1el.h
Go to the documentation of this file.
1 /* Ergo, version 3.8, a program for linear scaling electronic structure
2  * calculations.
3  * Copyright (C) 2019 Elias Rudberg, Emanuel H. Rubensson, Pawel Salek,
4  * and Anastasia Kruchinina.
5  *
6  * This program is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation, either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program. If not, see <http://www.gnu.org/licenses/>.
18  *
19  * Primary academic reference:
20  * Ergo: An open-source program for linear-scaling electronic structure
21  * calculations,
22  * Elias Rudberg, Emanuel H. Rubensson, Pawel Salek, and Anastasia
23  * Kruchinina,
24  * SoftwareX 7, 107 (2018),
25  * <http://dx.doi.org/10.1016/j.softx.2018.03.005>
26  *
27  * For further information about Ergo, see <http://www.ergoscf.org>.
28  */
29 
38 #ifndef BASIS_FUNC_PAIR_LIST_1EL_HEADER
39 #define BASIS_FUNC_PAIR_LIST_1EL_HEADER
40 
41 
42 #include "realtype.h"
43 #include "basisinfo.h"
44 
45 
46 
47 typedef struct
48 {
49  int index_1;
50  int index_2;
52 
53 int
55  ergo_real threshold,
56  ergo_real boxSize,
57  ergo_real maxCharge,
58  basis_func_index_pair_struct_1el* result_basisFuncPairList,
59  int resultMaxCount);
60 
61 int
63  ergo_real threshold,
64  ergo_real boxSize,
65  basis_func_index_pair_struct_1el* result_basisFuncPairList,
66  int resultMaxCount);
67 
68 
69 #endif
template_blas_sqrt
Treal template_blas_sqrt(Treal x)
realtype.h
Definition of the main floating-point datatype used; the ergo_real type.
BasisInfoStruct::noOfBasisFuncs
int noOfBasisFuncs
Definition: basisinfo.h:120
pi.h
Constants for the number pi and some related numbers like sqrt(pi).
basis_func_extent_1el.h
Code for determining extent of basis functions, for 1-electron integral evaluation.
DistributionSpecStruct
Definition: basisinfo.h:50
compute_extent_for_all_basis_funcs_1el
int compute_extent_for_all_basis_funcs_1el(const BasisInfoStruct &basisInfo, ergo_real *basisFuncExtentList, ergo_real maxCharge, ergo_real threshold)
Definition: basis_func_extent_1el.cc:49
box_item_struct::originalIndex
int originalIndex
Definition: box_system.h:48
get_basis_func_pair_list_simple
int get_basis_func_pair_list_simple(const BasisInfoStruct &basisInfo, ergo_real threshold, ergo_real boxSize, basis_func_index_pair_struct_1el *result_basisFuncPairList, int resultMaxCount)
Definition: basis_func_pair_list_1el.cc:184
LOG_CAT_ERROR
#define LOG_CAT_ERROR
Definition: output.h:47
ergo_real
double ergo_real
Definition: realtype.h:69
get_basis_func_pair_list_1el_for_V
int get_basis_func_pair_list_1el_for_V(const BasisInfoStruct &basisInfo, ergo_real threshold, ergo_real boxSize, ergo_real maxCharge, basis_func_index_pair_struct_1el *result_basisFuncPairList, int resultMaxCount)
Definition: basis_func_pair_list_1el.cc:52
box_system.h
BoxSystem class representing a hierarchical data structure of boxes in 3D space (an oct-tree).
integrals_general.h
General functionality related to computation of integrals involving Gaussian basis functions.
BasisInfoStruct
Definition: basisinfo.h:112
get_product_simple_primitives
int get_product_simple_primitives(const BasisInfoStruct &basisInfoA, int iA, const BasisInfoStruct &basisInfoB, int iB, DistributionSpecStruct resultList[], int maxCount, ergo_real threshold)
Definition: integrals_general.cc:268
template_blas_fabs
Treal template_blas_fabs(Treal x)
get_basis_func_pair_list_1el_for_V
int get_basis_func_pair_list_1el_for_V(const BasisInfoStruct &basisInfo, ergo_real threshold, ergo_real boxSize, ergo_real maxCharge, basis_func_index_pair_struct_1el *result_basisFuncPairList, int resultMaxCount)
Definition: basis_func_pair_list_1el.cc:52
pi
#define pi
Definition: pi.h:57
basis_func_index_pair_struct_1el::index_2
int index_2
Definition: basis_func_pair_list_1el.h:50
basis_func_pair_list_1el.h
Functions for setting up lists of non-negligible basis function pairs, for 1-electron integrals.
box_item_struct
Definition: box_system.h:46
POLY_PRODUCT_MAX_DISTRS
const int POLY_PRODUCT_MAX_DISTRS
Definition: integrals_general.h:48
Util::TimeMeter::print
void print(int area, const char *routine)
Definition: utilities.h:111
utilities.h
Basic OS access utilities.
A
#define A
LOG_CAT_INFO
#define LOG_CAT_INFO
Definition: output.h:49
basisinfo.h
Code for setting up basis functions starting from shells.
BasisInfoStruct::basisFuncList
BasisFuncStruct * basisFuncList
Definition: basisinfo.h:121
BasisFuncStruct::centerCoords
Vector3D centerCoords
Definition: basisinfo.h:90
basis_func_index_pair_struct_1el::index_1
int index_1
Definition: basis_func_pair_list_1el.h:49
LOG_AREA_INTEGRALS
#define LOG_AREA_INTEGRALS
Definition: output.h:60
get_largest_simple_integral
ergo_real get_largest_simple_integral(const BasisInfoStruct &basisInfo)
Computes the largest integral of any primitive in the basis set, when any x y z factors are ignored.
Definition: integrals_general.cc:343
BoxSystem
Definition: box_system.h:71
BoxSystem::get_items_near_point
int get_items_near_point(const box_item_struct *itemList, const ergo_real *coords, ergo_real distance, int *resultOrgIndexList) const
Goes through existning box system to find all items within specified distance from given reference po...
Definition: box_system.cc:430
get_basis_func_extent_list
int get_basis_func_extent_list(const BasisInfoStruct &basisInfo, ergo_real *basisFuncExtentList, ergo_real maxAbsValue)
Computes an "extent" for each basis function in the basis set.
Definition: integrals_general.cc:402
distance
static ergo_real distance(const ergo_real *a, const ergo_real *b)
Coomputes distance between two points, they do not need to be of the Vector3D type.
Definition: dft_common.cc:526
basis_func_index_pair_struct_1el
Definition: basis_func_pair_list_1el.h:48
get_basis_func_pair_list_simple
int get_basis_func_pair_list_simple(const BasisInfoStruct &basisInfo, ergo_real threshold, ergo_real boxSize, basis_func_index_pair_struct_1el *result_basisFuncPairList, int resultMaxCount)
Definition: basis_func_pair_list_1el.cc:184
do_output
void do_output(int logCategory, int logArea, const char *format,...)
Definition: output.cc:53
Util::TimeMeter
Time-measuring class.
Definition: utilities.h:80
output.h
Functionality for writing output messages to a text file.
BoxSystem::create_box_system
int create_box_system(box_item_struct *itemList, int noOfItems, ergo_real toplevelBoxSize)
Creates the box system.
Definition: box_system.cc:74