Commit 6aaaf2f8 authored by Matthias Redies's avatar Matthias Redies

make sure ctail works for non-mggas

parent 6948c81d
......@@ -180,8 +180,13 @@ SUBROUTINE cdngen(eig_id,mpi,input,banddos,sliceplot,vacuum,&
END IF
CALL timestart("cdngen: cdncore")
CALL cdncore(mpi,dimension,oneD,input,vacuum,noco,sym,&
stars,cell,sphhar,atoms,vTot,outDen,moments,results, EnergyDen)
if(xcpot%exc_is_MetaGGA()) then
CALL cdncore(mpi,dimension,oneD,input,vacuum,noco,sym,&
stars,cell,sphhar,atoms,vTot,outDen,moments,results, EnergyDen)
else
CALL cdncore(mpi,dimension,oneD,input,vacuum,noco,sym,&
stars,cell,sphhar,atoms,vTot,outDen,moments,results)
endif
call xcpot%core_den%subPotDen(outDen, xcpot%val_den)
CALL timestop("cdngen: cdncore")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment