I am using Sundials numerical solver to solve DAE equations. I was able to create a working code but I am not sure what is the best way to save solution vector efficiently.