From 1bf2359b83d06433a8267ea2a9af1fa0479f7089 Mon Sep 17 00:00:00 2001 From: tbeltzun <129868353+tbeltzun@users.noreply.github.com> Date: Thu, 12 Oct 2023 16:56:30 +0200 Subject: [PATCH] consistency --- .../wavePropagation/AcousticFirstOrderWaveEquationSEM.cpp | 2 +- .../wavePropagation/ElasticFirstOrderWaveEquationSEM.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/coreComponents/physicsSolvers/wavePropagation/AcousticFirstOrderWaveEquationSEM.cpp b/src/coreComponents/physicsSolvers/wavePropagation/AcousticFirstOrderWaveEquationSEM.cpp index 131ded184fc..eb575a85e3a 100644 --- a/src/coreComponents/physicsSolvers/wavePropagation/AcousticFirstOrderWaveEquationSEM.cpp +++ b/src/coreComponents/physicsSolvers/wavePropagation/AcousticFirstOrderWaveEquationSEM.cpp @@ -537,7 +537,7 @@ real64 AcousticFirstOrderWaveEquationSEM::explicitStepInternal( real64 const & t // compute the seismic traces since last step. arrayView2d< real32 > const pReceivers = m_pressureNp1AtReceivers.toView(); - computeAllSeismoTraces( time_n, dt, p_np1, p_np1, pReceivers ); + computeAllSeismoTraces( time_n, dt, p_np1, p_n, pReceivers ); incrementIndexSeismoTrace( time_n ); } ); diff --git a/src/coreComponents/physicsSolvers/wavePropagation/ElasticFirstOrderWaveEquationSEM.cpp b/src/coreComponents/physicsSolvers/wavePropagation/ElasticFirstOrderWaveEquationSEM.cpp index 3ea2b637f06..c2b8595ce19 100644 --- a/src/coreComponents/physicsSolvers/wavePropagation/ElasticFirstOrderWaveEquationSEM.cpp +++ b/src/coreComponents/physicsSolvers/wavePropagation/ElasticFirstOrderWaveEquationSEM.cpp @@ -709,9 +709,9 @@ void ElasticFirstOrderWaveEquationSEM::cleanup( real64 const time_n, arrayView2d< real32 > const uyReceivers = m_displacementyNp1AtReceivers.toView(); arrayView2d< real32 > const uzReceivers = m_displacementzNp1AtReceivers.toView(); - computeAllSeismoTraces( time_n, 0, ux_np1, ux_np1, uxReceivers ); - computeAllSeismoTraces( time_n, 0, uy_np1, uy_np1, uyReceivers ); - computeAllSeismoTraces( time_n, 0, uz_np1, uz_np1, uzReceivers ); + computeAllSeismoTraces( time_n, 0.0, ux_np1, ux_np1, uxReceivers ); + computeAllSeismoTraces( time_n, 0.0, uy_np1, uy_np1, uyReceivers ); + computeAllSeismoTraces( time_n, 0.0, uz_np1, uz_np1, uzReceivers ); } );