[bugfix] Fix PrimaryVariablesSwitch::reset()

resize() does not reset the existing values.
Use assign instead to resest all of the vector's elements.
7 jobs for !2812 with fix/wasswitched in 10 minutes and 50 seconds (queued for 5 seconds)
Child pipeline (parent) latest detached
Status Name Job ID Coverage
  Configure
passed configure #35856

00:02:44

 
  Linting
passed black (python) #35859

00:00:57

passed pylint-flake8 (python) #35862

00:00:23

 
  Select
passed select tests #35865

00:00:51

 
  Build
passed compile cpp #35867

00:04:59

 
  Test
passed test cpp #35868

00:02:09

passed test python #35869

00:00:49