diff --git a/src/madness/chem/CCPotentials.cc b/src/madness/chem/CCPotentials.cc index 4524e9bba34..6ba88a85a6f 100644 --- a/src/madness/chem/CCPotentials.cc +++ b/src/madness/chem/CCPotentials.cc @@ -3370,7 +3370,7 @@ CCPotentials::s4b(World& world, const std::vector external_index, const CC_ // const std::vector> ukl = get_pair_function(doubles, k, l); // make a ful pair function using the pure 6D part uik and complete with the rest std::vector> ukl1 = get_pair_function(doubles, k, l); - CCPair pair_kl=builder.complete_pair_with_low_rank_parts(builder.make_pair(i,l,ukl1)); + CCPair pair_kl=builder.complete_pair_with_low_rank_parts(builder.make_pair(k,l,ukl1)); std::vector> ukl = pair_kl.functions; for (size_t mm = 0; mm < ukl.size(); mm++) {