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

sointegral.h

00001 //
00002 // sointegral.h --- definition of the Integral class
00003 //
00004 // Copyright (C) 1998 Limit Point Systems, Inc.
00005 //
00006 // Author: Curtis Janssen <cljanss@limitpt.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_basis_sointegral_h
00029 #define _chemistry_qc_basis_sointegral_h
00030 
00031 #ifdef __GNUC__
00032 #pragma interface
00033 #endif
00034 
00035 #include <chemistry/qc/basis/integral.h>
00036 #include <chemistry/qc/basis/tbint.h>
00037 #include <chemistry/qc/basis/sobasis.h>
00038 
00039 class OneBodySOInt : public RefCount {
00040   protected:
00041     Ref<OneBodyInt> ob_;
00042 
00043     Ref<SOBasis> b1_;
00044     Ref<SOBasis> b2_;
00045 
00046     double *buffer_;
00047 
00048     int only_totally_symmetric_;
00049   public:
00050     OneBodySOInt(const Ref<OneBodyInt> &);
00051     virtual ~OneBodySOInt();
00052 
00053     Ref<SOBasis> basis() const;
00054     Ref<SOBasis> basis1() const;
00055     Ref<SOBasis> basis2() const;
00056 
00057     const double * buffer() const { return buffer_; }
00058     
00059     virtual void compute_shell(int,int);
00060 
00061     // an index of -1 for a shell indicates any shell
00062     //virtual int log2_shell_bound(int= -1,int= -1) = 0;
00063 
00064     virtual void reinitialize();
00065 
00066     int only_totally_symmetric() const { return only_totally_symmetric_; }
00067     void set_only_totally_symmetric(int i) { only_totally_symmetric_ = i; }
00068 };
00069 
00070 
00071 
00072 class TwoBodySOInt : public RefCount {
00073   protected:
00074     Ref<TwoBodyInt> tb_;
00075 
00076     Ref<SOBasis> b1_;
00077     Ref<SOBasis> b2_;
00078     Ref<SOBasis> b3_;
00079     Ref<SOBasis> b4_;
00080 
00081     double *buffer_;
00082 
00083     int redundant_;
00084     int only_totally_symmetric_;
00085   public:
00086     TwoBodySOInt(const Ref<TwoBodyInt> &);
00087     virtual ~TwoBodySOInt();
00088 
00089     Ref<SOBasis> basis() const;
00090     Ref<SOBasis> basis1() const;
00091     Ref<SOBasis> basis2() const;
00092     Ref<SOBasis> basis3() const;
00093     Ref<SOBasis> basis4() const;
00094 
00095     const double * buffer() const { return buffer_; }
00096     
00097     virtual void compute_shell(int,int,int,int);
00098 
00099     // an index of -1 for a shell indicates any shell
00100     //virtual int log2_shell_bound(int= -1,int= -1,int= -1,int= -1) = 0;
00101 
00102     // if redundant is true, then keep redundant integrals in buffer_.  The
00103     // default is true.
00104     int redundant() const { return redundant_; }
00105     // cannot do nonredundant at the moment
00106     //void set_redundant(int i) { redundant_ = i; }
00107 
00108     int only_totally_symmetric() const { return only_totally_symmetric_; }
00109     void set_only_totally_symmetric(int i) { only_totally_symmetric_ = i; }
00110 };
00111 
00112 
00113 
00114 #endif
00115 
00116 // Local Variables:
00117 // mode: c++
00118 // c-file-style: "CLJ"
00119 // End:

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