@@ -51,41 +51,41 @@ namespace rdmft
5151{
5252
5353
54- // for print matrix
55- template <typename TK>
56- void printMatrix_pointer (int M, int N, const TK* matrixA, std::string nameA)
57- {
58- std::cout << " \n " << nameA << " : \n " ;
59- for (int i=0 ; i<M; ++i)
60- {
61- for (int j=0 ; j<N; ++j)
62- {
63- if ( j%5 == 0 ) { std::cout << " \n " ;
64- }
65- std::cout << *(matrixA+i*N+j) << " " ;
66- }
67- std::cout << " \n " ;
68- }
69- std::cout << std::endl;
70- }
71-
72-
73- template <typename TK>
74- void printMatrix_vector (int M, int N, const std::vector<TK>& matrixA, std::string nameA)
75- {
76- std::cout << " \n " << nameA << " : \n " ;
77- for (int i=0 ; i<M; ++i)
78- {
79- for (int j=0 ; j<N; ++j)
80- {
81- if ( j%5 == 0 ) { std::cout << " \n " ;
82- }
83- std::cout << matrixA[i*N+j] << " " ;
84- }
85- std::cout << " \n\n " ;
86- }
87- std::cout << std::endl;
88- }
54+ // // for print matrix
55+ // template <typename TK>
56+ // void printMatrix_pointer(int M, int N, const TK* matrixA, std::string nameA)
57+ // {
58+ // std::cout << "\n" << nameA << ": \n";
59+ // for(int i=0; i<M; ++i)
60+ // {
61+ // for(int j=0; j<N; ++j)
62+ // {
63+ // if( j%5 == 0 ) { std::cout << "\n";
64+ // }
65+ // std::cout << *(matrixA+i*N+j) << " ";
66+ // }
67+ // std::cout << "\n";
68+ // }
69+ // std::cout << std::endl;
70+ // }
71+
72+
73+ // template <typename TK>
74+ // void printMatrix_vector(int M, int N, const std::vector<TK>& matrixA, std::string nameA)
75+ // {
76+ // std::cout << "\n" << nameA << ": \n";
77+ // for(int i=0; i<M; ++i)
78+ // {
79+ // for(int j=0; j<N; ++j)
80+ // {
81+ // if( j%5 == 0 ) { std::cout << "\n";
82+ // }
83+ // std::cout << matrixA[i*N+j] << " ";
84+ // }
85+ // std::cout << "\n\n";
86+ // }
87+ // std::cout << std::endl;
88+ // }
8989
9090
9191// now support XC_func_rdmft = "hf", "muller", "power", "pbe", "pbe0". "wp22" and "cwp22" is realizing.
@@ -101,15 +101,15 @@ void set_zero_vector(std::vector<TK>& HK)
101101}
102102
103103
104- template <typename TK>
105- void set_zero_psi (psi::Psi<TK>& wfc)
106- {
107- TK* pwfc_in = &wfc (0 , 0 , 0 );
108- #ifdef _OPENMP
109- #pragma omp parallel for schedule(static, 1024)
110- #endif
111- for (int i=0 ; i<wfc.size (); ++i) pwfc_in[i] = 0.0 ;
112- }
104+ // template <typename TK>
105+ // void set_zero_psi(psi::Psi<TK>& wfc)
106+ // {
107+ // TK* pwfc_in = &wfc(0, 0, 0);
108+ // #ifdef _OPENMP
109+ // #pragma omp parallel for schedule(static, 1024)
110+ // #endif
111+ // for(int i=0; i<wfc.size(); ++i) pwfc_in[i] = 0.0;
112+ // }
113113
114114
115115template <typename TK>
0 commit comments