~maddevelopers/mg5amcnlo/color_ordering

« back to all changes in this revision

Viewing changes to madgraph/iolibs/template_files/matrix_madevent_group_v4.inc

  • Committer: olivier-mattelaer
  • Date: 2021-02-21 11:03:42 UTC
  • mfrom: (50.85.73 madgraph5)
  • Revision ID: olivier-mattelaer-20210221110342-wn2nvdefctey5e0k
merge up to 2.8.0 --not python3 compatible

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
        INTEGER JHEL(2), J, JJ
53
53
        INTEGER THIS_NTRY(2)
54
54
        SAVE THIS_NTRY
55
 
        DATA THIS_NTRY /0,0/
 
55
        INTEGER NB_FAIL
 
56
        SAVE NB_FAIL
 
57
        DATA THIS_NTRY /0,0/
 
58
        DATA NB_FAIL /0/
 
59
        
56
60
c
57
61
C       This is just to temporarily store the reference grid for helicity of the DiscreteSampler so as to obtain its number of entries with ref_helicity_grid%%n_tot_entries
58
62
            type(SampledDimension) ref_helicity_grid
211
215
        IF (XTOT.NE.0D0) THEN
212
216
%(set_amp2_line)s
213
217
        ELSE IF(ANS.ne.0d0) THEN
 
218
             IF(NB_FAIL.ge.10)then
214
219
                        write(*,*) "Problem in the multi-channeling. All amp2 are zero but not the total matrix-element"
 
220
                        
215
221
                stop 1
 
222
            else
 
223
            nb_fail = nb_fail +1
 
224
            endif
216
225
        ENDIF
217
226
    ENDIF
218
227
    ANS=ANS/DBLE(IDEN)