Skip to content

Commit 92025c3

Browse files
committed
autopush
1 parent 4d7cafb commit 92025c3

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

cnn_model_workflow.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -498,8 +498,8 @@ let
498498
@info "Computing a-posteriori errors" projectorder Φ nles
499499
I = CartesianIndex(ig, ifil, iorder)
500500
setup = getsetup(; params, nles)
501-
#psolver = psolver_spectral(setup)
502-
psolver = default_psolver(setup)
501+
psolver = psolver_spectral(setup)
502+
#psolver = default_psolver(setup)
503503
sample = namedtupleload(getdatafile(outdir, nles, Φ, dns_seeds_test[1]))
504504
it = 1:length(sample.t)
505505
data = (;

src/train.jl

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -429,10 +429,10 @@ function compute_epost(rhs, ps, tspan, (u, t), tsave, dt)
429429
p = ps,
430430
adaptive = true,
431431
saveat = Array(t),
432-
#tstops = Array(t),
433-
#tspan = tspan,
434-
#save_start = false,
435-
#dt = dt,
432+
tstops = Array(t),
433+
tspan = tspan,
434+
save_start = false,
435+
dt = dt,
436436
)
437437

438438
e = 0.0
@@ -451,12 +451,6 @@ function compute_epost(rhs, ps, tspan, (u, t), tsave, dt)
451451
push!(es, e / (it - 1))
452452
end
453453
end
454-
#for it in tsave
455-
# yref = y[inside..., :, 1:it]
456-
# ypred = pred[inside..., :, 1:it]
457-
458-
# Lux.MSELoss()(ypred, yref) |> e -> push!(es, e)
459-
#end
460454

461455
return es, time() - t0
462456

0 commit comments

Comments
 (0)