|
MPQC
3.0.0-alpha
|
00001 // 00002 // transform_12inds.h 00003 // 00004 // Copyright (C) 2004 Edward Valeev 00005 // 00006 // Author: Edward Valeev <evaleev@vt.edu> 00007 // Maintainer: EV 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_mbpt_transform12inds_h 00029 #define _chemistry_qc_mbpt_transform12inds_h 00030 00031 #include <util/misc/regtime.h> 00032 #include <util/group/memory.h> 00033 #include <util/group/thread.h> 00034 #include <chemistry/qc/basis/integral.h> 00035 #include <chemistry/qc/lcao/transform_tbint.h> 00036 00037 namespace sc { 00038 00039 #define PRINT_BIGGEST_INTS 0 00040 00041 class TwoBodyMOIntsTransform_12Inds: public Thread { 00042 00043 Ref<TwoBodyMOIntsTransform> tform_; 00044 Ref<TwoBodyInt> tbint_; 00045 Ref<ThreadLock> lock_; 00046 Ref<RegionTimer> timer_; 00047 00048 int mythread_; 00049 int nthread_; 00050 int ni_; // Number of i-indices handled in each pass 00051 int i_offset_; // first i-index handled in this pass 00052 00053 double tol_; 00054 int debug_; 00055 00056 int aoint_computed_; 00057 00058 public: 00059 TwoBodyMOIntsTransform_12Inds(const Ref<TwoBodyMOIntsTransform>& tform, 00060 int mythread, int nthread, const Ref<ThreadLock>& lock, const Ref<TwoBodyInt> &tbint, 00061 double tol, int debug); 00062 ~TwoBodyMOIntsTransform_12Inds(); 00063 00064 void set_i_offset(const int ioff) { i_offset_ = ioff; } 00065 void set_ni(const int nivalue) { ni_ = nivalue; } 00066 00067 void run(); 00068 00070 static size_t compute_required_dynamic_memory(const TwoBodyMOIntsTransform& tform, 00071 int ibatchsize); 00072 }; 00073 00074 } 00075 00076 #endif 00077 00078 // ////////////////////////////////////////////////////////////////////////// 00079 00080 // Local Variables: 00081 // mode: c++ 00082 // c-file-style: "CLJ-CONDENSED" 00083 // End: