Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User defined schemes - FunctionalScheme #247

Merged
merged 27 commits into from
Mar 21, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
new retcode
xtalax committed Mar 6, 2023
commit f60258be288abab21cc90126cd60c0183a99e9e7
2 changes: 1 addition & 1 deletion test/pde_systems/MOL_1D_HigherOrder.jl
Original file line number Diff line number Diff line change
@@ -114,7 +114,7 @@ end

sol = solve(prob,FBDF(),saveat=0.1)

@test sol.retcode == :Success
@test sol.retcode == SciMLBase.ReturnCode.Success

xs = sol[x]
ts = sol[t]
14 changes: 7 additions & 7 deletions test/pde_systems/MOL_1D_NonLinear_Diffusion.jl
Original file line number Diff line number Diff line change
@@ -46,7 +46,7 @@ using ModelingToolkit: Differential
# Solution of the ODE system
using OrdinaryDiffEq
sol = solve(prob, Rosenbrock32())
@test sol.retcode == :Success
@test sol.retcode == SciMLBase.ReturnCode.Success

# Test against exact solution
x_disc = sol[x]
@@ -161,7 +161,7 @@ end
# Solution of the ODE system
using OrdinaryDiffEq
sol = solve(prob, Rosenbrock32())
@test sol.retcode == :Success
@test sol.retcode == SciMLBase.ReturnCode.Success

# Test against exact solution
x_disc = sol[x]
@@ -222,7 +222,7 @@ end
using OrdinaryDiffEq
sol = solve(prob, Rosenbrock32())

@test sol.retcode == :Success
@test sol.retcode == SciMLBase.ReturnCode.Success

# Test against exact solution
x_disc = sol[x]
@@ -337,7 +337,7 @@ end
# Solution of the ODE system
using OrdinaryDiffEq
sol = solve(prob, Rosenbrock32()) # TODO: check warnings
@test sol.retcode == :Success
@test sol.retcode == SciMLBase.ReturnCode.Success

# Test against exact solution
x_disc = sol[x]
@@ -394,7 +394,7 @@ end
# Solution of the ODE system
using OrdinaryDiffEq
sol = solve(prob, Rosenbrock32()) # TODO: check warnings
@test sol.retcode == :Success
@test sol.retcode == SciMLBase.ReturnCode.Success


# Test against exact solution
@@ -453,7 +453,7 @@ end
# Solution of the ODE system
using OrdinaryDiffEq
sol = solve(prob, Rosenbrock32())
@test_broken sol.retcode == :Success
@test_broken sol.retcode == SciMLBase.ReturnCode.Success
fail # don't run the rest of the test
# Test against exact solution
x_disc = sol[x]
@@ -510,7 +510,7 @@ end
# Solution of the ODE system
using OrdinaryDiffEq
sol = solve(prob, Rosenbrock32())
@test_broken sol.retcode == :Success
@test_broken sol.retcode == SciMLBase.ReturnCode.Success
fail #don't run later tests
# Test against exact solution
x_disc = sol[x]
14 changes: 7 additions & 7 deletions test/pde_systems/MOL_1D_NonLinear_Diffusion_NonUniform.jl
Original file line number Diff line number Diff line change
@@ -52,7 +52,7 @@ using StableRNGs
using OrdinaryDiffEq
sol = solve(prob, Rosenbrock32())

@test sol.retcode == :Success
@test sol.retcode == SciMLBase.ReturnCode.Success

# Test against exact solution
x_disc = sol[x]
@@ -173,7 +173,7 @@ end
using OrdinaryDiffEq
sol = solve(prob, Rosenbrock32())

@test sol.retcode == :Success
@test sol.retcode == SciMLBase.ReturnCode.Success

# Test against exact solution
x_disc = sol[x]
@@ -236,7 +236,7 @@ end
using OrdinaryDiffEq
sol = solve(prob, Rosenbrock32())

@test sol.retcode == :Success
@test sol.retcode == SciMLBase.ReturnCode.Success

# Test against exact solution
x_disc = sol[x]
@@ -353,7 +353,7 @@ end
# Solution of the ODE system
using OrdinaryDiffEq
sol = solve(prob, Rosenbrock32())
@test sol.retcode == :Success
@test sol.retcode == SciMLBase.ReturnCode.Success

# Test against exact solution
x_disc = sol[x]
@@ -414,7 +414,7 @@ end
using OrdinaryDiffEq
sol = solve(prob, Rosenbrock32())

@test sol.retcode == :Success
@test sol.retcode == SciMLBase.ReturnCode.Success

# Test against exact solution
x_disc = sol[x]
@@ -476,7 +476,7 @@ end
using OrdinaryDiffEq
sol = solve(prob, Rosenbrock32())

@test_broken sol.retcode == :Success
@test_broken sol.retcode == SciMLBase.ReturnCode.Success
fail
# Test against exact solution
x_disc = sol[x]
@@ -538,7 +538,7 @@ end
using OrdinaryDiffEq
sol = solve(prob, Rosenbrock32())

@test_broken sol.retcode == :Success
@test_broken sol.retcode == SciMLBase.ReturnCode.Success
fail
# Test against exact solution
x_disc = sol[x]
2 changes: 1 addition & 1 deletion test/pde_systems/MOL_Mixed_Deriv.jl
Original file line number Diff line number Diff line change
@@ -67,5 +67,5 @@ end

prob = discretize(pdesys, discretization, advection_scheme = WENOScheme())
sol = solve(prob, FBDF(), saveat = 0.1);
@test sol.retcode == :Success
@test sol.retcode == SciMLBase.ReturnCode.Successend
end
2 changes: 1 addition & 1 deletion test/pde_systems/MOLtest2.jl
Original file line number Diff line number Diff line change
@@ -156,7 +156,7 @@ end

solc = hcat(solc1[:, :], solc2[:, 2:end])

@test sol.retcode == :Success
@test sol.retcode == SciMLBase.ReturnCode.Success
end

@testset "Another boundaries appearing in equations case" begin