Hi,
I'm getting fortran errors while trying to build ET on my local cluster (Hawk, in Cardiff), as well as lots of warnings. Any suggestions?
I'm using intel compilers and have tried these options
F90FLAGS = -g -xCORE-AVX512 -safe-cray-ptr -traceback -align -pad
These are the error messages:
/nfshome/store04/users/c.c941286329/Cactus/configs/sim/build/GRHydro/GRHydro_HLLE.f90(2694): error #7844: Invalid directive. /nfshome/store04/users/c.c941286329/Cactus/configs/sim/build/GRHydro/GRHydro_HLLE.f90(2700): error #6410: This name has not been declared as an array or a function. [EOS_C] /nfshome/store04/users/c.c941286329/Cactus/configs/sim/build/GRHydro/GRHydro_HLLE.f90(2718): error #6410: This name has not been declared as an array or a function. [XPRESS] /nfshome/store04/users/c.c941286329/Cactus/configs/sim/build/GRHydro/GRHydro_HLLE.f90(2721): error #6410: This name has not been declared as an array or a function. [EOS_C] /nfshome/store04/users/c.c941286329/Cactus/configs/sim/build/GRHydro/GRHydro_HLLE.f90(2728): error #6410: This name has not been declared as an array or a function. [EOS_C] /nfshome/store04/users/c.c941286329/Cactus/configs/sim/build/GRHydro/GRHydro_HLLE.f90(2736): error #6790: This is an invalid statement; an END [PROGRAM] statement is required. /nfshome/store04/users/c.c941286329/Cactus/configs/sim/build/GRHydro/GRHydro_HLLE.f90(2736): error #6785: This name does not match the unit name. [H_VISCOSITY]
The many warnings are mostly like this:
/nfshome/store04/users/c.c941286329/Cactus/configs/sim/build/GRHydro/GRHydro_HLLE.f90(2710): warning #6717: This name has not been given an explicit type. [ANYERR] /nfshome/store04/users/c.c941286329/Cactus/configs/sim/build/GRHydro/GRHydro_HLLE.f90(2713): warning #8889: Explicit declaration of the EXTERNAL attribute is required. [RHO]
What am I missing?
Thanks, Rhiannon.
Hello Rhiannon,
Hmm, there's not quite enough information in there to immediately see what may be going on unfortunately.
http://einsteintoolkit.org/support.html#general-guidelines-for-questions
In this case, if you could attach the file /nfshome/store04/users/c.c941286329/Cactus/configs/sim/build/GRHydro/GRHydro_HLLE.f90 that contains the error, that would also be good.
Going by a hunch:
Do you perhaps set FPP=cpp in your option list but not also FPPFLAGS=-traditional?
(Parts of) Cactus assume that the preprocessor used by Cactus to preprocess Fortran code use the "traditional" (pre 1989, Kernighan&Ritchie) behaviour of the preprocessor.
Yours, Roland
On Mon, 22 Jul 2024 18:11:46 +0000, Rhiannon Silva wrote:
Hi,
I'm getting fortran errors while trying to build ET on my local cluster (Hawk, in Cardiff), as well as lots of warnings. Any suggestions?
I'm using intel compilers and have tried these options
F90FLAGS = -g -xCORE-AVX512 -safe-cray-ptr -traceback -align -pad
These are the error messages:
/nfshome/store04/users/c.c941286329/Cactus/configs/sim/build/GRHydro/GRHydro_HLLE.f90(2694): error #7844: Invalid directive. /nfshome/store04/users/c.c941286329/Cactus/configs/sim/build/GRHydro/GRHydro_HLLE.f90(2700): error #6410: This name has not been declared as an array or a function. [EOS_C] /nfshome/store04/users/c.c941286329/Cactus/configs/sim/build/GRHydro/GRHydro_HLLE.f90(2718): error #6410: This name has not been declared as an array or a function. [XPRESS] /nfshome/store04/users/c.c941286329/Cactus/configs/sim/build/GRHydro/GRHydro_HLLE.f90(2721): error #6410: This name has not been declared as an array or a function. [EOS_C] /nfshome/store04/users/c.c941286329/Cactus/configs/sim/build/GRHydro/GRHydro_HLLE.f90(2728): error #6410: This name has not been declared as an array or a function. [EOS_C] /nfshome/store04/users/c.c941286329/Cactus/configs/sim/build/GRHydro/GRHydro_HLLE.f90(2736): error #6790: This is an invalid statement; an END [PROGRAM] statement is required. /nfshome/store04/users/c.c941286329/Cactus/configs/sim/build/GRHydro/GRHydro_HLLE.f90(2736): error #6785: This name does not match the unit name. [H_VISCOSITY]
The many warnings are mostly like this:
/nfshome/store04/users/c.c941286329/Cactus/configs/sim/build/GRHydro/GRHydro_HLLE.f90(2710): warning #6717: This name has not been given an explicit type. [ANYERR] /nfshome/store04/users/c.c941286329/Cactus/configs/sim/build/GRHydro/GRHydro_HLLE.f90(2713): warning #8889: Explicit declaration of the EXTERNAL attribute is required. [RHO]
What am I missing?
Thanks, Rhiannon.
Yours, Roland
I have this:
CPP = cpp FPP = cpp CC = icc CXX = icpc F90 = ifort
CPPFLAGS = FPPFLAGS = -traditional
I've attached the file that contains the error.
Thanks, Rhiannon. ________________________________ From: Roland Haas rhaas@illinois.edu Sent: 22 July 2024 19:35 To: Rhiannon Silva SilvaRL@cardiff.ac.uk Cc: Einstein Toolkit Users users@einsteintoolkit.org Subject: Re: [Users] Fortran compile errors
External email to Cardiff University - Take care when replying/opening attachments or links. Nid ebost mewnol o Brifysgol Caerdydd yw hwn - Cymerwch ofal wrth ateb/agor atodiadau neu ddolenni.
Hello Rhiannon,
Hmm, strange. For line 2694 it complains about the last of the !$OMP lines in:
--8<-- !$OMP PARALLEL DO PRIVATE(i,j,k,& !$OMP anyerr, keyerr, keytemp,& !$OMP warnline, xpress,xeps,xtemp,xye, dpdrho, dpdeps, cs2) do k = 1, nz do j = 1, ny do i = 1, nx --8<--
gfortran (13.3.0) is happy with that line.
And the errors about line 2736 refers to
--8<-- end subroutine H_viscosity --8<--
from the error messages my guess would be that something got messed up with the subroutine handling?
Yours, Roland
On Mon, 22 Jul 2024 19:06:57 +0000, Rhiannon Silva wrote:
I have this:
CPP = cpp FPP = cpp CC = icc CXX = icpc F90 = ifort
CPPFLAGS = FPPFLAGS = -traditional
I've attached the file that contains the error.
Thanks, Rhiannon. ________________________________ From: Roland Haas rhaas@illinois.edu Sent: 22 July 2024 19:35 To: Rhiannon Silva SilvaRL@cardiff.ac.uk Cc: Einstein Toolkit Users users@einsteintoolkit.org Subject: Re: [Users] Fortran compile errors
External email to Cardiff University - Take care when replying/opening attachments or links. Nid ebost mewnol o Brifysgol Caerdydd yw hwn - Cymerwch ofal wrth ateb/agor atodiadau neu ddolenni.
users@lists.einsteintoolkit.org