Skip to content

Commit

Permalink
Default initialize scalar types.
Browse files Browse the repository at this point in the history
  • Loading branch information
thorstenhater committed Sep 11, 2024
1 parent 4e95ae7 commit 964126d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions arbor/backends/gpu/shared_state.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,9 @@ struct ARB_ARBOR_API shared_state: shared_state_base<shared_state, array, ion_st
arb_size_type n_cv = 0; // Total number of CVs.

iarray cv_to_cell; // Maps CV index to cell index.
arb_value_type time; // integration start time [ms].
arb_value_type time_to; // integration end time [ms]
arb_value_type dt; // dt [ms].
arb_value_type time = 0.0; // integration start time [ms].
arb_value_type time_to = 0.0; // integration end time [ms]
arb_value_type dt = 0.0; // dt [ms].
array voltage; // Maps CV index to membrane voltage [mV].
array current_density; // Maps CV index to current density [A/m²].
array conductivity; // Maps CV index to membrane conductivity [kS/m²].
Expand Down
6 changes: 3 additions & 3 deletions arbor/backends/multicore/shared_state.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,9 @@ struct ARB_ARBOR_API shared_state:
arb_size_type n_cv = 0; // Total number of CVs.

iarray cv_to_cell; // Maps CV index to GID
arb_value_type time; // integration start time [ms].
arb_value_type time_to; // integration end time [ms]
arb_value_type dt; // dt [ms].
arb_value_type time = 0.0; // integration start time [ms].
arb_value_type time_to = 0.0; // integration end time [ms]
arb_value_type dt = 0.0; // dt [ms].
array voltage; // Maps CV index to membrane voltage [mV].
array current_density; // Maps CV index to membrane current density contributions [A/m²].
array conductivity; // Maps CV index to membrane conductivity [kS/m²].
Expand Down

0 comments on commit 964126d

Please sign in to comment.