sherpa is hosted by Hepforge, IPPP Durham
close Warning: Can't synchronize with repository "(default)" (/hepforge/svn/sherpa does not appear to be a Subversion repository.). Look in the Trac log for more information.

Ticket #259: 143_clang.patch

File 143_clang.patch, 6.2 KB (added by David Hall <David.Hall@physics.ox.ac.uk>, 11 years ago)

Patch for Sherpa-1.4.3 to compile under clang

  • METOOLS/Currents/F_C.C

    diff -rupN SHERPA-MC-1.4.3_original/METOOLS/Currents/F_C.C SHERPA-MC-1.4.3/METOOLS/Currents/F_C.C
    void CF<SType>::AddPropagator() 
    129129  msg_Debugging()<<"pp = "<<pp<<", pm = "<<pm<<", pt = "<<pt<<"\n";
    130130#endif
    131131  for (size_t i(0);i<m_j.size();++i) {
    132   CSpinorType_Vector *j(m_j[i].Get<CSpinorType>());
     132  CSpinorType_Vector *j(m_j[i].template Get<CSpinorType>());
    133133  for (typename CSpinorType_Vector::iterator
    134134         jit(j->begin());jit!=j->end();++jit) {
    135135    CSpinorType j((*jit)->R(),(*jit)->B(),(**jit)(0),(**jit)(1),
  • METOOLS/Currents/S_C.C

    diff -rupN SHERPA-MC-1.4.3_original/METOOLS/Currents/S_C.C SHERPA-MC-1.4.3/METOOLS/Currents/S_C.C
    void CS<SType>::AddPropagator() 
    102102                 <<this->m_p.Abs2()<<", m = "<<sqrt(m_cmass2)<<"\n";
    103103#endif
    104104  for (size_t i(0);i<m_j.size();++i) {
    105   CScalarType_Vector *j(m_j[i].Get<CScalarType>());
     105  CScalarType_Vector *j(m_j[i].template Get<CScalarType>());
    106106  for (typename CScalarType_Vector::iterator
    107107         jit(j->begin());jit!=j->end();++jit) **jit*=prop;
    108108  }
  • METOOLS/Currents/T_C.C

    diff -rupN SHERPA-MC-1.4.3_original/METOOLS/Currents/T_C.C SHERPA-MC-1.4.3/METOOLS/Currents/T_C.C
    void CP<SType>::AddPropagator() 
    7474{
    7575  // add propagator for off-shell leg
    7676  for (size_t i(0);i<m_j.size();++i) {
    77   CAsT4Type_Vector *j(m_j[i].Get<CAsT4Type>());
     77  CAsT4Type_Vector *j(m_j[i].template Get<CAsT4Type>());
    7878  for (typename CAsT4Type_Vector::iterator
    7979         jit(j->begin());jit!=j->end();++jit) **jit*=m_prop;
    8080  }
  • METOOLS/Currents/V_C.C

    diff -rupN SHERPA-MC-1.4.3_original/METOOLS/Currents/V_C.C SHERPA-MC-1.4.3/METOOLS/Currents/V_C.C
    void CV<SType>::AddPropagator() 
    209209  msg_Debugging()<<"propagator: "<<prop<<"\n";
    210210#endif
    211211  for (size_t i(0);i<m_j.size();++i) {
    212   CVec4Type_Vector *j(m_j[i].Get<CVec4Type>());
     212  CVec4Type_Vector *j(m_j[i].template Get<CVec4Type>());
    213213  if (!this->m_fl.Strong()) {
    214214    if (!this->m_msv)
    215215      for (typename CVec4Type_Vector::iterator
  • METOOLS/Vertices/SSVV_LC.C

    diff -rupN SHERPA-MC-1.4.3_original/METOOLS/Vertices/SSVV_LC.C SHERPA-MC-1.4.3/METOOLS/Vertices/SSVV_LC.C
    void SSVV_Calculator<SType>::Evaluate() 
    110110    for (jit[1]=ccb.begin();jit[1]!=ccb.end();++jit[1]) {
    111111      for (jit[2]=cce.begin();jit[2]!=cce.end();++jit[2],++i) {
    112112  if (m_dir==0) {
    113     const CVec4Type_Vector *ca(jit[m_n[1]]->Get<CVec4Type>());
    114     const CVec4Type_Vector *cb(jit[m_n[2]]->Get<CVec4Type>());
    115     const CScalarType_Vector *ce(jit[m_n[0]]->Get<CScalarType>());
     113    const CVec4Type_Vector *ca(jit[m_n[1]]->template Get<CVec4Type>());
     114    const CVec4Type_Vector *cb(jit[m_n[2]]->template Get<CVec4Type>());
     115    const CScalarType_Vector *ce(jit[m_n[0]]->template Get<CScalarType>());
    116116    for (typename CVec4Type_Vector::const_iterator
    117117           ait(ca->begin());ait!=ca->end();++ait)
    118118      for (typename CVec4Type_Vector::const_iterator
    void SSVV_Calculator<SType>::Evaluate() 
    134134          }
    135135  }
    136136  else {
    137     const CScalarType_Vector *ca(jit[m_n[0]]->Get<CScalarType>());
    138     const CScalarType_Vector *cb(jit[m_n[1]]->Get<CScalarType>());
    139     const CVec4Type_Vector *ce(jit[m_n[2]]->Get<CVec4Type>());
     137    const CScalarType_Vector *ca(jit[m_n[0]]->template Get<CScalarType>());
     138    const CScalarType_Vector *cb(jit[m_n[1]]->template Get<CScalarType>());
     139    const CVec4Type_Vector *ce(jit[m_n[2]]->template Get<CVec4Type>());
    140140    for (typename CScalarType_Vector::const_iterator
    141141           ait(ca->begin());ait!=ca->end();++ait)
    142142      for (typename CScalarType_Vector::const_iterator
  • METOOLS/Vertices/VVVV_LC.C

    diff -rupN SHERPA-MC-1.4.3_original/METOOLS/Vertices/VVVV_LC.C SHERPA-MC-1.4.3/METOOLS/Vertices/VVVV_LC.C
    void VVVV_Calculator<SType>::Evaluate() 
    8383  for (jit[0]=cca.begin();jit[0]!=cca.end();++jit[0]) {
    8484    for (jit[1]=ccb.begin();jit[1]!=ccb.end();++jit[1]) {
    8585      for (jit[2]=cce.begin();jit[2]!=cce.end();++jit[2],++i) {
    86         const CVec4Type_Vector *ca(jit[m_n[0]]->Get<CVec4Type>());
    87         const CVec4Type_Vector *cb(jit[m_n[1]]->Get<CVec4Type>());
    88         const CVec4Type_Vector *ce(jit[m_n[2]]->Get<CVec4Type>());
     86        const CVec4Type_Vector *ca(jit[m_n[0]]->template Get<CVec4Type>());
     87        const CVec4Type_Vector *cb(jit[m_n[1]]->template Get<CVec4Type>());
     88        const CVec4Type_Vector *ce(jit[m_n[2]]->template Get<CVec4Type>());
    8989        for (typename CVec4Type_Vector::const_iterator
    9090               eit(ce->begin());eit!=ce->end();++eit)
    9191          for (typename CVec4Type_Vector::const_iterator
  • PHASIC++/Main/Phase_Space_Handler.C

    diff -rupN SHERPA-MC-1.4.3_original/PHASIC++/Main/Phase_Space_Handler.C SHERPA-MC-1.4.3/PHASIC++/Main/Phase_Space_Handler.C
    void Phase_Space_Handler::AddStats(const 
    857857template Weight_Info &ATOOLS::Blob_Data_Base::Get<Weight_Info>();
    858858
    859859namespace ATOOLS {
    860   std::ostream & operator<<(std::ostream & s, const PHASIC::Weight_Info & wi)
    861   {
    862     s<<" w = "<<wi.m_weight<<std::endl;
    863     return s;
    864   }
    865 }
    866 
    867 namespace ATOOLS {
    868860template <> Blob_Data<Weight_Info>::~Blob_Data() {}
    869861
    870862template class Blob_Data<Weight_Info>;
  • PHASIC++/Main/Phase_Space_Handler.H

    diff -rupN SHERPA-MC-1.4.3_original/PHASIC++/Main/Phase_Space_Handler.H SHERPA-MC-1.4.3/PHASIC++/Main/Phase_Space_Handler.H
    namespace PHASIC { 
    6363
    6464  };// end of struct Weight_Info
    6565
     66  inline std::ostream & operator<<(std::ostream & s, const PHASIC::Weight_Info & wi)
     67  {
     68    s<<" w = "<<wi.m_weight<<std::endl;
     69    return s;
     70  }
     71
    6672  class Phase_Space_Integrator;
    6773  class Process_Base;
    6874