Several errors during compilation

Questions about the interface between SARAH and SPheno as well as the FlavorKit functionality
Post Reply
sgurruti
Posts: 24
Joined: 2. Sep 2016, 15:46

Several errors during compilation

Post by sgurruti » 18. Jul 2018, 23:36

Hi again,
I'm sorry for bothering you (again) but I have a problem when I try to compile my model in SPheno. Even though there is no apparent mistake with MakeSPheno, when I try to compile those files using SPheno-4.0.3 & gfortran I get

Code: Select all

gfortran -c -g -ffree-line-length-none -J../include -I../include   Couplings_O5RR.f90 
Couplings_O5RR.f90:58:67:

 & cplcgWpCgWpChh,cplcgZgWpCHp,cplcgZgZhh,cplcgWpgZHp,cplcgWpCgZcHp)
                                                                   1
Error: Duplicate symbol ‘cplcgagwpcvwp’ in formal argument list at (1)
Couplings_O5RR.f90:60:14:

 Implicit None
              1
Error: Unexpected IMPLICIT NONE statement in CONTAINS section at (1)
Couplings_O5RR.f90:62:44:

 & Ysc(3,3),UV(3,3),Ys(3,3),YpsiL(3),YpsiR(3)
                                            1
Error: Unexpected data declaration statement in CONTAINS section at (1)
Couplings_O5RR.f90:64:50:

 Complex(dp), Intent(in) :: Yd(3,3),Ye(3,3),Yu(3,3)
                                                  1
Error: Unexpected data declaration statement in CONTAINS section at (1)
Couplings_O5RR.f90:102:87:

 pVPVWpVZ1,cplcVWpVPVWpVZ2,cplcVWpVPVWpVZ3,cplcVWpcVWpVWpVWp1,cplcVWpcVWpVWpVWp2
                                                                               1
Error: Unexpected data declaration statement in CONTAINS section at (1)
Couplings_O5RR.f90:106:30:

 & cplcgWpCgWpCVP,cplcgAgWpCVWp,cplcgZgWpCVWp,cplcgWpCgWpCVZ,cplcgWpgZVWp,cplcgWpCgZcVWp, &
                              1
Error: Symbol ‘cplcgagwpcvwp’ at (1) already has basic type of COMPLEX
Couplings_O5RR.f90:110:49:

 Integer :: gt1, gt2, gt3, gt4, ct1, ct2, ct3, ct4
                                                 1
Error: Unexpected data declaration statement in CONTAINS section at (1)
Couplings_O5RR.f90:112:18:

 Iname = Iname + 1
                  1
Error: Unexpected assignment statement in CONTAINS section at (1)
Couplings_O5RR.f90:113:0:

 NameOfUnit(Iname) = 'AllCouplingsReallyAll'
 
Error: Unclassifiable statement at (1)
Couplings_O5RR.f90:115:18:

 cplAhAhhh = 0._dp
                  1
Error: Unexpected assignment statement in CONTAINS section at (1)
Couplings_O5RR.f90:116:44:

 Call CouplingAhAhhhT(lambdaH,vvSM,cplAhAhhh)
                                            1
Error: Unexpected CALL statement in CONTAINS section at (1)
Couplings_O5RR.f90:120:18:

 cplhhhhhh = 0._dp
                  1
Error: Unexpected assignment statement in CONTAINS section at (1)
Couplings_O5RR.f90:121:44:

 Call CouplinghhhhhhT(lambdaH,vvSM,cplhhhhhh)
                                            1
Error: Unexpected CALL statement in CONTAINS section at (1)
Couplings_O5RR.f90:125:19:

 cplhhHpcHp = 0._dp
                   1
Error: Unexpected assignment statement in CONTAINS section at (1)
Couplings_O5RR.f90:126:46:

 Call CouplinghhHpcHpT(lambdaH,vvSM,cplhhHpcHp)
                                              1
Error: Unexpected CALL statement in CONTAINS section at (1)
Couplings_O5RR.f90:130:20:

 cplAhAhAhAh = 0._dp
                    1
Error: Unexpected assignment statement in CONTAINS section at (1)
Couplings_O5RR.f90:131:43:

 Call CouplingAhAhAhAhT(lambdaH,cplAhAhAhAh)
                                           1
Error: Unexpected CALL statement in CONTAINS section at (1)
Couplings_O5RR.f90:135:20:

 cplAhAhhhhh = 0._dp
                    1
Error: Unexpected assignment statement in CONTAINS section at (1)
Couplings_O5RR.f90:136:43:

 Call CouplingAhAhhhhhT(lambdaH,cplAhAhhhhh)
                                           1
Error: Unexpected CALL statement in CONTAINS section at (1)
Couplings_O5RR.f90:140:21:

 cplAhAhHpcHp = 0._dp
                     1
Error: Unexpected assignment statement in CONTAINS section at (1)
Couplings_O5RR.f90:141:45:

 Call CouplingAhAhHpcHpT(lambdaH,cplAhAhHpcHp)
                                             1
Error: Unexpected CALL statement in CONTAINS section at (1)
Couplings_O5RR.f90:145:20:

 cplhhhhhhhh = 0._dp
                    1
Error: Unexpected assignment statement in CONTAINS section at (1)
Couplings_O5RR.f90:146:43:

 Call CouplinghhhhhhhhT(lambdaH,cplhhhhhhhh)
                                           1
Error: Unexpected CALL statement in CONTAINS section at (1)
Couplings_O5RR.f90:150:21:

 cplhhhhHpcHp = 0._dp
                     1
Error: Unexpected assignment statement in CONTAINS section at (1)
Couplings_O5RR.f90:151:45:

 Call CouplinghhhhHpcHpT(lambdaH,cplhhhhHpcHp)
                                             1
Error: Unexpected CALL statement in CONTAINS section at (1)
Couplings_O5RR.f90:155:22:

 cplHpHpcHpcHp = 0._dp
                      1
Error: Unexpected assignment statement in CONTAINS section at (1)
Couplings_O5RR.f90:156:47:

 Call CouplingHpHpcHpcHpT(lambdaH,cplHpHpcHpcHp)
                                               1
Error: Unexpected CALL statement in CONTAINS section at (1)
Couplings_O5RR.f90:160:18:

 cplAhhhVZ = 0._dp
                  1
Error: Unexpected assignment statement in CONTAINS section at (1)
Couplings_O5RR.f90:161:40:

 Call CouplingAhhhVZT(g1,g2,TW,cplAhhhVZ)
                                        1
Error: Unexpected CALL statement in CONTAINS section at (1)
Couplings_O5RR.f90:165:20:

 cplAhHpcVWp = 0._dp
                    1
Error: Unexpected assignment statement in CONTAINS section at (1)
Couplings_O5RR.f90:166:38:

 Call CouplingAhHpcVWpT(g2,cplAhHpcVWp)
                                      1
Error: Unexpected CALL statement in CONTAINS section at (1)
Couplings_O5RR.f90:170:20:

 cplAhcHpVWp = 0._dp
                    1
Error: Unexpected assignment statement in CONTAINS section at (1)
Couplings_O5RR.f90:171:38:

 Call CouplingAhcHpVWpT(g2,cplAhcHpVWp)
                                      1
Error: Unexpected CALL statement in CONTAINS section at (1)
Couplings_O5RR.f90:175:20:

 cplhhHpcVWp = 0._dp
                    1
Error: Unexpected assignment statement in CONTAINS section at (1)
Couplings_O5RR.f90:176:38:

 Call CouplinghhHpcVWpT(g2,cplhhHpcVWp)
                                      1
Error: Unexpected CALL statement in CONTAINS section at (1)
Couplings_O5RR.f90:180:20:

 cplhhcHpVWp = 0._dp
                    1
Error: Unexpected assignment statement in CONTAINS section at (1)
Couplings_O5RR.f90:181:38:

 Call CouplinghhcHpVWpT(g2,cplhhcHpVWp)
                                      1
Error: Unexpected CALL statement in CONTAINS section at (1)
Couplings_O5RR.f90:185:19:

 cplHpcHpVP = 0._dp
                   1
Error: Unexpected assignment statement in CONTAINS section at (1)
Couplings_O5RR.f90:186:42:

 Call CouplingHpcHpVPT(g1,g2,TW,cplHpcHpVP)
                                          1
Error: Unexpected CALL statement in CONTAINS section at (1)
Couplings_O5RR.f90:190:19:

 cplHpcHpVZ = 0._dp
                   1
Error: Unexpected assignment statement in CONTAINS section at (1)
Couplings_O5RR.f90:191:42:

 Call CouplingHpcHpVZT(g1,g2,TW,cplHpcHpVZ)
                                          1
Error: Unexpected CALL statement in CONTAINS section at (1)
Couplings_O5RR.f90:195:21:

 cplSCdcSCdVG = 0._dp
                     1
Error: Unexpected assignment statement in CONTAINS section at (1)
Couplings_O5RR.f90:196:40:

 Call CouplingSCdcSCdVGT(g3,cplSCdcSCdVG)
                                        1
Error: Unexpected CALL statement in CONTAINS section at (1)
Couplings_O5RR.f90:200:21:

 cplSCdcSCdVP = 0._dp
                     1
Error: Unexpected assignment statement in CONTAINS section at (1)
Couplings_O5RR.f90:201:46:

 Call CouplingSCdcSCdVPT(g1,g2,TW,cplSCdcSCdVP)
                                              1
Error: Unexpected CALL statement in CONTAINS section at (1)
Couplings_O5RR.f90:205:22:

 cplSCdcSCuVWp = 0._dp
                      1
Error: Unexpected assignment statement in CONTAINS section at (1)
Couplings_O5RR.f90:206:42:

 Call CouplingSCdcSCuVWpT(g2,cplSCdcSCuVWp)
                                          1
Error: Unexpected CALL statement in CONTAINS section at (1)
Couplings_O5RR.f90:210:21:

 cplSCdcSCdVZ = 0._dp
                     1
Error: Unexpected assignment statement in CONTAINS section at (1)
Couplings_O5RR.f90:211:46:

 Call CouplingSCdcSCdVZT(g1,g2,TW,cplSCdcSCdVZ)
                                              1
Error: Unexpected CALL statement in CONTAINS section at (1)
Couplings_O5RR.f90:215:21:

 cplSCucSCuVG = 0._dp
                     1
Error: Unexpected assignment statement in CONTAINS section at (1)
Couplings_O5RR.f90:216:40:

 Call CouplingSCucSCuVGT(g3,cplSCucSCuVG)
                                        1
Error: Unexpected CALL statement in CONTAINS section at (1)
Couplings_O5RR.f90:220:21:

 cplSCucSCuVP = 0._dp
                     1
Error: Unexpected assignment statement in CONTAINS section at (1)
Couplings_O5RR.f90:221:46:

 Call CouplingSCucSCuVPT(g1,g2,TW,cplSCucSCuVP)
                                              1
Error: Unexpected CALL statement in CONTAINS section at (1)
Couplings_O5RR.f90:225:21:

 cplSCucSCuVZ = 0._dp
                     1
Error: Unexpected assignment statement in CONTAINS section at (1)
Couplings_O5RR.f90:226:46:

 Call CouplingSCucSCuVZT(g1,g2,TW,cplSCucSCuVZ)
                                              1
Error: Unexpected CALL statement in CONTAINS section at (1)
Couplings_O5RR.f90:230:23:

 cplSCucSCdcVWp = 0._dp
                       1
Error: Unexpected assignment statement in CONTAINS section at (1)
Couplings_O5RR.f90:231:44:

 Call CouplingSCucSCdcVWpT(g2,cplSCucSCdcVWp)
                                            1
Error: Unexpected CALL statement in CONTAINS section at (1)
Couplings_O5RR.f90:235:20:

 cplSISpcVWp = 0._dp
                    1
Error: Unexpected assignment statement in CONTAINS section at (1)
Couplings_O5RR.f90:236:38:

 Call CouplingSISpcVWpT(g2,cplSISpcVWp)
                                      1
Error: Unexpected CALL statement in CONTAINS section at (1)
Couplings_O5RR.f90:240:18:

 cplSISRVZ = 0._dp
                  1
Error: Unexpected assignment statement in CONTAINS section at (1)
Couplings_O5RR.f90:241:40:

and several pages with more similar errors. What could be the mistake? If I need to share my files with you, please let me know.

Best,
Sebastian

FStaub
Site Admin
Posts: 822
Joined: 13. Apr 2016, 14:05

Re: Several errors during compilation

Post by FStaub » 19. Jul 2018, 11:48

Hi,

I guess that is connected with your choice of the output names which end up in the same Fortran names for the coupling:

gA-gWp-VWp^* -> gagawpcvwp

gA-gWpC-VWp -> gagawpcvwp

the reason is that conj[VW] gives a 'c' at the beginning, while gWpC has an additional 'c' at the end.

Cheers,
Florian

sgurruti
Posts: 24
Joined: 2. Sep 2016, 15:46

Re: Several errors during compilation

Post by sgurruti » 19. Jul 2018, 19:40

Hi Florian,

You were right about that. I fixed it, but now I get another but different error:

Code: Select all

gfortran -c -g -ffree-line-length-none -J../include -I../include   Boundaries_O5RRlite.f90 
ar -ruc -U ../lib/libSPhenoO5RRlite.a Boundaries_O5RRlite.o
rm -f Boundaries_O5RRlite.o
gfortran -c -g -ffree-line-length-none -J../include -I../include   InputOutput_O5RRlite.f90 
InputOutput_O5RRlite.f90:5849:58:

 Write(91,"(3e16.8)",advance="No") BR_Hcs(1)/gTChargedHiggs(1)
                                                          1
Error: Function ‘gtchargedhiggs’ at (1) has no IMPLICIT type
InputOutput_O5RRlite.f90:5850:58:

 Write(91,"(3e16.8)",advance="No") BR_Hcb(1)/gTChargedHiggs(1)
                                                          1
Error: Function ‘gtchargedhiggs’ at (1) has no IMPLICIT type
InputOutput_O5RRlite.f90:5851:61:

 Write(91,"(3e16.8)",advance="No") BR_Htaunu(1)/gTChargedHiggs(1)
                                                             1
Error: Function ‘gtchargedhiggs’ at (1) has no IMPLICIT type
InputOutput_O5RRlite.f90:5852:59:

 Write(91,"(3e16.8)",advance="No") BR_HpTB(1)/gTChargedHiggs(1)
                                                           1
Error: Function ‘gtchargedhiggs’ at (1) has no IMPLICIT type
InputOutput_O5RRlite.f90:5853:59:

 Write(91,"(3e16.8)",advance="No") BR_HpWZ(1)/gTChargedHiggs(1)
                                                           1
Error: Function ‘gtchargedhiggs’ at (1) has no IMPLICIT type
InputOutput_O5RRlite.f90:5854:58:

 Write(91,"(3e16.8)",advance="No") BR_Hcs(2)/gTChargedHiggs(2)
                                                          1
Error: Function ‘gtchargedhiggs’ at (1) has no IMPLICIT type
InputOutput_O5RRlite.f90:5855:58:

 Write(91,"(3e16.8)",advance="No") BR_Hcb(2)/gTChargedHiggs(2)
                                                          1
Error: Function ‘gtchargedhiggs’ at (1) has no IMPLICIT type
InputOutput_O5RRlite.f90:5856:61:

 Write(91,"(3e16.8)",advance="No") BR_Htaunu(2)/gTChargedHiggs(2)
                                                             1
Error: Function ‘gtchargedhiggs’ at (1) has no IMPLICIT type
InputOutput_O5RRlite.f90:5857:59:
Do you know what I'm doing wrong this time?

Thank you so much,
Sebastian

FStaub
Site Admin
Posts: 822
Joined: 13. Apr 2016, 14:05

Re: Several errors during compilation

Post by FStaub » 19. Jul 2018, 20:42

You have most likely no field defined in particle.m as your charged Higgs.

sgurruti
Posts: 24
Joined: 2. Sep 2016, 15:46

Re: Several errors during compilation

Post by sgurruti » 25. Jul 2018, 04:51

Thank you so much, I was able to fix my errors!

Post Reply