Below that post of mine, Chris Elrod posted another version of the same thing which is more elegant (in both languages), although the Fortran implementation in his case is directly thought to be interfaced with Julia, so some syntax is not natural for Fortran in general.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Julia's assignment behavior differs from Fortran? | 48 | 3156 | November 20, 2020 | |
Different output when call Fortran from Julia | 5 | 408 | July 13, 2023 | |
Equivalent Julia and Fortran syntax | 9 | 1478 | August 20, 2021 | |
Compiler optimizations for ComplexF64 vs Fortran | 7 | 538 | March 30, 2023 | |
Fortran modules and Julia modules | 8 | 1602 | August 18, 2020 |