This might be better somewhere else, but I'll give it a try here first.
I'm implementing a finite volume scheme for an axisymmetric problem in C, and am looking for a more efficient way to handle all of the necessary parameters each function needs.
Is a pointer to a struct better, more efficient, or easier in implementation than a list of the function parameters? I personally think the struct is easier to handle when writing the code, but my professor, who loves Fortran, probably doesn't agree. Is the use of structs in scientific computing accepted? Tolerated? Something that should be avoided?
Thanks for your thoughts.