Commit 5c8ff655 by Francois Gygi

Make Sample const in ExchangeOperator

parent 15649b64
......@@ -387,7 +387,7 @@ void ExchangeOperator::cell_moved(void)
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
double ExchangeOperator::compute_exchange_for_general_case_( Sample* s,
double ExchangeOperator::compute_exchange_for_general_case_(const Sample* s,
Wavefunction* dwf, bool compute_stress)
{
Timer tm;
......
......@@ -28,7 +28,7 @@ class ExchangeOperator
{
private:
Sample& s_;
const Sample& s_;
// exchange energy
double eex_;
// constant of support function for exchange integration
......@@ -43,7 +43,7 @@ class ExchangeOperator
// copy of wf
Wavefunction wfc_;
double compute_exchange_for_general_case_(Sample* s, Wavefunction* dwf,
double compute_exchange_for_general_case_(const Sample* s, Wavefunction* dwf,
bool compute_stress);
double compute_exchange_at_gamma_(const Wavefunction &wf, Wavefunction* dwf,
bool compute_stress);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment