3.6 Creating a Simulation_freeUserArrays.F90

From within Simulation_init, the user may create large allocatable arrays that are used for initialization within Simulation_initBlock or some other routine. An example would be a set of arrays that are used to interpolate fields onto the blocks as they are being created. If these arrays use a lot of allocated memory, the subroutine Simulation_freeUserArrays gives the user a chance to free this memory using deallocate statements. This subroutine is called after all initalization steps have been performed, and the default implementation is a stub which does nothing. A customized version for a particular setup may be made by copying the stub from the Simulation directory and editing it as need be.