3
\brief Enter brief description of file here
6
#include <libdpd/dpd.h>
12
namespace psi { namespace cclambda {
14
void sort_amps(int L_irr)
19
dpd_buf4_init(&L2, CC_LAMBDA, L_irr, 0, 5, 0, 5, 0, "LIjAb");
20
dpd_buf4_scmcopy(&L2, CC_LAMBDA, "2 LIjAb - LIjBa", 2);
21
dpd_buf4_sort_axpy(&L2, CC_LAMBDA, pqsr, 0, 5, "2 LIjAb - LIjBa", -1);
24
dpd_buf4_init(&L2, CC_LAMBDA, L_irr, 0, 5, 0, 5, 0, "LIjAb");
25
dpd_buf4_sort(&L2, CC_LAMBDA, prqs, 10, 10, "LIAjb");
26
dpd_buf4_sort(&L2, CC_LAMBDA, psqr, 10, 10, "LIbjA");
29
dpd_buf4_init(&L2, CC_LAMBDA, L_irr, 10, 10, 10, 10, 0, "LIAjb");
30
dpd_buf4_scmcopy(&L2, CC_LAMBDA, "2 LIAjb - LIbjA", 2);
31
dpd_buf4_sort_axpy(&L2, CC_LAMBDA, psrq, 10, 10, "2 LIAjb - LIbjA", -1);
34
dpd_buf4_init(&L2, CC_LAMBDA, L_irr, 0, 5, 0, 5, 0, "LIjAb");
35
dpd_buf4_sort(&L2, CC_LAMBDA, qpsr, 0, 5, "LiJaB");
38
dpd_buf4_init(&L2, CC_LAMBDA, L_irr, 0, 5, 0, 5, 0, "LiJaB");
39
dpd_buf4_sort(&L2, CC_LAMBDA, prqs, 10, 10, "LiaJB");
42
dpd_buf4_init(&L2, CC_LAMBDA, L_irr, 10, 10, 10, 10, 0, "LIAjb");
43
dpd_buf4_sort(&L2, CC_LAMBDA, rqps, 10, 10, "LjAIb");
47
if(params.ref == 1) { /** ROHF **/
48
dpd_buf4_init(&L2, CC_LAMBDA, L_irr, 0, 5, 0, 5, 0, "LIjAb");
49
dpd_buf4_sort(&L2, CC_LAMBDA, prqs, 10, 10, "LIAjb");
50
dpd_buf4_sort(&L2, CC_LAMBDA, psqr, 10, 10, "LIbjA");
51
dpd_buf4_sort(&L2, CC_LAMBDA, qpsr, 0, 5, "LiJaB");
54
dpd_buf4_init(&L2, CC_LAMBDA, L_irr, 0, 5, 0, 5, 0, "LiJaB");
55
dpd_buf4_sort(&L2, CC_LAMBDA, prqs, 10, 10, "LiaJB");
58
dpd_buf4_init(&L2, CC_LAMBDA, L_irr, 10, 10, 10, 10, 0, "LIAjb");
59
dpd_buf4_sort(&L2, CC_LAMBDA, rqps, 10, 10, "LjAIb");
62
/* Build L2IAJB List */
63
dpd_buf4_init(&L2, CC_LAMBDA, L_irr, 0, 5, 2, 7, 0, "LIJAB");
64
dpd_buf4_sort(&L2, CC_LAMBDA, prqs, 10, 10, "LIAJB");
66
/* Build L2iajb List */
67
dpd_buf4_init(&L2, CC_LAMBDA, L_irr, 0, 5, 2, 7, 0, "Lijab");
68
dpd_buf4_sort(&L2, CC_LAMBDA, prqs, 10, 10, "Liajb");
71
else if(params.ref == 2) { /** UHF **/
73
dpd_buf4_init(&L2, CC_LAMBDA, L_irr, 22, 28, 22, 28, 0, "LIjAb");
74
dpd_buf4_sort(&L2, CC_LAMBDA, qpsr, 23, 29, "LiJaB");
77
dpd_buf4_init(&L2, CC_LAMBDA, L_irr, 0, 5, 2, 7, 0, "LIJAB");
78
dpd_buf4_sort(&L2, CC_LAMBDA, prqs, 20, 20, "LIAJB");
81
dpd_buf4_init(&L2, CC_LAMBDA, L_irr, 10, 15, 12, 17, 0, "Lijab");
82
dpd_buf4_sort(&L2, CC_LAMBDA, prqs, 30, 30, "Liajb");
85
dpd_buf4_init(&L2, CC_LAMBDA, L_irr, 22, 28, 22, 28, 0, "LIjAb");
86
dpd_buf4_sort(&L2, CC_LAMBDA, prqs, 20, 30, "LIAjb");
89
dpd_buf4_init(&L2, CC_LAMBDA, L_irr, 23, 29, 23, 29, 0, "LiJaB");
90
dpd_buf4_sort(&L2, CC_LAMBDA, prqs, 30, 20, "LiaJB");
93
dpd_buf4_init(&L2, CC_LAMBDA, L_irr, 20, 30, 20, 30, 0, "LIAjb");
94
dpd_buf4_sort(&L2, CC_LAMBDA, psrq, 24, 27, "LIbjA");
95
dpd_buf4_sort(&L2, CC_LAMBDA, rqps, 27, 24, "LjAIb");
102
}} // namespace psi::cclambda