~ubuntu-branches/ubuntu/trusty/psicode/trusty

« back to all changes in this revision

Viewing changes to src/bin/ccdensity/add_core_ROHF.c

  • Committer: Bazaar Package Importer
  • Author(s): Michael Banck, Michael Banck, Daniel Leidert
  • Date: 2009-02-23 00:12:02 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20090223001202-rutldoy3dimfpesc
Tags: 3.4.0-1
* New upstream release.

[ Michael Banck ]
* debian/patches/01_DESTDIR.dpatch: Refreshed.
* debian/patches/02_FHS.dpatch: Removed, applied upstream.
* debian/patches/03_debian_docdir: Likewise.
* debian/patches/04_man.dpatch: Likewise.
* debian/patches/06_466828_fix_gcc_43_ftbfs.dpatch: Likewise.
* debian/patches/07_464867_move_executables: Fixed and refreshed.
* debian/patches/00list: Adjusted.
* debian/control: Improved description.
* debian/patches-held: Removed.
* debian/rules (install/psi3): Do not ship the ruby bindings for now.

[ Daniel Leidert ]
* debian/rules: Fix txtdir via DEB_MAKE_INSTALL_TARGET.
* debian/patches/01_DESTDIR.dpatch: Refreshed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#include <stdio.h>
2
 
#include <libciomr/libciomr.h>
3
 
#include <libiwl/iwl.h>
4
 
#define EXTERN
5
 
#include "globals.h"
6
 
 
7
 
void add_core_ROHF(struct iwlbuf *OutBuf)
8
 
{
9
 
  int p,q,m,n;
10
 
  int nmo, nfzv, nfzc;
11
 
  double value;
12
 
 
13
 
  nmo = moinfo.nmo;
14
 
  nfzv = moinfo.nfzv;
15
 
  nfzc = moinfo.nfzc;
16
 
 
17
 
  for(p=nfzc; p < (nmo - nfzv); p++) {
18
 
      for(q=nfzc; q < (nmo - nfzv); q++) {
19
 
          value = moinfo.opdm[p][q];
20
 
          for(m=0; m < nfzc; m++) {
21
 
              
22
 
              iwl_buf_wrt_val(OutBuf, p, q, m, m,value,0,outfile,0);
23
 
              iwl_buf_wrt_val(OutBuf, p, m, m, q,-0.5*value,0,outfile,0);
24
 
              
25
 
            }
26
 
        }
27
 
    }
28
 
}
29