welcome: please sign in
location: Diff for "Develop/Typedef"
Differences between revisions 1 and 2
Revision 1 as of 2016-01-12 05:26:46
Size: 478
Editor: huangc
Comment:
Revision 2 as of 2017-11-26 06:33:38
Size: 476
Editor: huangc
Comment:
Deletions are marked like this. Additions are marked like this.
Line 7: Line 7:
typedef long long INTEGER; typedef FORTINT INTEGER;

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;

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

Develop/Typedef (last edited 2017-11-26 17:34:42 by huangc)