QNANO
Coulomb_Onsite_Storage_List.h
1 #ifndef QNANO_NEW_COULOMB_ONSITE_STORAGE_LIST
2 #define QNANO_NEW_COULOMB_ONSITE_STORAGE_LIST
3 
4 #include "coulomb/Coulomb_Onsite_Storage.h"
5 #include "tools/Parameter_Map.h"
6 #include "tools/List_Class.h"
7 
8 class Coulomb_Onsite_Storage_List: public List_Class<Coulomb_Onsite_Storage>{
9 public:
10 
11  void add(const std::string &orbfile, const std::string &onsitefile);
12  void setup(Parameter_Map &param_map);
13 
14 
15  int find(int element)const;
16  int find_check(int element)const{
17  int i=find(element);
18  if(i<0){
19  std::cerr<<"Coulomb_Onsite_Storage_List: cannot find element "<<element<<std::endl;
20  exit(1);
21  }
22  return i;
23  }
24 
27  setup(param_map);
28  }
29 };
30 
31 
32 
33 #endif
Definition: Parameter_Map.h:12
Definition: List_Class.h:8
Definition: Coulomb_Onsite_Storage_List.h:8