Closed omrivolk closed 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.
Hi Anders, That worked. Thank you. Omry
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