You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! I'm implementing JSON I/O into a simple Fortran box model of the ocean. I was able to use json-fortran to read in a set of parameters (including a 2d-array, thanks to the instructions here) from a JSON file, but I'm having difficulty writing out 2d arrays.
Here's an example of the JSON input that I can read to an MxN Fortran array and I want to write back out:
I realize one way to approach this would be to unroll the array and write out as an MxN-length vector. However, I'm wondering if there is a way to write the array out as an M-length vector of N-length vectors consistent with the example above?
Thanks in advance!
The text was updated successfully, but these errors were encountered:
Hello! I'm implementing JSON I/O into a simple Fortran box model of the ocean. I was able to use
json-fortran
to read in a set of parameters (including a 2d-array, thanks to the instructions here) from a JSON file, but I'm having difficulty writing out 2d arrays.Here's an example of the JSON input that I can read to an MxN Fortran array and I want to write back out:
I realize one way to approach this would be to unroll the array and write out as an MxN-length vector. However, I'm wondering if there is a way to write the array out as an M-length vector of N-length vectors consistent with the example above?
Thanks in advance!
The text was updated successfully, but these errors were encountered: