28 lines
753 B
Plaintext
28 lines
753 B
Plaintext
|
|
|
|
------ Foreign function interface --------
|
|
|
|
Passing an array to C
|
|
|
|
Accessing a C array
|
|
1... 2... 3... 4...
|
|
Passing an array to Fortran
|
|
0 0.0 1.0 2.0 3.0 4.0 5.0 6.0 7.0
|
|
1 1000.0 1001.0 1002.0 1003.0 1004.0 1005.0 1006.0 1007.0
|
|
2 2000.0 2001.0 2002.0 2003.0 2004.0 2005.0 2006.0 2007.0
|
|
3 3000.0 3001.0 3002.0 3003.0 3004.0 3005.0 3006.0 3007.0
|
|
4 4000.0 4001.0 4002.0 4003.0 4004.0 4005.0 4006.0 4007.0
|
|
5 5000.0 5001.0 5002.0 5003.0 5004.0 5005.0 5006.0 5007.0
|
|
|
|
Accessing a Fortran array
|
|
1... 2... 3... 4...
|
|
1 1001.01002.01003.01004.0
|
|
|
|
2 2001.02002.02003.02004.0
|
|
|
|
3 3001.03002.03003.03004.0
|
|
|
|
4 4001.04002.04003.04004.0
|
|
|
|
5 5001.05002.05003.05004.0
|