MPI-AMRVAC
3.1
The MPI - Adaptive Mesh Refinement - Versatile Advection Code (development version)
|
Users can write a subroutine to freely derive (and print or store) quantities of interest from the entire grid. To activate this functionality, set the following in your usr_init
routine:
Similar to the other IO-mechanisms, analysis is scheduled within the savelist:
&savelist; dtsave_custom = 0.1 ! Save every 0.1 time units ditsave_custom = 10 ! Save every 10 iterations /
The user-defined analysis subroutine takes no arguments. It operates on the lowest abstraction level of MPI-AMRVAC so that the user has the flexibility to loop over the the SFC and freely perform integrals over the grid-functions, similar to the printlog_special
. A special file-unit is reserved for the IO: unitanalysis
. This should be used for any IO performed by this routine.