- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Does Fortran90 allow to write more than 132 charactes in a line in free-format? If I write more than 132 characters in a line in free-format Fortran90, what will happen then?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
According to the documentation, compiler limits are:
Fortran source line length fixed form: 72 (or 132 if /extend_source is in effect) characters;
free form: 7200 characters
However, for readability and code maintenance, I would suggest shorter lines are best!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks, David White for your valuable information!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Enforcing standards for free form warns for over 132 (or is it 128?).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
132 is what the standard says.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Steve Lionel for giving the information. However, can you tell me that what will happen if I write more than 132 character in one line?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
By default, it will work fine. We support, as an extension, a much longer line. If you ask for standards warnings, you'll get a warning.
I'd discourage you from doing this, though, as it's not portable.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page