Class GB2DMGridFn

Inheritance Relationships

Base Type

Derived Type

Class Documentation

class GB2DMGridFn : public GBCalculator

Base class for grid calculators that require a double loop over all basis functions.

Subclassed by GB2DMGridHartreeFn

Public Functions

GB2DMGridFn(long max_shell_type)
void reset(long shell_type0, long shell_type1, const double *r0, const double *r1, const double *point)

Reset calculator for a new pair of contractions.

Parameters
  • shell_type0: Shell type of first contraction.
  • shell_type1: Shell type of second contraction.
  • r0: Center of the first contraction. (size=3)
  • r1: Center of the second contraction. (size=3)
  • point: Cartesian coordinates of the grid point. (size=3)

void cart_to_pure()
const long get_shell_type0() const
const long get_shell_type1() const
virtual void add(double coeff, double alpha0, double alpha1, const double *scales0, const double *scales1) = 0

Add contributions to work array for current grid point and given pair of primitive shells.

Parameters
  • coeff: Product of contraction coefficients of current primitive shells.
  • alpha0: Exponent of the first shell.
  • alpha1: Exponent of the second shell.
  • scales0: Normalization prefactors for primitives in first shell.
  • scales1: Normalization prefactors for primitives in second shell.

Protected Attributes

long shell_type0
long shell_type1
const double *r0
const double *r1
const double *point
IterPow2 i2p