Skip to content

Commit

Permalink
Merge pull request #77 from luisaforozco/luisaforozco/corrections_pap…
Browse files Browse the repository at this point in the history
…erDC

Minor corrections on code PaperDC
  • Loading branch information
agdestein committed Aug 2, 2024
2 parents f9449b6 + 1a6596d commit 01c6514
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions lib/PaperDC/postanalysis.jl
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,9 @@ io_test = create_io_arrays([data_test], setups_test);
## jldsave("$outdir/io_test.jld2"; io_test)
##
## # Load IO arrays
## io_train = load("$outdir/io_train.jld2"; "io_train")
## io_valid = load("$outdir/io_valid.jld2"; "io_valid")
## io_test = load("$outdir/io_test.jld2"; "io_test")
## io_train = load("$outdir/io_train.jld2", "io_train")
## io_valid = load("$outdir/io_valid.jld2", "io_valid")
## io_test = load("$outdir/io_test.jld2", "io_test")

# Check that data is reasonably bounded
io_train[1].u |> extrema
Expand Down Expand Up @@ -451,7 +451,7 @@ smag = map(CartesianIndices((size(io_train, 2), 2))) do I
setup,
psolver,
method = RKProject(RK44(; T), getorder(iorder)),
closure_model = smagorinsky_closure(setup),
closure_model = IncompressibleNavierStokes.smagorinsky_closure(setup),
nupdate,
)
e += err(θ)
Expand Down
2 changes: 1 addition & 1 deletion lib/PaperDC/src/rk.jl
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ function IncompressibleNavierStokes.timestep!(
# diffusion term
apply_bc_u!(u, t, setup)

create_stepper(method; setup, psolver, u, temp, t, n = n + 1)
IncompressibleNavierStokes.create_stepper(method; setup, psolver, u, temp, t, n = n + 1)
end

function IncompressibleNavierStokes.timestep(method::RKProject, stepper, Δt; θ = nothing)
Expand Down

0 comments on commit 01c6514

Please sign in to comment.