Closed sigvaldm closed 6 years ago
Of course the weakness in Boost doesn't go away without us practically re-implementing it, but I have created a few helper functions in parser.h
. These can be used to read repeated values and vectors from file. They may not always be the right functions to use, but they are suitable when you expect a fixed number of elements. The functions makes sure the user has typed that number of arguments. Velocities and magnetic field are now vector quantities.
The Boost input file parser has weaknesses in the way multiple values are represented as vectors. What if you want to specify multiple vectors? Or sections where a type of value is present in only the second section? This will not be handled by boost.programoptions. This must be fixed to allow some types of input such as drift velocity, and to have full flexibility in how to input number of particles (e.g. npc vs num).