DNS parallel code: stencil parallelization

NS code flowchart
Navier-Stokes code schematic flowchart. The coloured blocks indicate the computation of the various physical terms in each step of the time integration of the the Navier-Stokes equations.
 Data transposition
 Flowchart of the data transposition subroutine. This subroutine splits the data of each CPU in blocks, transposes them locally and sends them to the correct position to the destination CPU.
 
 Flowchart of the three-dimensional parallel FFt with pencil parallelization. The inverse FFT is carried out in a similar way.
Credits