7
#include <libciomr/libciomr.h>
10
#define MIN0(a,b) (((a)<(b)) ? (a) : (b))
11
#define MAX0(a,b) (((a)>(b)) ? (a) : (b))
14
** iwl_rdtwo(): read two electron ints from the given file.
15
** The "iwl" stands for "integrals with labels," and this is the proposed
16
** new standard for storing two-electron integrals and their (absolute)
19
** \param itap = unit to read from
20
** \param ints = two electron integrals (already allocated)
21
** \param ioff = the old ioff array for lexical ordering
22
** \param norbs = number of orbitals
23
** \param nfzc = number of frozen core orbitals
24
** \param nfzv = number of frozen virtual orbitals
25
** \param printflg = print integrals as they're read
26
** \param outfile = output file pointer
28
** David Sherrill, 1995
31
void iwl_rdtwo(int itap, double *ints, int *ioff, int norbs,
32
int nfzc, int nfzv, int printflg, FILE *outfile)
36
iwl_buf_init(&Buf, itap, 0.0, 1, 1);
37
if ((nfzc == 0) && (nfzv == 0))
38
iwl_buf_rd_all(&Buf, ints, ioff, ioff, 0, ioff, printflg, outfile);
40
iwl_buf_rd_all_act(&Buf, ints, ioff, ioff, 0, ioff, nfzc, norbs-nfzv-1,
42
iwl_buf_close(&Buf, 1);