Main Page   Class Hierarchy   Compound List   File List   Compound Members   Related Pages  

scfops.h

00001 //
00002 // scfden.h
00003 //
00004 // Copyright (C) 1996 Limit Point Systems, Inc.
00005 //
00006 // Author: Edward Seidl <seidl@janed.com>
00007 // Maintainer: LPS
00008 //
00009 // This file is part of the SC Toolkit.
00010 //
00011 // The SC Toolkit is free software; you can redistribute it and/or modify
00012 // it under the terms of the GNU Library General Public License as published by
00013 // the Free Software Foundation; either version 2, or (at your option)
00014 // any later version.
00015 //
00016 // The SC Toolkit is distributed in the hope that it will be useful,
00017 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00018 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00019 // GNU Library General Public License for more details.
00020 //
00021 // You should have received a copy of the GNU Library General Public License
00022 // along with the SC Toolkit; see the file COPYING.LIB.  If not, write to
00023 // the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
00024 //
00025 // The U.S. Government is granted a limited license as per AL 91-7.
00026 //
00027 
00028 #ifndef _chemistry_qc_scf_scfops_h
00029 #define _chemistry_qc_scf_scfops_h
00030 
00031 #ifdef __GNUC__
00032 #pragma interface
00033 #endif
00034 
00035 #include <math/scmat/elemop.h>
00036 #include <math/scmat/blocked.h>
00037 
00038 #include <chemistry/qc/scf/scf.h>
00039 
00040 class SCFEnergy : public SCElementOp2 {
00041   private:
00042     double eelec;
00043     int deferred_;
00044     
00045   public:
00046     SCFEnergy();
00047     ~SCFEnergy();
00048 
00049     int has_collect();
00050     void defer_collect(int h);
00051     void collect(const Ref<MessageGrp>&grp);
00052     double result();
00053     void reset();
00054 
00055     void process(SCMatrixBlockIter&i, SCMatrixBlockIter&j);
00056 };
00057 
00058 class LevelShift : public BlockedSCElementOp {
00059   protected:
00060     SCF *scf_;
00061     double shift;
00062 
00063   public:
00064     LevelShift(SCF*);
00065     ~LevelShift();
00066 
00067     int has_side_effects();
00068     void set_shift(double);
00069     
00070     void process(SCMatrixBlockIter&);
00071 };
00072 
00073 class ALevelShift : public LevelShift {
00074   public:
00075     ALevelShift(SCF*);
00076     ~ALevelShift();
00077     void process(SCMatrixBlockIter&);
00078 };
00079 
00080 class BLevelShift : public LevelShift {
00081   public:
00082     BLevelShift(SCF*);
00083     ~BLevelShift();
00084     void process(SCMatrixBlockIter&);
00085 };
00086 
00087 // MO lagrangian
00088 //       c  o  v
00089 //  c  |FC|FC| 0|
00090 //     ----------
00091 //  o  |FC|FO| 0|
00092 //     ----------
00093 //  v  | 0| 0| 0|
00094 //
00095 class MOLagrangian : public BlockedSCElementOp2 {
00096   private:
00097     SCF *scf_;
00098 
00099   public:
00100     MOLagrangian(SCF* s);
00101     ~MOLagrangian();
00102 
00103     int has_side_effects();
00104 
00105     void process(SCMatrixBlockIter& bi1, SCMatrixBlockIter& bi2);
00106 };
00107 
00108 #endif
00109 
00110 // Local Variables:
00111 // mode: c++
00112 // c-file-style: "ETS"
00113 // End:

Generated at Thu Oct 4 18:08:47 2001 for MPQC 2.0.0 using the documentation package Doxygen 1.2.5.