Project

General

Profile

shadow3 source compilation issues

Added by Apollonio, Marco over 7 years ago

I am new to this forum and I have a question on the source code for SHADOW3 I am trying to compile. Please re-direct me to the right section of this forum in case.

I have downloaded shadow3 package Shadow3-20120529-source.tar.gz, expanded it and try to "make all"
(FC = gfortran). I work on a Linux platform (Red Hat Enterprise Linux Server release 5.8)
I first encounter an error when I try to precompile shadow_version_precpp.F90. The #use line is
considered invalid. Despite this compilation goes on producing shadow_version.f90, where the line
#use shadow_globaldefinitions, only : ski, skr, skc, sklen
has disappeared, and shadow_version.mod.
I sense this initial problem causes all the following errors and makes compilation fail.
Below I have put a breakdown of the error messages. I would be grateful if I could have a tip on how to proceed. Thanks a lot,

Marco

[xph53246@cs04r-sc-serv-04 shadow3]$ make all
./shadow_version.sh gfortran
./Makefile_use_precompiler shadow_version
+++
----- Using script ./Makefile_use_precompiler....
-----
-----Called: ./Makefile_use_precompiler shadow_version
-----
----- We are NOT using Darwin but Linux
-----
-----Running: cpp -w -C -I. shadow_version_precpp.F90 > tmp1_shadow_version.f90
shadow_version_precpp.F90:5:6: error: invalid preprocessing directive #use

-----
-----Running: sed 's/newline/\n/g' < tmp1_shadow_version.f90 > tmp2_shadow_version.f90
-----
-----Running: sed 's/^#/!#/' < tmp2_shadow_version.f90 > shadow_version.f90
+++
gfortran -fPIC -ffree-line-length-none -c shadow_version.f90
gfortran -fPIC -ffree-line-length-none -c shadow_globaldefinitions.f90
In file shadow_globaldefinitions.f90:6

use, intrinsic :: ISO_C_BINDING
1
Error: Unclassifiable statement at (1)
In file shadow_globaldefinitions.f90:12
integer, parameter, public :: ski = C_INT

Error: Symbol 'c_int' at (1) has no IMPLICIT type
In file shadow_globaldefinitions.f90:13

integer, parameter, public :: skr = C_DOUBLE
1
Error: Symbol 'c_double' at (1) has no IMPLICIT type
In file shadow_globaldefinitions.f90:14
integer, parameter, public :: skc = C_CHAR
1
Error: Symbol 'c_char' at (1) has no IMPLICIT type
In file shadow_globaldefinitions.f90:15
integer, parameter, public :: skx = C_DOUBLE_COMPLEX
1
Error: Symbol 'c_double_complex' at (1) has no IMPLICIT type
In file shadow_globaldefinitions.f90:37
integer(kind=ski), parameter :: OS= 2    ! Linux
1
Error: Symbol 'ski' at (1) has no IMPLICIT type
In file shadow_globaldefinitions.f90:57
real(kind=skr), parameter :: pi     = 3.141592653589793238462643
1
Error: Symbol 'skr' at (1) has no IMPLICIT type
In file shadow_globaldefinitions.f90:58
real(kind=skr), parameter :: twopi  = 6.283185307179586467925287
1
Error: Symbol 'skr' at (1) has no IMPLICIT type
In file shadow_globaldefinitions.f90:59
real(kind=skr), parameter :: pihalf = 1.570796326794896619231322
1
Error: Symbol 'skr' at (1) has no IMPLICIT type
In file shadow_globaldefinitions.f90:60
real(kind=skr), parameter :: todeg  =57.295779513082320876798155
1
Error: Symbol 'skr' at (1) has no IMPLICIT type
In file shadow_globaldefinitions.f90:61
real(kind=skr), parameter :: torad  = 0.017453292519943295769237
1
Error: Symbol 'skr' at (1) has no IMPLICIT type
In file shadow_globaldefinitions.f90:78
real(kind=skr), parameter :: tocm =   12398.4192920042D-8
1
Error: Symbol 'skr' at (1) has no IMPLICIT type
In file shadow_globaldefinitions.f90:79
real(kind=skr), parameter :: toangs = 12398.4192920042
1
Error: Symbol 'skr' at (1) has no IMPLICIT type
make: *** [shadow_globaldefinitions.o] Error 1