Skip to content

Commit

Permalink
Minor refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
RandomDefaultUser committed Apr 11, 2024
1 parent 7d9d5d3 commit bf97d37
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mala/targets/ldos.py
Original file line number Diff line number Diff line change
Expand Up @@ -1362,9 +1362,9 @@ def get_atomic_forces(self, ldos_data=None, dos_data=None,
d_n_d_mu = np.dot(ldos_data, d_f01_d_mu)
d_E_h_d_mu = np.dot(d_E_h_d_n[:,0], d_n_d_mu)
d_mu_d_d = np.zeros_like(ldos_data)
d_mu_d_d[:] = (-1.0) * (d_n_d_d*self.voxel.volume)
d_mu_d_d /= (self._density_of_states_calculator.
d_number_of_electrons_d_mu)
d_mu_d_d[:] = (d_n_d_d*self.voxel.volume)
d_mu_d_d /= (-1.0) * (self._density_of_states_calculator.
d_number_of_electrons_d_mu)
d_E_d_n = d_E_h_d_n * d_n_d_d + d_E_h_d_mu * d_mu_d_d
d_E_d_d += d_E_d_n

Expand Down

0 comments on commit bf97d37

Please sign in to comment.