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

« back to all changes in this revision

Viewing changes to src/bin/ccdensity/sortI.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
#define EXTERN
 
2
#include "globals.h"
 
3
 
 
4
/* SORTI(): Place all the components of the Lagrangian into a large
 
5
** matrix, I (moinfo.I), which we also symmetrize by computing Ipq =
 
6
** 1/2 (Ipq + Iqp).  This matrix is later written to disk in dump()
 
7
** for subsequent backtransformation.  Note that some of the
 
8
** components of the Lagrangian computed into the IIJ, Iij, IIA, and
 
9
** Iia matrices remain non-symmetric (e.g., IIJ neq IJI).  I re-used
 
10
** my sortone.c code here, so don't let some of the variable names
 
11
** confuse you. */
 
12
 
 
13
void sortI_ROHF(void);
 
14
void sortI_UHF(void);
 
15
 
 
16
void sortI(void)
 
17
{
 
18
  if(params.ref == 0 || params.ref == 1) sortI_ROHF();
 
19
  else if(params.ref == 2) sortI_UHF();
 
20
}