Assumes that files are commonly named sequentially, e.g.:
File001.rsf
File002.rsf
File003.rsf ...
FileN.rsf
Such that all files can be represented as a prefix, which
is a printf like statement that will be evaluated for all
files to be included in a range.
For the above example the prefix would be:
prefix="File%03d.rsf"
The nf, jf, and of parameters specify a range of numbers to evaluate the
prefix for, giving the program filenames to be used for summing
together. For example:
If there are more files than processes, then this program will subdivide
the files onto various processes, and run multiple rounds until
everything is done.
These must be 3D arrays (or 2D ,but with three dimensions), arrays must be
X-Y-Z
a1-a2-a3