// // intcca.h // // Copyright (C) 2004 Sandia National Laboratories // // Author: Joe Kenny // Maintainer: Joe Kenny // // This file is part of the SC Toolkit. // // The SC Toolkit is free software; you can redistribute it and/or modify // it under the terms of the GNU Library General Public License as published by // the Free Software Foundation; either version 2, or (at your option) // any later version. // // The SC Toolkit is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU Library General Public License for more details. // // You should have received a copy of the GNU Library General Public License // along with the SC Toolkit; see the file COPYING.LIB. If not, write to // the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. // // The U.S. Government is granted a limited license as per AL 91-7. // #ifndef _chemistry_qc_intcca_intcca_h #define _chemistry_qc_intcca_intcca_h #include #include #include #include #include #include #include using namespace Chemistry::QC::GaussianBasis; namespace sc { /** IntegralCCA provides an SC client for CCA IntegralEvaluator components. */ class IntegralCCA : public Integral { private: int maxl_; bool use_opaque_; gov::cca::ComponentID fac_id_; gov::cca::ConnectionID fac_con_; Ref sc_molecule_; Chemistry::Chemistry_Molecule molecule_; std::string factory_type_; std::string package_; SphericalTransform ***st_; ISphericalTransform ***ist_; void free_transforms(); void initialize_transforms(); IntegralEvaluatorFactory eval_factory_; public: /** This constructor is used when the framework is not embedded. */ IntegralCCA(IntegralEvaluatorFactory eval_factory, bool use_opaque, const Ref &b1=0, const Ref &b2=0, const Ref &b3=0, const Ref &b4=0); IntegralCCA(StateIn&); /** The KeyVal constructor. This constructor is used when the framework is embedded. The following keywords are read:
evaluator_factory
This gives the symbol name of a CCA IntegralEvaluatorFactory component. This symbol name should also appear in the cca-load argument. The default is MPQC.IntegralEvaluatorFactory.
integral_package
If the default MPQC.IntegralEvaluatorFactory is used, then this option may be used to specify the integrals package to use (intv3 or cints). The default is intv3.
molecule
This gives a molecule object, it is required.
*/ IntegralCCA(const Ref&); ~IntegralCCA(); void save_data_state(StateOut&); Integral* clone(); CartesianIter * new_cartesian_iter(int); RedundantCartesianIter * new_redundant_cartesian_iter(int); RedundantCartesianSubIter * new_redundant_cartesian_sub_iter(int); SphericalTransformIter * new_spherical_transform_iter(int l, int inv=0, int subl=-1); const SphericalTransform * spherical_transform(int l, int inv=0, int subl=-1); Ref overlap(); Ref kinetic(); Ref point_charge(const Ref& =0); Ref nuclear(); Ref hcore(); Ref efield_dot_vector(const Ref& =0); Ref dipole(const Ref& =0); Ref quadrupole(const Ref& =0); Ref overlap_deriv(); Ref kinetic_deriv(); Ref nuclear_deriv(); Ref hcore_deriv(); Ref electron_repulsion(); Ref electron_repulsion_deriv(); void set_basis(const Ref &b1, const Ref &b2 = 0, const Ref &b3 = 0, const Ref &b4 = 0); }; } #endif // Local Variables: // mode: c++ // c-file-style: "CLJ" // End: