SPECFEM / specfem2d

SPECFEM2D simulates forward and adjoint seismic wave propagation in two-dimensional acoustic, (an)elastic, poroelastic or coupled acoustic-(an)elastic-poroelastic media, with Convolution PML absorbing conditions.
GNU General Public License v3.0
204 stars 147 forks source link

Cannot compile the sample tutorial with the scripts #682

Closed srib closed 7 years ago

srib commented 7 years ago

In the folder utils, I cannot seem to build the xspecfem2D executable as -Werror is enabled and all the warnings are treated as warnings.

Here is what the error is:

plot_post.f90:447:4:

  602 format(f6.2,1x,f6.2,' M ',f6.2,1x,f6.2,' L ST')
    1
Error: Label 602 at (1) defined but not used [-Werror]
f951: all warnings being treated as errors

Commenting out line 447 in plot_post.f90 fixes the problem.

Sorry for posting a trivial issue but thought it might be useful for beginners to specfem2d like me.

komatits commented 7 years ago

Thanks a lot for your bug report. It is very useful. I have fixed the problem in the official version of the code (by removing line 447 as you suggested).

Best regards, Dimitri.

On 02/23/2017 09:26 PM, srib wrote:

In the folder |utils|, I cannot seem to build the |xspecfem2D| executable as |-Werror| is enabled and all the warnings are treated as warnings.

Here is what the error is:

plot_post.f90:447:4:

602 format(f6.2,1x,f6.2,' M ',f6.2,1x,f6.2,' L ST') 1 Error: Label 602 at (1) defined but not used [-Werror] f951: all warnings being treated as errors

Commenting out line 447 in |plot_post.f90| fixes the problem.

Sorry for posting a trivial issue but thought it might be useful for beginners to |specfem2d| like me.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/geodynamics/specfem2d/issues/682, or mute the thread https://github.com/notifications/unsubscribe-auth/AFjDKY537dNjzglxJnLoRdR-Awlo-oEnks5rfetugaJpZM4MKdUQ.

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

srib commented 7 years ago

Thank you!