seismology-RUB / SPECFEM3D_Cartesian_for_ASKI

Extension package for ASKI: use SPECFEM3D_Cartesian as forward code
5 stars 2 forks source link

problem compiling specfem3d with ifort #1

Closed schumf closed 8 years ago

schumf commented 8 years ago

Kai from Sydney found a problem back in April 2016 (see error log below):

Hi Florian, Sorry to disturb you again. I have some compiling problems (see the attached file) when I try to compile the specfem3d_cartesian_git_master_2015-11-07_extended_for_aski.tar.gz. What I use is FC=ifort and the mpif90 is from a ifort compiled openmpi on our cluster. I have no problem compiling this package on anther server with FC=gfortran and mpif90 from a gfortran compiled openmpi. As I have no permit to change any software on the cluster, could it be possible to change your code to make to adapted to ifort compiled mpif90 (I have no problem when compile the original SPECFEM3D using ifort on the cluster) ? Best, Kai

Using bundled Scotch in directory: ./src/decompose_mesh/scotch/src
make -C ./src/decompose_mesh/scotch/src
make[1]: Entering directory `/home/kai/ASKI/SPECFEM3D_Cartesian_git_master_2015-11-07_extended_for_ASKI/src/decompose_mesh/scotch_5.1.12b/src'
(cd libscotch ;      make scotch ; make install)
make[2]: Entering directory `/home/kai/ASKI/SPECFEM3D_Cartesian_git_master_2015-11-07_extended_for_ASKI/src/decompose_mesh/scotch_5.1.12b/src/libscotch'
make CC="gcc" CCD="gcc" \
                    scotch.h                \
                    scotchf.h               \
                    libscotch.a             \
                    libscotcherr.a          \
                    libscotcherrexit.a
make[3]: Entering directory `/home/kai/ASKI/SPECFEM3D_Cartesian_git_master_2015-11-07_extended_for_ASKI/src/decompose_mesh/scotch_5.1.12b/src/libscotch'
make[3]: `scotch.h' is up to date.
make[3]: `scotchf.h' is up to date.
make[3]: `libscotch.a' is up to date.
make[3]: `libscotcherr.a' is up to date.
make[3]: `libscotcherrexit.a' is up to date.
make[3]: Leaving directory `/home/kai/ASKI/SPECFEM3D_Cartesian_git_master_2015-11-07_extended_for_ASKI/src/decompose_mesh/scotch_5.1.12b/src/libscotch'
make[2]: Leaving directory `/home/kai/ASKI/SPECFEM3D_Cartesian_git_master_2015-11-07_extended_for_ASKI/src/decompose_mesh/scotch_5.1.12b/src/libscotch'
make[2]: Entering directory `/home/kai/ASKI/SPECFEM3D_Cartesian_git_master_2015-11-07_extended_for_ASKI/src/decompose_mesh/scotch_5.1.12b/src/libscotch'
make[2]: Nothing to be done for `install'.
make[2]: Leaving directory `/home/kai/ASKI/SPECFEM3D_Cartesian_git_master_2015-11-07_extended_for_ASKI/src/decompose_mesh/scotch_5.1.12b/src/libscotch'
(cd scotch ;         make scotch ; make install)
make[2]: Entering directory `/home/kai/ASKI/SPECFEM3D_Cartesian_git_master_2015-11-07_extended_for_ASKI/src/decompose_mesh/scotch_5.1.12b/src/scotch'
make CC="gcc" SCOTCHLIB=scotch  \
                    acpl                \
                    amk_ccc             \
                    amk_fft2                \
                    amk_grf             \
                    amk_hy              \
                    amk_m2              \
                    amk_p2              \
                    atst                \
                    gbase               \
                    gcv             \
                    gmap                \
                    gmk_hy              \
                    gmk_m2              \
                    gmk_m3              \
                    gmk_msh             \
                    gmk_ub2             \
                    gmtst               \
                    gord                \
                    gotst               \
                    gout                \
                    gpart               \
                    gscat               \
                    gtst                \
                    mcv             \
                    mmk_m2              \
                    mmk_m3              \
                    mord                \
                    mtst
make[3]: Entering directory `/home/kai/ASKI/SPECFEM3D_Cartesian_git_master_2015-11-07_extended_for_ASKI/src/decompose_mesh/scotch_5.1.12b/src/scotch'
make[3]: `acpl' is up to date.
make[3]: `amk_ccc' is up to date.
make[3]: `amk_fft2' is up to date.
make[3]: `amk_grf' is up to date.
make[3]: `amk_hy' is up to date.
make[3]: `amk_m2' is up to date.
make[3]: `amk_p2' is up to date.
make[3]: `atst' is up to date.
make[3]: `gbase' is up to date.
make[3]: `gcv' is up to date.
make[3]: `gmap' is up to date.
make[3]: `gmk_hy' is up to date.
make[3]: `gmk_m2' is up to date.
make[3]: `gmk_m3' is up to date.
make[3]: `gmk_msh' is up to date.
make[3]: `gmk_ub2' is up to date.
make[3]: `gmtst' is up to date.
make[3]: `gord' is up to date.
make[3]: `gotst' is up to date.
make[3]: `gout' is up to date.
make[3]: `gpart' is up to date.
make[3]: `gscat' is up to date.
make[3]: `gtst' is up to date.
make[3]: `mcv' is up to date.
make[3]: `mmk_m2' is up to date.
make[3]: `mmk_m3' is up to date.
make[3]: `mord' is up to date.
make[3]: `mtst' is up to date.
make[3]: Leaving directory `/home/kai/ASKI/SPECFEM3D_Cartesian_git_master_2015-11-07_extended_for_ASKI/src/decompose_mesh/scotch_5.1.12b/src/scotch'
make[2]: Leaving directory `/home/kai/ASKI/SPECFEM3D_Cartesian_git_master_2015-11-07_extended_for_ASKI/src/decompose_mesh/scotch_5.1.12b/src/scotch'
make[2]: Entering directory `/home/kai/ASKI/SPECFEM3D_Cartesian_git_master_2015-11-07_extended_for_ASKI/src/decompose_mesh/scotch_5.1.12b/src/scotch'
make[2]: Nothing to be done for `install'.
make[2]: Leaving directory `/home/kai/ASKI/SPECFEM3D_Cartesian_git_master_2015-11-07_extended_for_ASKI/src/decompose_mesh/scotch_5.1.12b/src/scotch'
make[1]: Leaving directory `/home/kai/ASKI/SPECFEM3D_Cartesian_git_master_2015-11-07_extended_for_ASKI/src/decompose_mesh/scotch_5.1.12b/src'
ifort -g -xHost -fpe0 -ftz -assume buffered_io -assume byterecl -align sequence -vec-report0 -std03 -diag-disable 6477 -implicitnone -gen-interfaces -warn all -O3 -check nobounds  -mod ./obj -I./obj -I.  -I./setup  -c -o obj/model_external_values.gen.o src/generate_databases/model_external_values.f90
src/generate_databases/model_external_values.f90(819): warning #5268: Extension to standard: The text exceeds right hand column allowed on the line.
  allocate(d(maxnnodes),u(maxnnodes),wrho(maxnnodes),wvp(maxnnodes),wvs(maxnnodes),wQmu(maxnnodes),wQkappa(maxnnodes))  ! local variables
------------------------------------------------------------------------------------------------------------------------------------^
src/generate_databases/model_external_values.f90(824): warning #5268: Extension to standard: The text exceeds right hand column allowed on the line.
     ! in case of mA1Db%nnodes(ilayer) == 2, the spline interpolation (in that case linear interpolation) works, as sprho,spvp,spvs = 0. initially
------------------------------------------------------------------------------------------------------------------------------------^
src/generate_databases/model_external_values.f90(855): warning #5268: Extension to standard: The text exceeds right hand column allowed on the line.
     ! now calculate the second derivatives of the spline, assuming them being zero at the extremal nodes (natural boundary conditions)
------------------------------------------------------------------------------------------------------------------------------------^
src/generate_databases/model_external_values.f90(1588): remark #7712: This variable has not been used.   [IFLAG_ANISO]
  subroutine model_external_values(xmesh,ymesh,zmesh,rho,vp,vs,qkappa_atten,qmu_atten,iflag_aniso,idomain_id )
--------------------------------------------------------------------------------------^
src/generate_databases/model_external_values.f90(1588): remark #7712: This variable has not been used.   [IDOMAIN_ID]
  subroutine model_external_values(xmesh,ymesh,zmesh,rho,vp,vs,qkappa_atten,qmu_atten,iflag_aniso,idomain_id )
--------------------------------------------------------------------------------------------------^
src/generate_databases/model_external_values.f90(1716): warning #5268: Extension to standard: The text exceeds right hand column allowed on the line.
  ! after this loop, ilayer should be the index of the layer which contains the current point (each layer contains its bottom depth, the first layer contains the surface of the earth)
------------------------------------------------------------------------------------------------------------------------------------^
src/generate_databases/model_external_values.f90(2274): remark #7712: This variable has not been used.   [X]
  subroutine FindLayer(x,y,z)
-----------------------^
src/generate_databases/model_external_values.f90(2274): remark #7712: This variable has not been used.   [Y]
  subroutine FindLayer(x,y,z)
-------------------------^
src/generate_databases/model_external_values.f90(2274): remark #7712: This variable has not been used.   [Z]
  subroutine FindLayer(x,y,z)
---------------------------^
src/generate_databases/model_external_values.f90(339): error #8284: If the actual argument is scalar, the dummy argument shall be scalar unless the actual argument is of type character or is an element of an array that is not assumed shape, pointer, or polymorphic.   [BUFFER]
  call bcast_all_l(use_ASKI_background_model,1)
-------^
src/generate_databases/model_external_values.f90(340): error #8284: If the actual argument is scalar, the dummy argument shall be scalar unless the actual argument is of type character or is an element of an array that is not assumed shape, pointer, or polymorphic.   [BUFFER]
  call bcast_all_l(impose_ASKI_inverted_model,1)
-------^
src/generate_databases/model_external_values.f90(346): error #8284: If the actual argument is scalar, the dummy argument shall be scalar unless the actual argument is of type character or is an element of an array that is not assumed shape, pointer, or polymorphic.   [BUFFER]
     call bcast_all_r(mA1Db%zmax,1)
----------^
src/generate_databases/model_external_values.f90(347): error #8284: If the actual argument is scalar, the dummy argument shall be scalar unless the actual argument is of type character or is an element of an array that is not assumed shape, pointer, or polymorphic.   [BUFFER]
     call bcast_all_i(mA1Db%nlayers,1)
----------^
src/generate_databases/model_external_values.f90(348): error #8284: If the actual argument is scalar, the dummy argument shall be scalar unless the actual argument is of type character or is an element of an array that is not assumed shape, pointer, or polymorphic.   [BUFFER]
     call bcast_all_i(maxnnodes,1)
----------^
src/generate_databases/model_external_values.f90(375): error #8284: If the actual argument is scalar, the dummy argument shall be scalar unless the actual argument is of type character or is an element of an array that is not assumed shape, pointer, or polymorphic.   [BUFFER]
     call bcast_all_i(model_ASKI_interpolation_type,1)
----------^
src/generate_databases/model_external_values.f90(378): error #8284: If the actual argument is scalar, the dummy argument shall be scalar unless the actual argument is of type character or is an element of an array that is not assumed shape, pointer, or polymorphic.   [BUFFER]
        call bcast_all_r(model_ASKI_factor_shepard_radius,1)
-------------^
src/generate_databases/model_external_values.f90(381): error #8284: If the actual argument is scalar, the dummy argument shall be scalar unless the actual argument is of type character or is an element of an array that is not assumed shape, pointer, or polymorphic.   [BUFFER]
     call bcast_all_i(mAc%ncell,1)
----------^
src/generate_databases/model_external_values.f90(382): error #8284: If the actual argument is scalar, the dummy argument shall be scalar unless the actual argument is of type character or is an element of an array that is not assumed shape, pointer, or polymorphic.   [BUFFER]
     call bcast_all_i(mAc%max_nnb,1)
----------^
src/generate_databases/model_external_values.f90(391): error #8284: If the actual argument is scalar, the dummy argument shall be scalar unless the actual argument is of type character or is an element of an array that is not assumed shape, pointer, or polymorphic.   [BUFFER]
     call bcast_all_i(model_ASKI_pmtrz,1)
----------^
src/generate_databases/model_external_values.f90(395): error #8284: If the actual argument is scalar, the dummy argument shall be scalar unless the actual argument is of type character or is an element of an array that is not assumed shape, pointer, or polymorphic.   [BUFFER]
        call bcast_all_r(mAisoL%maxr_rho,1)
-------------^
src/generate_databases/model_external_values.f90(396): error #8284: If the actual argument is scalar, the dummy argument shall be scalar unless the actual argument is of type character or is an element of an array that is not assumed shape, pointer, or polymorphic.   [BUFFER]
        call bcast_all_r(mAisoL%maxr_lambda,1)
-------------^
src/generate_databases/model_external_values.f90(397): error #8284: If the actual argument is scalar, the dummy argument shall be scalar unless the actual argument is of type character or is an element of an array that is not assumed shape, pointer, or polymorphic.   [BUFFER]
        call bcast_all_r(mAisoL%maxr_mu,1)
-------------^
src/generate_databases/model_external_values.f90(398): error #8284: If the actual argument is scalar, the dummy argument shall be scalar unless the actual argument is of type character or is an element of an array that is not assumed shape, pointer, or polymorphic.   [BUFFER]
        call bcast_all_i(mAisoL%nval_rho,1)
-------------^
src/generate_databases/model_external_values.f90(399): error #8284: If the actual argument is scalar, the dummy argument shall be scalar unless the actual argument is of type character or is an element of an array that is not assumed shape, pointer, or polymorphic.   [BUFFER]
        call bcast_all_i(mAisoL%nval_lambda,1)
-------------^
src/generate_databases/model_external_values.f90(400): error #8284: If the actual argument is scalar, the dummy argument shall be scalar unless the actual argument is of type character or is an element of an array that is not assumed shape, pointer, or polymorphic.   [BUFFER]
        call bcast_all_i(mAisoL%nval_mu,1)
-------------^
src/generate_databases/model_external_values.f90(426): error #8284: If the actual argument is scalar, the dummy argument shall be scalar unless the actual argument is of type character or is an element of an array that is not assumed shape, pointer, or polymorphic.   [BUFFER]
        call bcast_all_r(mAisoV%maxr_rho,1)
-------------^
src/generate_databases/model_external_values.f90(427): error #8284: If the actual argument is scalar, the dummy argument shall be scalar unless the actual argument is of type character or is an element of an array that is not assumed shape, pointer, or polymorphic.   [BUFFER]
        call bcast_all_r(mAisoV%maxr_vp,1)
-------------^
src/generate_databases/model_external_values.f90(428): error #8284: If the actual argument is scalar, the dummy argument shall be scalar unless the actual argument is of type character or is an element of an array that is not assumed shape, pointer, or polymorphic.   [BUFFER]
        call bcast_all_r(mAisoV%maxr_vs,1)
-------------^
src/generate_databases/model_external_values.f90(429): error #8284: If the actual argument is scalar, the dummy argument shall be scalar unless the actual argument is of type character or is an element of an array that is not assumed shape, pointer, or polymorphic.   [BUFFER]
        call bcast_all_i(mAisoV%nval_rho,1)
-------------^
src/generate_databases/model_external_values.f90(430): error #8284: If the actual argument is scalar, the dummy argument shall be scalar unless the actual argument is of type character or is an element of an array that is not assumed shape, pointer, or polymorphic.   [BUFFER]
        call bcast_all_i(mAisoV%nval_vp,1)
-------------^
src/generate_databases/model_external_values.f90(431): error #8284: If the actual argument is scalar, the dummy argument shall be scalar unless the actual argument is of type character or is an element of an array that is not assumed shape, pointer, or polymorphic.   [BUFFER]
        call bcast_all_i(mAisoV%nval_vs,1)
-------------^
compilation aborted for src/generate_databases/model_external_values.f90 (code 1)
make: *** [obj/model_external_values.gen.o] Error 1
schumf commented 8 years ago

I just fixed the compilation problems (after c74532c7a26d8937b299783c4270e7b81a44d056 the specfem code now compiles using ifort). However, I was not yet able to test whether these modifications yield any problems at runtime. Please assist in checking (e.g. by reproducing the cross borehole example). If you encounter problems at runtime, please re-open this issue. Thanks!