SPECFEM / specfem3d

SPECFEM3D_Cartesian simulates acoustic (fluid), elastic (solid), coupled acoustic/elastic, poroelastic or seismic wave propagation in any type of conforming mesh of hexahedra (structured or not).
GNU General Public License v3.0
398 stars 225 forks source link

compile error with --enable-double-precision config flag #199

Closed luet closed 10 years ago

luet commented 10 years ago

Configuring with:

 ./configure FC=gfortran CC=gcc MPIFC=mpif90 MPICC=mpicc --enable-double-precision 

gives me a compile error:

gfortran  -std=f2003 -fimplicit-none -frange-check -O2 -fmax-errors=10 -pedantic -pedantic-errors -Waliasing -Wampersand -Wcharacter-truncation -Wline-truncation -Wsurprising -Wno-tabs -Wunderflow -ffpe-trap=invalid,zero,overflow  -J./obj -I./obj -I.  -I./setup  -c -o obj/fault_solver_dynamic.spec.o src/specfem3D/fault_solver_dynamic.f90
src/specfem3D/fault_solver_dynamic.f90:518.31:

    Vf_new(i)=rtsafe(funcd,0.0,Vf_old(i)+5.0,1e-5,tStick(i),-T(3,i),bc%Z(i)
                           1
   Error: Type mismatch in argument 'x1' at (1); passed REAL(4) to REAL(8)
   src/specfem3D/fault_solver_dynamic.f90:526.31:

    Vf_new(i)=rtsafe(funcd,0.0,Vf_old(i)+5.0,1e-5,tStick(i),-T(3,i),bc%Z(i)
                           1
    Error: Type mismatch in argument 'x1' at (1); passed REAL(4) to REAL(8)
    make: *** [obj/fault_solver_dynamic.spec.o] Error 1

See the buildbot build.

Am I doing something wrong?

Thanks,

David

komatits commented 10 years ago

Hi David,

not at all, you are doing things right; it is just that there is a small problem in the code because some of these rarely-used options (such as --enable-double-precision) may currently lead to compilation errors that are easy to fix. That is why it is important to put all of them in BuildBot to make sure we fix all of the minor problems in the next few days and that they do not happen in the future any more.

I'll fix the two errors below in a few minutes.

Thanks, Dimitri.

On 30/07/2014 20:08, David Luet wrote:

Configuring with:

./configure FC=gfortran CC=gcc MPIFC=mpif90 MPICC=mpicc --enable-double-precision

gives me a compile error:

|gfortran -std=f2003 -fimplicit-none -frange-check -O2 -fmax-errors=10 -pedantic -pedantic-errors -Waliasing -Wampersand -Wcharacter-truncation -Wline-truncation -Wsurprising -Wno-tabs -Wunderflow -ffpe-trap=invalid,zero,overflow -J./obj -I./obj -I. -I./setup -c -o obj/fault_solver_dynamic.spec.o src/specfem3D/fault_solver_dynamic.f90 src/specfem3D/fault_solver_dynamic.f90:518.31:

 Vf_new(i)=rtsafe(funcd,0.0,Vf_old(i)+5.0,1e-5,tStick(i),-T(3,i),bc%Z(i)
                        1
Error: Type mismatch in argument 'x1' at (1); passed REAL(4) to REAL(8)
src/specfem3D/fault_solver_dynamic.f90:526.31:

 Vf_new(i)=rtsafe(funcd,0.0,Vf_old(i)+5.0,1e-5,tStick(i),-T(3,i),bc%Z(i)
                        1
 Error: Type mismatch in argument 'x1' at (1); passed REAL(4) to REAL(8)
 make: *** [obj/fault_solver_dynamic.spec.o] Error 1

See the buildbot build http://specfem3d-buildbot.princeton.edu/builders/specfem3d_builder/builds/73/steps/--enable-double-precision_make/logs/stdio.

Am I doing something wrong?

Thanks,

David

— Reply to this email directly or view it on GitHub https://github.com/geodynamics/specfem3d/issues/199.

Dimitri Komatitsch CNRS Research Director (DR CNRS), Laboratory of Mechanics and Acoustics, UPR 7051, Marseille, France http://komatitsch.free.fr

komatits commented 10 years ago

Hi David,

Fixed!

Best wishes, Dimitri.

On 30/07/2014 21:25, Dimitri Komatitsch wrote:

Hi David,

not at all, you are doing things right; it is just that there is a small problem in the code because some of these rarely-used options (such as --enable-double-precision) may currently lead to compilation errors that are easy to fix. That is why it is important to put all of them in BuildBot to make sure we fix all of the minor problems in the next few days and that they do not happen in the future any more.

I'll fix the two errors below in a few minutes.

Thanks, Dimitri.

On 30/07/2014 20:08, David Luet wrote:

Configuring with:

./configure FC=gfortran CC=gcc MPIFC=mpif90 MPICC=mpicc --enable-double-precision

gives me a compile error:

|gfortran -std=f2003 -fimplicit-none -frange-check -O2 -fmax-errors=10 -pedantic -pedantic-errors -Waliasing -Wampersand -Wcharacter-truncation -Wline-truncation -Wsurprising -Wno-tabs -Wunderflow -ffpe-trap=invalid,zero,overflow -J./obj -I./obj -I. -I./setup -c -o obj/fault_solver_dynamic.spec.o src/specfem3D/fault_solver_dynamic.f90 src/specfem3D/fault_solver_dynamic.f90:518.31:

Vf_new(i)=rtsafe(funcd,0.0,Vf_old(i)+5.0,1e-5,tStick(i),-T(3,i),bc%Z(i) 1 Error: Type mismatch in argument 'x1' at (1); passed REAL(4) to REAL(8) src/specfem3D/fault_solver_dynamic.f90:526.31:

Vf_new(i)=rtsafe(funcd,0.0,Vf_old(i)+5.0,1e-5,tStick(i),-T(3,i),bc%Z(i) 1 Error: Type mismatch in argument 'x1' at (1); passed REAL(4) to REAL(8) make: *\ [obj/fault_solver_dynamic.spec.o] Error 1 |

See the buildbot build http://specfem3d-buildbot.princeton.edu/builders/specfem3d_builder/builds/73/steps/--enable-double-precision_make/logs/stdio.

Am I doing something wrong?

Thanks,

David

— Reply to this email directly or view it on GitHub https://github.com/geodynamics/specfem3d/issues/199.

Dimitri Komatitsch CNRS Research Director (DR CNRS), Laboratory of Mechanics and Acoustics, UPR 7051, Marseille, France http://komatitsch.free.fr