[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 19 minutes and 4 seconds (queued for 5 seconds)
Child pipeline (parent) latest detached
Status Name Job ID Coverage
  Configure
passed configure #35849

00:02:47

 
  Linting
passed black (python) #35852

00:01:05

passed pylint-flake8 (python) #35855

00:00:24

 
  Select
passed select tests #35858

00:01:09

 
  Build
passed compile cpp #35861

00:06:41

 
  Test
passed test cpp #35864

00:08:24

passed test python #35866

00:00:42