Skip to content
Prev Previous commit
Next Next commit
You are right. Thanks!
Co-Authored-By: leios <jrs.schloss@gmail.com>
  • Loading branch information
berquist and leios authored Oct 30, 2018
commit be63285eb5c433d8e6a22ba4f954d1d99e5db0f9
2 changes: 1 addition & 1 deletion contents/quantum_systems/code/c++/energy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ double calculate_energy(std::vector<std::complex<double>> wfc,
std::vector<std::complex<double>> energy_r(size);

for (size_t i = 0; i < size; ++i) {
energy_k[i] = wfc_k[i] * h_k[i];
energy_k[i] = wfc_k[i] * pow(h_k[i], 2);
}

fft(energy_k, true);
Expand Down