Skip to content

Commit

Permalink
Fixes for both frozen and active spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
obackhouse committed Jul 5, 2023
1 parent a21be09 commit 07b9510
Show file tree
Hide file tree
Showing 3 changed files with 953 additions and 1,998 deletions.
8 changes: 4 additions & 4 deletions ebcc/codegen/GCCSDtp.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ def energy(f=None, v=None, nocc=None, nvir=None, t1=None, t2=None, t3=None, **kw
return e_cc

def update_amps(f=None, v=None, space=None, t1=None, t2=None, t3=None, **kwargs):
nocc = space.nocc
nvir = space.nvir
nocc = space.ncocc
nvir = space.ncvir
naocc = space.naocc
navir = space.navir
so = np.ones((nocc,), dtype=bool)
sv = np.ones((nvir,), dtype=bool)
sO = space.active[space.occupied]
sV = space.active[space.virtual]
sO = space.active[space.correlated][space.occupied[space.correlated]]
sV = space.active[space.correlated][space.virtual[space.correlated]]

# T amplitudes
t1new = np.zeros(((nocc, nvir)), dtype=np.float64)
Expand Down
Loading

0 comments on commit 07b9510

Please sign in to comment.