~ubuntu-branches/ubuntu/quantal/psicode/quantal

« back to all changes in this revision

Viewing changes to src/bin/ccsort/e_spinad.c

  • Committer: Bazaar Package Importer
  • Author(s): Michael Banck
  • Date: 2006-09-10 14:01:33 UTC
  • Revision ID: james.westby@ubuntu.com-20060910140133-ib2j86trekykfsfv
Tags: upstream-3.2.3
ImportĀ upstreamĀ versionĀ 3.2.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include <stdio.h>
 
2
#include <stdlib.h>
 
3
#include <libciomr/libciomr.h>
 
4
#include <libdpd/dpd.h>
 
5
#include "MOInfo.h"
 
6
#include "Params.h"
 
7
#define EXTERN
 
8
#include "globals.h"
 
9
 
 
10
void e_spinad(void)
 
11
{
 
12
  dpdbuf4 E, E1;
 
13
 
 
14
  if(params.ref == 0) { /*** RHF ***/
 
15
    dpd_buf4_init(&E, CC_EINTS, 0, 11, 0, 11, 0, 0, "E <ai|jk>");
 
16
    dpd_buf4_scmcopy(&E, CC_EINTS, "E 2<ai|jk> - <ai|kj>", 2);
 
17
    dpd_buf4_sort(&E, CC_TMP0, pqsr, 11, 0, "E <ai|kj>");
 
18
    dpd_buf4_close(&E);
 
19
 
 
20
    dpd_buf4_init(&E, CC_EINTS, 0, 11, 0, 11, 0, 0, "E 2<ai|jk> - <ai|kj>");
 
21
    dpd_buf4_init(&E1, CC_TMP0, 0, 11, 0, 11, 0, 0, "E <ai|kj>");
 
22
    dpd_buf4_axpy(&E1, &E, -1);
 
23
    dpd_buf4_close(&E1);
 
24
    dpd_buf4_close(&E);
 
25
 
 
26
  }
 
27
}