restored lagrangian multiplier correction to the energy

for the case when the potential is not corrected
This commit is contained in:
Apra, Edoardo 2025-08-20 16:52:35 -07:00 committed by edoapra
parent 4f8737aeda
commit 68d7a32d58
No known key found for this signature in database
GPG key ID: 9E6A0B70826967BA

View file

@ -1176,9 +1176,13 @@ c
elcefc = ddot(nefc,efcz,1,dbl_mb(i12),1)
c solnrg= pt5* allefc + elambda
solnrg = pt5*allefc
ecos = pt5*(atmefc-elcefc)
c COSMO contribution Alternative 2 (Ref.[1] Eq.(11))
c ecos = pt5*(atmefc-elcefc)+elambda
ecos = pt5*(atmefc-elcefc)
c add lagrangian multiplier correction to the energy
c when the potential is not corrected
c
if(.not.cosmo_ptcor) ecos=ecos+elambda
if (oprint_energies) then
write(luout,*)'Alternative 2'