Skip to content

Commit

Permalink
Properly initialising AVA_inact etc.
Browse files Browse the repository at this point in the history
  • Loading branch information
pgleeson committed Jan 7, 2025
1 parent 8292e3d commit ccd94a6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Worm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ int nn(int neuronNumber, int unitNumber)
// The constructor
Worm::Worm(TVector<double> &v,double output)
{

// PG: Setting these to zero as they were not initialised before use!
// Note: the usage of these needs to be further investigated!
AVA_act = 0;
AVA_inact = 0;
AVB_act = 0;
AVB_inact = 0;

// Muscles
m.SetMuscleParams(N_muscles, T_muscle);

Expand Down

0 comments on commit ccd94a6

Please sign in to comment.