From 0570aba781eba5bf44075b9c55559edfff6ebbed Mon Sep 17 00:00:00 2001 From: Mathias Louboutin Date: Thu, 15 Feb 2024 10:37:52 -0500 Subject: [PATCH] field data tweaks --- src/JUDI.jl | 3 +++ src/TimeModeling/Modeling/misfit_fg.jl | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/JUDI.jl b/src/JUDI.jl index d2224c90c..a573573a3 100644 --- a/src/JUDI.jl +++ b/src/JUDI.jl @@ -178,6 +178,9 @@ function __init__() copy!(devito, pyimport("devito")) # Initialize lock at session start PYLOCK[] = ReentrantLock() + + # Prevent autopadding to use external allocator + set_devito_config("autopadding", false) # Prevent autopadding to use external allocator set_devito_config("autopadding", false) diff --git a/src/TimeModeling/Modeling/misfit_fg.jl b/src/TimeModeling/Modeling/misfit_fg.jl index 74654a92d..4ad179cb7 100644 --- a/src/TimeModeling/Modeling/misfit_fg.jl +++ b/src/TimeModeling/Modeling/misfit_fg.jl @@ -31,7 +31,7 @@ function multi_src_fg(model_full::AbstractModel, source::judiVector, dObs::judiV end # Extrapolate input data to computational grid - qIn = time_resample(make_input(source), source.geometry, dtComp)r + qIn = time_resample(make_input(source), source.geometry, dtComp) dObserved = time_resample(make_input(dObs), dObs.geometry, dtComp) qIn, dObserved = _maybe_pad_t0(qIn, source.geometry, dObserved, dObs.geometry)