Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
AstitvaAggarwal committed Jan 4, 2024
1 parent c7e4f3d commit feae732
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/BPINN_PDEinvsol_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ discretization = NeuralPDE.PhysicsInformedNN([chainl],

analytic_sol_func1(u0, t) = u0 + sin(2 * π * t) / (2 * π)
timepoints = collect(0.0:(1 / 100.0):2.0)
u = [analytic_sol_func(0.0, timepoint) for timepoint in timepoints]
u = [analytic_sol_func1(0.0, timepoint) for timepoint in timepoints]
u = u .+ (u .* 0.2) .* randn(size(u))
dataset = [hcat(u, timepoints)]

Expand Down Expand Up @@ -78,7 +78,7 @@ u_predict = pmean(sol1.ensemblesol[1])
@test sol1.estimated_de_params[1]param atol=param * 0.3

ts = vec(sol2.timepoints[1])
u_real = [analytic_sol_func(0.0, t) for t in ts]
u_real = [analytic_sol_func1(0.0, t) for t in ts]
u_predict = pmean(sol2.ensemblesol[1])

@test u_predictu_real atol=0.5
Expand Down

0 comments on commit feae732

Please sign in to comment.