![]() |
programmer's documentation
|
For the writing of the listing and the post-processing: Average of the Lagrangian volume statistical variables. Possible intervention of the user.
The following local variables need to be defined for the examples in this section:
The following initialization block needs to be added for the following examples:
At the end of the subroutine, it is recommended to deallocate the work array:
In theory Fortran 95 deallocates locally-allocated arrays automatically, but deallocating arrays in a symetric manner to their allocation is good pratice, and avoids using a different logic for C and Fortran.
Pinpoint the cells where stats are to be calculated.
General case:
Average
Variance
Volume fraction (ilfv)
Average
Variance
Sum of the statistical weights
Example 1: Statistic calculated in uslast.90 and stored in the array statis.