This dates back to a time when all the focal plane code was inside f-plane.c (now main.c).
Now a lot of it was moved to Focalplane.c
To save on processing time I placed some of the resolution parameters (res2 to res8 for all 4 wireplanes) inside
ifdef _VDCRESCALCS
so not not produce unnecessary output. This was inside the variable definitions, the main event routine as well as inside the raytrace routine.
Then later I moved a lot of the focalplane routines to Focalplane.c so that main.c will be less busy and only focus on the main things happening per event.
Now that I wanted to calculate the res6 parameter, I ran into the trouble that even after I uncommented the preprocessor directive in main.c, the res6 parameter was still useless. That is because raytrace never actually calculated it.
Will probably need a more elegant solution in future, but for now I will just place
This dates back to a time when all the focal plane code was inside f-plane.c (now main.c). Now a lot of it was moved to Focalplane.c
To save on processing time I placed some of the resolution parameters (res2 to res8 for all 4 wireplanes) inside
ifdef _VDCRESCALCS
so not not produce unnecessary output. This was inside the variable definitions, the main event routine as well as inside the raytrace routine.
Then later I moved a lot of the focalplane routines to Focalplane.c so that main.c will be less busy and only focus on the main things happening per event.
Now that I wanted to calculate the res6 parameter, I ran into the trouble that even after I uncommented the preprocessor directive in main.c, the res6 parameter was still useless. That is because raytrace never actually calculated it.
Will probably need a more elegant solution in future, but for now I will just place
define _VDCRESCALCS
inside Focalplane.c as well.