- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello everyone,
I have a small question. Is there an upper cap variable size in fortran.
I have a variable which is approximately 2Mb (DOUBLE PRECISION rxnrate(16, 252, 62)) and is paased between the subroutines. Is it possible that this variable gets truncated while passing.
Best Regards,
Inkant
I have a small question. Is there an upper cap variable size in fortran.
I have a variable which is approximately 2Mb (DOUBLE PRECISION rxnrate(16, 252, 62)) and is paased between the subroutines. Is it possible that this variable gets truncated while passing.
Best Regards,
Inkant
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There's no Fortran upper limit - any limit is imposed by the operating system. Such limits are based on the address space size and are generally 2GB (not MB!) unless you are on an x64 platform and use -mcmodel medium.
When you pass an array, assuming you just give the array name, it passes the address. I would suggest that you look for coding errors such as mismatched bounds declarations.
When you pass an array, assuming you just give the array name, it passes the address. I would suggest that you look for coding errors such as mismatched bounds declarations.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page