I’m having a similar problem involving this warning message. I’m using a package that calls solve
thousands of times during an operation, and seems to print the warning message to the console for every solve
call. I can replicate the warning message using a simple example from DifferentialEquations.jl
:
using DifferentialEquations
#Half-life of Carbon-14 is 5,730 years.
C₁ = 5.730
#Setup
u₀ = 1.0
tspan = (0.0, 1.0)
#Define the problem
radioactivedecay(u,p,t) = -C₁*u
#Pass to solver
prob = ODEProblem(radioactivedecay,u₀,tspan)
sol = solve(prob,Tsit5());
julia>
┌ Warning: Backwards compatability support of the new return codes to Symbols will be deprecated with the Julia v1.9 release.
Please see https://docs.sciml.ai/SciMLBase/stable/interfaces/Solutions/#retcodes for more information
└ @ SciMLBase C:\Users\ander\.julia\packages\SciMLBase\QqtZA\src\retcodes.jl:355
and my actual use case, an example from LongwaveModePropagator.jl
:
using LongwaveModePropagator
using LongwaveModePropagator: QE, ME
# vertical dipole transmitter at 24 kHz
tx = Transmitter(2.4e4)
# sample vertical electric field every 5 km out to 2000 km from tx
rx = GroundSampler(0:5e3:2000e3, Fields.Ez)
# vertical magnetic field
bfield = BField(50e-6, π/2, 0)
# daytime ionosphere
h = 75 # km
β = 0.35 # km⁻¹
electrons = Species(QE, ME, z->waitprofile(z, h, β), electroncollisionfrequency)
# "typical" earth ground
ground = Ground(10,1e-4)
waveguide = HomogeneousWaveguide(bfield, electrons, ground)
# return the complex electric field, amplitude, and phase
E, a, p = propagate(waveguide, tx, rx);
(large number of warning messages omitted).
Since I’m not developing this package, I don’t want to spend too much time messing around with the internals. It looks like printing the warning messages to the console is severely impacting performance, however. Will using something like Suppressor.jl
to prevent these warning messages from being printed help speed up the code, or do I need to find and alter whatever part of the code is checking the retcode?