Template in Fortran?
Fortran does not have templates, but you can put the code common to the functions handling different types in an include file as a kludge to simulate templates, as shown in this code: ! file “cumul.inc” ! function cumul(xx) result(yy) ! return in yy(:) the cumulative sum of xx(:) ! type, intent(in) :: xx(:) ! … Read more