Skip to content

Commit

Permalink
@assign! macro updated to stop using @reset causing problems
Browse files Browse the repository at this point in the history
  • Loading branch information
mberto79 committed Jan 12, 2024
1 parent 8d77e13 commit 7670c92
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Discretise/Discretise_0_types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ macro assign!(model, field, BCs)
quote
f = $emodel.$efield
f = assign(f, $eBCs...)
@reset $emodel.$efield = f
$emodel = @set $emodel.$efield = f
end
end

Expand All @@ -143,7 +143,8 @@ macro assign!(model, turb, field, BCs)
quote
f = $emodel.$eturb.$efield
f = assign(f, $eBCs...)
@reset $emodel.$eturb.$efield = f
# @reset $emodel.$eturb.$efield = f
$emodel = @set $emodel.$eturb.$efield = f
end
end

Expand Down

0 comments on commit 7670c92

Please sign in to comment.