Skip to content

Commit

Permalink
Another bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
jackbaker1001 committed Nov 8, 2023
1 parent 8a03e5d commit f4ca97b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grad_dft/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,7 @@ def mse_energy_and_density_loss(
diff_energy = diff_energy / num_elec
sum_rho += diff_rho
sum_energy += diff_energy**2
energy_contrib = energy_factor * sum_energy / len(atoms)
energy_contrib = energy_factor * sum_energy / len(atoms_list)
rho_contrib = rho_factor * sum_rho / len(atoms_list)

return energy_contrib + rho_contrib

0 comments on commit f4ca97b

Please sign in to comment.