Skip to content

Not working axial gauge #1077

@stloufra

Description

@stloufra

When process is produced with set gauge axial while launched and compiling the code g++ unhappy with error stating missing semicolon.

To reproduce the error on 3.6.4:

set gauge axial
generate u u > H j j j j
output madevent_simd PROC_uu_hjjjji_native
launch
set cudacpp_backend CPPNONE
set nevents 10k

Error produced:

g++  -I. -I../../src -O3  -std=c++17 -Wall -Wshadow -Wextra -ffast-math   -march=x86-64  -DMGONGPU_FPTYPE_DOUBLE -DMGONGPU_FPTYPE2_FLOAT -fPIC -c fsampler.cc -o fsampler_cpp.o
        In file included from CPPProcess.cc:19:
        ../../src/HelAmps_sm.h: In function ‘void mg5amcCpu::FFV1P0_3(const fptype*, const fptype*, const fptype*, double, mgOnGpu::fptype, mgOnGpu::fptype, mgOnGpu::fptype*)’:
        ../../src/HelAmps_sm.h:1174:5: error: expected ‘,’ or ‘;’ before ‘V3’
         1174 |     V3[2] = denom * ( -cI ) * ( TMP1 * ( F2[2] * F1[4] + F2[3] * F1[5] + F2[4] * F1[2] + F2[5] * F1[3] ) - P3[0] * ( TMP2 + TMP3 ) );
              |     ^~
        ../../src/HelAmps_sm.h: In function ‘void mg5amcCpu::VVV1P0_1(const fptype*, const fptype*, const fptype*, double, mgOnGpu::fptype, mgOnGpu::fptype, mgOnGpu::fptype*)’:
        ../../src/HelAmps_sm.h:1495:5: error: expected ‘,’ or ‘;’ before ‘V1’
         1495 |     V1[2] = denom * ( P1[0] * ( TMP19 * ( +cI * ( TMP20 + TMP21 ) - cI * ( TMP22 + TMP23 ) ) + ( TMP10 * ( -one ) * ( +cI * ( TMP16 + TMP17 ) ) + ( TMP14 * ( +cI * ( TMP15 + TMP18 ) ) + ( -cI * ( TMP15 * TMP16 ) + cI * ( TMP17 * TMP18 ) ) ) ) ) + TMP13 * ( TMP19 * ( -cI * P2[0] + cI * P3[0] ) + ( V2[2] * ( -cI * TMP14 + cI * TMP16 ) + V3[2] * ( +cI * TMP10 - cI * TMP18 ) ) ) );
              |     ^~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions