Using Fortran Modules with Assumed-Shape Arguments: A Practical Decision for Reliable Stencil Kernels
Array argument mismatches can silently corrupt numerical kernels. Using Fortran modules with assumed‑shape dummy arguments lets the compiler catch rank and shape errors, enables whole‑array optimizations, and improves maintainability. A 2‑D Laplacian example shows the benefit.