投稿

検索キーワード「fortran array」に一致する投稿を表示しています

[新しいコレクション] fortran allocate array 112761-Fortran allocate array example

イメージ
Fortran 90 Deferred Shape Array Types Using Array Space in Subprograms As I mentioned before, Fortran simply passes the address of a variable to a subroutine This makes it easy to allocate space for an array at one level in your program, and then use that space in subroutines called or functions used by that levelNo matter if you are passing arrays in or out, always allocate them in C first, and you are (in C) responsible for the memory management Use Fortran to fill (or use) your arrays (that you own in C) If calling the Fortran exp_mesh subroutine from the c_exp_mesh subroutine is a problem (CPU efficiency), you can simply implement whatever the Fortran allocate array example