Size: 476
Comment:
|
← Revision 3 as of 2017-11-26 17:34:42 ⇥
Size: 550
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 13: | Line 13: |
FORTINT is usually 'long long' for 64-bit and that intel mkl is used. |
Types
For c/cpp users
HEADER: source/include/BDFTYPE.h
typedef FORTINT INTEGER; typedef double REAL; typedef unsigned char BYTE; typedef char* LPSTR; typedef const char* LPCSTR;
FORTINT is usually 'long long' for 64-bit and that intel mkl is used.
Fortran passes pointer as parameters. Fortran functions are compatible with C, but not CPP.
C function(note the underline)
void fun_(REAL* fp) {}
is equal to F subroutine
subroutine fun(f) implicit none real*8::f end subroutine