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 & unstructured).
https://specfem.org
GNU General Public License v3.0
416 stars 232 forks source link

BENCHMARK_CLAERBOUT_ADJOINT example not working #1095

Open ghost opened 7 years ago

ghost commented 7 years ago

Hello,

I was looking at the BENCHMARK_CLAERBOUT_ADJOINT example, but it gives the following error when ran using $ ./run_inhomogeneous.bash for both acoustic and elastic cases.

./run_inhomogeneous.bash: line 42: $1: unbound variable

Can you fix that example? Thanks!

komatits commented 7 years ago

Hi,

Thanks! Let me cc Daniel Peter, since the problem you mention at line 42 of the scripts comes from this, which contains a comment from Daniel:

daniel

do_setup=$1

The problem comes from the fact that $1 may be undefined when no command line argument is given to the script (i.e. in most cases); however, even when I remove that line, the rest of the script does not work either, it seems that the paths have changed.

Best regards, Dimitri.

On 08/15/2017 06:54 PM, L4student wrote:

Hello,

I was looking at the BENCHMARK_CLAERBOUT_ADJOINT example, but it gives the following error when ran using $ ./run_inhomogeneous.bash for both acoustic and elastic cases.

./run_inhomogeneous.bash: line 42: $1: unbound variable

Can you fix that example? Thanks!

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

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