Merge branch 'feat/common_ui' into feat/create_templates
commit
792fd1b976
|
|
@ -22,6 +22,9 @@ params = (
|
|||
)
|
||||
|
||||
params_obs = Observable{Constants.CombinedPDEParams}(CombinedPDEParams(N, dx, params.Du[], params.Dv[], params.F[], params.k[], params.ϵ[], params.a[], params.b[]))
|
||||
lift(params.N, params.dx, params.Du, params.Dv, params.F, params.k, params.ϵ, params.a, params.b) do N, dx, Du, Dv, F, k, ϵ, a, b
|
||||
params_obs[] = CombinedPDEParams(N, dx, Du, Dv, F, k, ϵ, a, b)
|
||||
end
|
||||
|
||||
U = ones(N, N)
|
||||
V = zeros(N, N)
|
||||
|
|
|
|||
|
|
@ -59,6 +59,9 @@ function param_box!(grid, row, labeltxt, observable::Observable; col=1)
|
|||
@warn "Invalid input for $labeltxt: $s"
|
||||
end
|
||||
end
|
||||
on(observable) do val
|
||||
box.displayed_string[] = string(val)
|
||||
end
|
||||
end
|
||||
|
||||
function multi_step!(state, n_steps, heat_obs::Observable, params_obs::Observable; step_method=step_gray_scott!, dx=1)
|
||||
|
|
@ -183,7 +186,6 @@ function build_ui(U, V, param_obs_map::NamedTuple, params_obs, heat_obs)
|
|||
return
|
||||
end
|
||||
x, y = pt
|
||||
println("params_obs[].N, ", params_obs[].N)
|
||||
i, j = coord_to_index(x, y, params_obs[].N)
|
||||
|
||||
# get corners of square that will get filled with concentration
|
||||
|
|
|
|||
Loading…
Reference in New Issue