Stefan Schippers
10/24/2024, 8:52 PMNo. Points
line in the raw file is left blank ( there is no second field with the number of points). The reason is clear, number of timesteps is only known at end of simulation. When simulation completes Xyce adds the number to the No. Points
line at the beginning of the raw file (there are probably padding blanks to allow inserting the number without shifting the whole file data).
My request is to do the same when a SIGTERM signal is catched. The same issue happens if I interrupt Xyce with Ctrl-C (SIGINT signal).
The raw files resulting from an interrupted simulation are not easy to read, since the reader must first analyze the whole file and calculate the points saved.
The No. Points is expecially useful in binary raw files, so the application reading it can immediately allocate the data structure (nvars * npoints*sizeof(double))