Commit 21428b63 authored by Maier, Thomas's avatar Maier, Thomas
Browse files

Added PARTICLE_PARTICLE_SINGLET to remaining functions

parent 3c8baba8
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -167,6 +167,16 @@ class accumulator_nonlocal_chi_atomic<model_type, PARTICLE_PARTICLE_UP_DOWN> {
  }
};

//
// Specialization for particle-particle-singlet channel.
//
template <class model_type>
class accumulator_nonlocal_chi_atomic<model_type, PARTICLE_PARTICLE_SINGLET> {
  inline void execute() {
    throw std::logic_error(__FUNCTION__);
  }
};

}  // ctaux
}  // solver
}  // phys
+6 −0
Original line number Diff line number Diff line
@@ -380,6 +380,12 @@ void TpAccumulator<Parameters, linalg::GPU>::updateG4() {
          get_G4().ptr(), G_[0].ptr(), G_[0].leadingDimension(), G_[1].ptr(),
          G_[1].leadingDimension(), n_bands_, KDmn::dmn_size(), WTpPosDmn::dmn_size(), nw_exchange,
          nk_exchange, sign_, streams_[0]);
    case PARTICLE_PARTICLE_SINGLET:
      details::updateG4<Real, PARTICLE_PARTICLE_SINGLET>(
          get_G4().ptr(), G_[0].ptr(), G_[0].leadingDimension(), G_[1].ptr(),
          G_[1].leadingDimension(), n_bands_, KDmn::dmn_size(), WTpPosDmn::dmn_size(), nw_exchange,
          nk_exchange, sign_, streams_[0]);
      break;
      break;
    default:
      throw(std::logic_error("Mode non supported."));
+10 −0
Original line number Diff line number Diff line
@@ -270,6 +270,11 @@ void diagrammatic_symmetries<parameters_type>::execute(
        symmetrize_over_pi_rotations_pp(G);
        break;

      case PARTICLE_PARTICLE_SINGLET:
        set_real(G);
        symmetrize_over_pi_rotations_pp(G);
        break;

      default:
        throw std::logic_error(__FUNCTION__);
    }
@@ -301,6 +306,11 @@ void diagrammatic_symmetries<parameters_type>::execute(
      symmetrize_over_pi_rotations_pp(G);
      break;

    case PARTICLE_PARTICLE_SINGLET:
      // set_real(G);
      symmetrize_over_pi_rotations_pp(G);
      break;

    default:
      throw std::logic_error(__FUNCTION__);
  }