Jeff Hammond <jeff.scie...@gmail.com> writes: > MPI uses void** arguments to pass pointer by reference so it can be > updated. In Fortran, you always pass by reference so you don't need > this.
I don't know if it's relevant in this case, but that's not generally true (even for Fortran 77, for which I used to know the standard more-or-less by heart). It definitely isn't true for gfortran, and I'm confident not for the Intel compiler, or it would miss optimizations. You may get away with assuming call-by-reference, but you're likely to get bitten if you don't obey the argument association rules.