READS, AS INPUT, A FILE GENERATED BY THE GEMINI.F90 PROGRAM
CHECK TO MAKE SURE WE ACTUALLY HAVE THE DATA WE NEED TO DO THE MAG COMPUTATIONS.
FORM THE INPUT FILE NAME
LOAD THE DATA
PERMUTE THE ARRAYS IF NECESSARY
no need to permute dimensions for 3D simulations
DISTRIBUTE DATA TO WORKERS AND TAKE A PIECE FOR ROOT
CLEAN UP MEMORY
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.