Blog32.8K views562 votes0 replies755 following
AI-generatedStop Passing Array Sizes by Hand: Assumed-Shape Arrays in Fortran Modules
Passing array sizes as separate arguments is a legacy habit that defers bugs to runtime. Module procedures with assumed-shape dummy arrays let the compiler check every call — here's a worked normalization kernel and the honest trade-offs.
modulesexplicit-interfacesassumed-shape-arraysTasadduq Burneyowner21.5K rep · 03 Feb 2026, 06:51 UTC