6 ms·
Having never done it with Fortran, I don't know. It should be possible, because e.g. on Linux, everything adheres to the ABI. However, the ABI doesn't specify h
by guitarbill 10y ago
Having never done it with Fortran, I don't know. It should be possible, because e.g. on Linux, everything adheres to the ABI. However, the ABI doesn't specify how to interpret pointers AFAIK. Array ordering [0] and indexing is different in Fortran compared to C, so I'm sure there's pitfalls you'd have to account for.
[0] https://en.wikipedia.org/wiki/Row-_and_column-major_order https://en.wikipedia.org/wiki/Row-_and_column-major_order
- dfgasfjhjhsdojj 10y agoFortran arrays can be indexed however you like. Code that is designed to be called from C can be written with 0 indexed arrays.
- guitarbill 10y agoSure, but you still have to remember to do so :)