Skip to content

Commit

Permalink
fixup! refactor: PINOODEInterpolation
Browse files Browse the repository at this point in the history
  • Loading branch information
sathvikbhagavan committed Feb 3, 2025
1 parent 2642a92 commit 2dc09cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/NeuralPDE.jl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ using Reexport: @reexport
using RuntimeGeneratedFunctions: RuntimeGeneratedFunctions, @RuntimeGeneratedFunction
using SciMLBase: SciMLBase, BatchIntegralFunction, IntegralProblem, NoiseProblem,
OptimizationFunction, OptimizationProblem, ReturnCode, discretize,
isinplace, solve, symbolic_discretize, ODEProblem
isinplace, solve, symbolic_discretize, ODEProblem, AbstractODESolution
using Statistics: Statistics, mean
using QuasiMonteCarlo: QuasiMonteCarlo, LatinHypercubeSample
using WeightInitializers: glorot_uniform, zeros32
Expand Down
2 changes: 1 addition & 1 deletion src/pino_ode_solve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ end
SciMLBase.interp_summary(::PINOODEInterpolation) = "Trained neural network interpolation"
SciMLBase.allowscomplex(::PINOODE) = true

function (sol::SciMLBase.AbstractODESolution)(
function (sol::AbstractODESolution)(
t::AbstractArray, ::Type{deriv}, idxs::Nothing,
continuity) where {deriv}
sol.interp(t, idxs, deriv, sol.prob.p, continuity)
Expand Down

0 comments on commit 2dc09cf

Please sign in to comment.