Skip to content

Commit ec40f66

Browse files
authored
Changed the positions of template class declarations in rdmft_tools (#6712)
Moved template classes of Veff_rdmft to the end of the file.
1 parent 7baaab1 commit ec40f66

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

source/source_lcao/module_rdmft/rdmft_tools.cpp

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -186,13 +186,6 @@ double occNum_func(const double eta, const int symbol, const std::string XC_func
186186

187187
}
188188

189-
190-
template class Veff_rdmft<double, double>;
191-
192-
template class Veff_rdmft<std::complex<double>, double>;
193-
194-
template class Veff_rdmft<std::complex<double>, std::complex<double>>;
195-
196189
// this part of the code is copying from class Veff
197190
// initialize_HR()
198191
template <typename TK, typename TR>
@@ -399,6 +392,10 @@ void Veff_rdmft<double, double>::contributeHR()
399392
}
400393

401394
}
395+
template class rdmft::Veff_rdmft<double, double>;
396+
397+
template class rdmft::Veff_rdmft<std::complex<double>, double>;
402398

399+
template class rdmft::Veff_rdmft<std::complex<double>, std::complex<double>>;
403400

404401

0 commit comments

Comments
 (0)