Skip to content

Commit

Permalink
fix param setting for generic fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
rusandris committed Oct 29, 2024
1 parent dbd9ed8 commit e437d92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/derived_systems/parallel_systems.jl
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ current_states(pdtds::PDTDS) = [current_state(ds) for ds in pdtds.systems]
initial_states(pdtds::PDTDS) = [initial_state(ds) for ds in pdtds.systems]

# Set stuff
set_parameter!(pdtds::PDTDS) = for ds in pdtds.systems; set_parameter!(ds, args...); end
set_parameter!(pdtds::PDTDS,index,value) = for ds in pdtds.systems; set_parameter!(ds, index,value); end
function set_state!(pdtds::PDTDS, u, i::Int = 1)
# We need to set state in all systems, in case this does
# some kind of resetting, e.g., the `u_modified!` stuff.
Expand Down

0 comments on commit e437d92

Please sign in to comment.