Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes on ecCC to accomodate ACI #16

Merged
merged 1 commit into from
Jul 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Changes on ecCC to accomodate ACI
  • Loading branch information
gustavojra committed Jul 28, 2020
commit e45e3363dc31bf220bc7a7722ffc9a6e5da97ad9
3 changes: 2 additions & 1 deletion src/Core/SinglePointEnergy.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ export @energy
energy_dict = Dict{String, Expr}(
"rhf" => :(Fermi.HartreeFock.RHF()),
"ccsd" => :(Fermi.CoupledCluster.RCCSD()),
"ccsd(t)"=> :(Fermi.CoupledCluster.RCCSDpT()),
"ecccsd" => :(Fermi.CoupledCluster.ecRCCSD()),
"ccsdpt"=> :(Fermi.CoupledCluster.RCCSDpT()),
"ci" => :(Fermi.ConfigurationInteraction.CASCI()),
)

Expand Down
8 changes: 8 additions & 0 deletions src/Methods/CoupledCluster/RCCSD/CTF.jl
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@ end
Compute a RCCSD wave function using the Compiled time factorization algorithm (CTF). Precision (T), reference wavefunction (refwfn)
and molecular orbital integrals (moint) must be passed.
"""
function RCCSD{T}(refwfn::RHF, moint::PhysRestrictedMOIntegrals, Alg::CTF) where T <: AbstractFloat
d = [i - a for i = diag(moint.oo), a = diag(moint.vv)]
D = [i + j - a - b for i = diag(moint.oo), j = diag(moint.oo), a = diag(moint.vv), b = diag(moint.vv)]
newT1 = moint.ov./d
newT2 = moint.oovv./D
RCCSD{T}(refwfn, moint, newT1, newT2, Alg)
end

function RCCSD{T}(refwfn::RHF, guess::RCCSD{Tb}, moint::PhysRestrictedMOIntegrals, Alg::CTF) where { T <: AbstractFloat,
Tb <: AbstractFloat }
d = [i - a for i = diag(moint.oo), a = diag(moint.vv)]
Expand Down
Loading