Compute total energy from all components
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(energy_t), | intent(in) | :: | this |
pure function energy_total(this) result(total) !! Compute total energy from all components class(energy_t), intent(in) :: this real(dp) :: total ! this line needs to me modified if more components are added total = this%scf + this%mp2%total() + this%cc%total() end function energy_total