Skip to content

Commit 2ee5f85

Browse files
committed
Fix bug in timestep-mapped variables filtering from var_need_init
1 parent 80e12de commit 2ee5f85

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/mtg/initialisation.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -439,12 +439,12 @@ function filter_timestep_mapped_variables!(vars_need_init, orchestrator)
439439
for (org, vars) in vars_need_init
440440
if tmst.scale == org
441441
for (var_from, var_to) in tmst.var_to_var
442-
filter!(o -> o == var_to.name, vars)
442+
filter!(o -> o != var_to.name, vars)
443443
end
444444
end
445445
for (var_from, var_to) in tmst.var_to_var
446446
if var_from.scale == org
447-
filter!(o -> o == var_from.name, vars)
447+
filter!(o -> o != var_from.name, vars)
448448
end
449449
end
450450

0 commit comments

Comments
 (0)