@@ -877,6 +877,14 @@ subroutine processOutputCharges(env, this)
877877
878878 end if
879879
880+ if (allocated (this% dftbMultiExpan)) then
881+ call this% dftbMultiExpan% updateDeltaDQAtom(this% ints% overlap, this% rhoPrim(:,1 ),&
882+ & this% orb, this% neighbourList% iNeighbour, this% nNeighbourSK, this% img2CentCell,&
883+ & this% iSparseStart, this% q0)
884+
885+ call this% dftbMultiExpan% updateDQPotentials(sum (this% qOutput(:,:,1 ) - this% q0(:,:,1 ), dim= 1 ))
886+ end if
887+
880888 #:if WITH_TRANSPORT
881889 ! Overrides input charges with uploaded contact charges
882890 if (this% tUpload) then
@@ -1427,11 +1435,11 @@ subroutine processGeometry(this, env, iGeoStep, iLatGeoStep, tWriteRestart, tSto
14271435 & this% nNeighbourCam, this% nNeighbourCamSym, this% deltaDftb, errStatus)
14281436 if (errStatus% hasError()) call error(errStatus% message)
14291437
1430- if (allocated (this% dftbMultiExpan)) then
1431- call this% dftbMultiExpan% updateDeltaDQAtom(this% ints% overlap, this% rhoPrim(:,1 ),&
1432- & this% orb, this% neighbourList% iNeighbour, this% nNeighbourSK, this% img2CentCell,&
1433- & this% iSparseStart, this% q0)
1434- end if
1438+ ! if (allocated(this%dftbMultiExpan)) then
1439+ ! call this%dftbMultiExpan%updateDeltaDQAtom(this%ints%overlap, this%rhoPrim(:,1),&
1440+ ! & this%orb, this%neighbourList%iNeighbour, this%nNeighbourSK, this%img2CentCell,&
1441+ ! & this%iSparseStart, this%q0)
1442+ ! end if
14351443
14361444 if (this% tWriteBandDat) then
14371445 if (this% deltaDftb% nDeterminant() == 1 ) then
0 commit comments