geodynamics / sw4

SW4 (Seismic Waves, 4th order) implements substantial capabilities for 3-D seismic modeling, with a free surface condition on the top boundary, absorbing super-grid conditions on the far-field boundaries, and an arbitrary number of point force and/or point moment tensor source terms.
Other
129 stars 65 forks source link

Errors while installing v2 #17

Closed omrivolk closed 6 years ago

omrivolk commented 6 years ago

Hi,

While installing v2 on centos 6.2 got some errors. With v1.1 on the same machine it worked perfectly. Also installed v2 on Ubuntu without any problmes.

Thanks

wget https://geodynamics.org/cig/software/github/sw4/v2.01/sw4-v2.01.tgz
tar xzf sw4-v2.01.tgz
cd sw4-v2.01/
cd configs/
cp make.linux make.inc
cd ..
make
/bin/mkdir -p optimize
cd optimize; mpicxx -O3 -I../src -c ../src/main.C 
/bin/mkdir -p optimize
cd optimize; mpicxx -O3 -I../src -c ../src/EW.C 
/bin/mkdir -p optimize
cd optimize; mpicxx -O3 -I../src -c ../src/Sarray.C 
cd optimize; mpicxx -O3 -I../src -DEW_MADEBY=\"root\"  -DEW_OPT_LEVEL=\"OPTIMIZE\" -DEW_COMPILER=\""/opt/openmpi/bin/mpicxx"\" -DEW_LIBDIR=\"/export/apps/src/sw4-v2.0/lib\" -DEW_INCDIR=\"/export/apps/src/sw4-v2.0/include\" -DEW_HOSTNAME=\""nes.bgu.ac.il"\" -DEW_WHEN=\""Thu Nov 23 12:14:00 IST 2017"\" -c ../src/version.C
/bin/mkdir -p optimize
cd optimize; mpicxx -O3 -I../src -c ../src/parseInputFile.C 
/bin/mkdir -p optimize
cd optimize; mpicxx -O3 -I../src -c ../src/ForcingTwilight.C 
/bin/mkdir -p optimize
cd optimize; mpicxx -O3 -I../src -c ../src/curvilinearGrid.C 
/bin/mkdir -p optimize
cd optimize; gfortran -O3 -c ../src/boundaryOp.f
/bin/mkdir -p optimize
cd optimize; gfortran -O3 -c ../src/bndryOpNoGhost.f90
../src/bndryOpNoGhost.f90:4.32:

  integer, parameter:: dp=real64;
                                1
Error: Symbol 'real64' at (1) has no IMPLICIT type
../src/bndryOpNoGhost.f90:9.9:

  real(dp):: ghcof_no_gp(6), sbop_no_gp(0:5);
         1
Error: Symbol 'dp' at (1) has no IMPLICIT type
../src/bndryOpNoGhost.f90:10.9:

  real(dp):: acof_no_gp(6,8,8);
         1
Error: Symbol 'dp' at (1) has no IMPLICIT type
../src/bndryOpNoGhost.f90:12.9:

  real(dp):: d5(0:8), w0;
         1
Error: Symbol 'dp' at (1) has no IMPLICIT type
../src/bndryOpNoGhost.f90:13.9:

  real(dp):: acof(6,8,8), ghcof(6);
         1
Error: Symbol 'dp' at (1) has no IMPLICIT type
../src/bndryOpNoGhost.f90:22.2:

  d5(0) = -1.0;
  1
Error: Unclassifiable statement at (1)
../src/bndryOpNoGhost.f90:23.2:

  d5(1) = 5.0;
  1
Error: Unclassifiable statement at (1)
../src/bndryOpNoGhost.f90:24.2:

  d5(2) = -10.0;
  1
Error: Unclassifiable statement at (1)
../src/bndryOpNoGhost.f90:25.2:

  d5(3) = 10.0;
  1
Error: Unclassifiable statement at (1)
../src/bndryOpNoGhost.f90:26.2:

  d5(4) = -5.0;
  1
Error: Unclassifiable statement at (1)
../src/bndryOpNoGhost.f90:27.2:

  d5(5) = 1.0;
  1
Error: Unclassifiable statement at (1)
../src/bndryOpNoGhost.f90:28.19:

  w0 = 17.0/48.0_dp
                   1
Error: Missing kind-parameter at (1)
../src/bndryOpNoGhost.f90:32.5:

     acof_no_gp(i,j,k) = acof(i,j,k) + d5(j)/(4*w0)
     1
Error: Unclassifiable statement at (1)
../src/bndryOpNoGhost.f90:40.2:

  sbop_no_gp(0) = 0;
  1
Error: Unclassifiable statement at (1)
../src/bndryOpNoGhost.f90:41.2:

  sbop_no_gp(1) = -25.0/12.0_dp;
  1
Error: Unclassifiable statement at (1)
../src/bndryOpNoGhost.f90:42.2:

  sbop_no_gp(2) = 4.0_dp;
  1
Error: Unclassifiable statement at (1)
../src/bndryOpNoGhost.f90:43.2:

  sbop_no_gp(3) = -3.0_dp;
  1
Error: Unclassifiable statement at (1)
../src/bndryOpNoGhost.f90:44.2:

  sbop_no_gp(4) = 4.0/3.0_dp;
  1
Error: Unclassifiable statement at (1)
../src/bndryOpNoGhost.f90:45.2:

  sbop_no_gp(5) = -1.0/4.0_dp;
  1
Error: Unclassifiable statement at (1)
../src/bndryOpNoGhost.f90:1.37:

subroutine bndryOpNoGhost( acof_no_gp, ghcof_no_gp, sbop_no_gp) bind(c, name="b
                                     1
Error: Symbol 'acof_no_gp' at (1) has no IMPLICIT type
../src/bndryOpNoGhost.f90:1.50:

subroutine bndryOpNoGhost( acof_no_gp, ghcof_no_gp, sbop_no_gp) bind(c, name="b
                                                  1
Error: Symbol 'ghcof_no_gp' at (1) has no IMPLICIT type
../src/bndryOpNoGhost.f90:1.62:

subroutine bndryOpNoGhost( acof_no_gp, ghcof_no_gp, sbop_no_gp) bind(c, name="b
                                                              1
Error: Symbol 'sbop_no_gp' at (1) has no IMPLICIT type
../src/bndryOpNoGhost.f90:16.23:

  call varcoeffs4( acof, ghcof );
                       1
Error: Symbol 'acof' at (1) has no IMPLICIT type
../src/bndryOpNoGhost.f90:1.37:

subroutine bndryOpNoGhost( acof_no_gp, ghcof_no_gp, sbop_no_gp) bind(c, name="b
                                     1
Warning: Variable 'acof_no_gp' at (1) is a parameter to the BIND(C) procedure 'bndryopnoghost' but may not be C interoperable
../src/bndryOpNoGhost.f90:1.50:

subroutine bndryOpNoGhost( acof_no_gp, ghcof_no_gp, sbop_no_gp) bind(c, name="b
                                                  1
Warning: Variable 'ghcof_no_gp' at (1) is a parameter to the BIND(C) procedure 'bndryopnoghost' but may not be C interoperable
../src/bndryOpNoGhost.f90:1.62:

subroutine bndryOpNoGhost( acof_no_gp, ghcof_no_gp, sbop_no_gp) bind(c, name="b
                                                              1
Warning: Variable 'sbop_no_gp' at (1) is a parameter to the BIND(C) procedure 'bndryopnoghost' but may not be C interoperable
../src/bndryOpNoGhost.f90:20.4:

  d5 = 0;
    1
Error: Symbol 'd5' at (1) has no IMPLICIT type
../src/bndryOpNoGhost.f90:16.30:

  call varcoeffs4( acof, ghcof );
                              1
Error: Symbol 'ghcof' at (1) has no IMPLICIT type
Fatal Error: Error count reached limit of 25.
make: *** [optimize/bndryOpNoGhost.o] Error 1
andersp commented 6 years ago

Hi there, From the errors you report it looks like your Fortran compiler does not support the F2003 standard. The real64 kind is defined in the intrinsic module iso_fortran_env, which is part of that standard. The second error, regarding bind(c) is probably also related to using an old Fortran compiler. We did not use any of these constructs in v1.1 of SW4, which might explain why you managed to compile it without problems. If you are on a Linux system I recommend you install the gcc compiler suite (version 7). /Anders

From: omrivolk notifications@github.com Reply-To: geodynamics/sw4 reply@reply.github.com Date: Thursday, November 23, 2017 at 2:30 AM To: geodynamics/sw4 sw4@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: [geodynamics/sw4] Errors while installing v2 (#17)

Hi,

While installing v2 got the following errors, with v1.1 this works perfecly:

Thanks

wget https://geodynamics.org/cig/software/github/sw4/v2.01/sw4-v2.01.tgz

tar xzf sw4-v2.01.tgz

cd sw4-v2.01/

cd configs/

cp make.linux make.inc

cd ..

make

/bin/mkdir -p optimize

cd optimize; mpicxx -O3 -I../src -c ../src/main.C

/bin/mkdir -p optimize

cd optimize; mpicxx -O3 -I../src -c ../src/EW.C

/bin/mkdir -p optimize

cd optimize; mpicxx -O3 -I../src -c ../src/Sarray.C

cd optimize; mpicxx -O3 -I../src -DEW_MADEBY=\"root\" -DEW_OPT_LEVEL=\"OPTIMIZE\" -DEW_COMPILER=\""/opt/openmpi/bin/mpicxx"\" -DEW_LIBDIR=\"/export/apps/src/sw4-v2.0/lib\" -DEW_INCDIR=\"/export/apps/src/sw4-v2.0/include\" -DEW_HOSTNAME=\""nes.bgu.ac.il"\" -DEW_WHEN=\""Thu Nov 23 12:14:00 IST 2017"\" -c ../src/version.C

/bin/mkdir -p optimize

cd optimize; mpicxx -O3 -I../src -c ../src/parseInputFile.C

/bin/mkdir -p optimize

cd optimize; mpicxx -O3 -I../src -c ../src/ForcingTwilight.C

/bin/mkdir -p optimize

cd optimize; mpicxx -O3 -I../src -c ../src/curvilinearGrid.C

/bin/mkdir -p optimize

cd optimize; gfortran -O3 -c ../src/boundaryOp.f

/bin/mkdir -p optimize

cd optimize; gfortran -O3 -c ../src/bndryOpNoGhost.f90

../src/bndryOpNoGhost.f90:4.32:

integer, parameter:: dp=real64;

                            1

Error: Symbol 'real64' at (1) has no IMPLICIT type

../src/bndryOpNoGhost.f90:9.9:

.

.

.

subroutine bndryOpNoGhost( acof_no_gp, ghcof_no_gp, sbop_no_gp) bind(c, name="b

                                 1

Warning: Variable 'acof_no_gp' at (1) is a parameter to the BIND(C) procedure 'bndryopnoghost' but may not be C interoperable

../src/bndryOpNoGhost.f90:1.50:

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/geodynamics/sw4/issues/17, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AIgih8uWD-K-VAAw6Edrxbkm-1CSaTn2ks5s5UlJgaJpZM4QoiYu.

omrivolk commented 6 years ago

Hi Anders, That worked. Thank you. Omry