![]() |
MolSSI Integral Reference Project
|
Functions related to gaussians and shells. More...

Functions | |
| int | mirp_iterate_gaussian (int *lmn) |
| Find the next gaussian in the ordering. More... | |
| void | mirp_gaussian_fill_lmn (int am, int *lmn) |
| Create all lmn combinations for a given angular momentum. More... | |
| void | mirp_normalize_shell (int am, int nprim, int ngeneral, arb_srcptr alpha, arb_srcptr coeff, arb_ptr coeff_out, slong working_prec) |
| Normalize a shell (double precision) More... | |
Functions related to gaussians and shells.
| void mirp_gaussian_fill_lmn | ( | int | am, |
| int * | lmn | ||
| ) |
Create all lmn combinations for a given angular momentum.
This fills in the lmn parameter will all combinations of l,m, and n that are valid for the given angular momentum. They will be in order.
lmn parameter must be allocated and large enough to hold 3*number of cartesian components for the given am | [in] | am | The angular momentum |
| [out] | lmn | Place to put all the lmn combinations |
| int mirp_iterate_gaussian | ( | int * | lmn | ) |
Find the next gaussian in the ordering.
Obtain the next l, m, and n parameters of a gaussian in the internal MIRP ordering
For example, if lmn = {2, 1, 0} is input, the result will be {2, 0, 1}.
If the return value of this function is 0, the contents of lmn are not defined.
| [in,out] | lmn | The l, m, and n parameters of a gaussian basis function |
lmn is a valid gaussian, 0 if it is not (i.e., we have iterated past the end of the complete set of gaussians) | void mirp_normalize_shell | ( | int | am, |
| int | nprim, | ||
| int | ngeneral, | ||
| arb_srcptr | alpha, | ||
| arb_srcptr | coeff, | ||
| arb_ptr | coeff_out, | ||
| slong | working_prec | ||
| ) |
Normalize a shell (double precision)
This function normalizes the contraction coefficients of the shell.
| [in] | am | The angular momentum of the shell (0 = s, 1 = p, etc) |
| [in] | nprim | Number of primitives in the shell |
| [in] | ngeneral | Number of general contractions in the shell |
| [in] | alpha | The exponents of the shell (length nprim) |
| [in] | coeff | The (unnormalized) contraction coefficients (length nprim * ngeneral) |
| [out] | coeff_out | Normalized contraction coefficients (length nprim * ngeneral) |
| [in] | working_prec | The working precision (binary digits/bits) to use in the calculation |
1.8.13