Skip to content

Commit

Permalink
fixing push_back bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ahurta92 committed Jul 1, 2024
1 parent adb4d50 commit 91e5811
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/apps/molresponse/x_space.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,16 +120,16 @@ namespace madness
{
if (n_orbitals > 0)
{
MADNESS_ASSERT(n_orbitals == x.size());
MADNESS_ASSERT(n_orbitals == y.size());
MADNESS_ASSERT(x.size() == y.size());
MADNESS_ASSERT(n_orbitals == vx.size());
MADNESS_ASSERT(n_orbitals == vy.size());
MADNESS_ASSERT(vx.size() == vy.size());
}
else
{ // g_states == 0 (empty vector)
n_orbitals = x.size();
n_orbitals = vx.size();
}
MADNESS_ASSERT(x.size() == num_orbitals());
MADNESS_ASSERT(y.size() == num_orbitals());
MADNESS_ASSERT(vx.size() == num_orbitals());
MADNESS_ASSERT(vy.size() == num_orbitals());
active.push_back(active.back() + 1);
n_states++;
x.push_back(vx);
Expand Down

0 comments on commit 91e5811

Please sign in to comment.