forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Search found 1759 matches
forums.silverfrost.com Forum Index
Author Message
  Topic: Formatted read with A format converts tabs to spaces
mecej4

Replies: 4
Views: 122

PostForum: Support   Posted: Sun Jan 29, 2023 10:59 am   Subject:
Thanks, John. The relevant online documentation page is https://silverfrost.com/ftn95-help/inout/open.aspx (scroll to the bottom). I did try to search the documentation with phrases such as "tabs ...
  Topic: Tab separated fields
mecej4

Replies: 11
Views: 232

PostForum: General   Posted: Sat Jan 28, 2023 3:53 pm   Subject: Bug in FTN95, inputting text containing tab characters
The bug is not in INDEX(). It is in input conversion under format A. The tab characters are lost when a READ with A format is done. The character variable does not have any tab characters in it, and i ...
  Topic: Formatted read with A format converts tabs to spaces
mecej4

Replies: 4
Views: 122

PostForum: Support   Posted: Sat Jan 28, 2023 3:50 pm   Subject: Formatted read with A format converts tabs to spaces
The following program demonstrates a bug in FTN95. When a text data file containing tab characters is read using the A format specifier, each tab is converted and expanded to a number of spaces. This ...
  Topic: Tab separated fields
mecej4

Replies: 11
Views: 232

PostForum: General   Posted: Sat Jan 28, 2023 2:46 pm   Subject:
Here are three reasons why your program stringnew.f90 failed:
1. Your program does not search for and process tab characters (char(9)) at all.
2. In your data file, the second field contai ...
  Topic: Tab separated fields
mecej4

Replies: 11
Views: 232

PostForum: General   Posted: Sat Jan 28, 2023 12:15 pm   Subject:
Please provide an exact copy of the data file adatac.txt .

Program source and/or data in text form, when posted in line in a user post in this and similar forums, can get mangled -- for instance, t ...
  Topic: Tab separated fields
mecej4

Replies: 11
Views: 232

PostForum: General   Posted: Sat Jan 28, 2023 1:09 am   Subject:
One of the undesirable consequences of using fixed size strings is having to contend with a lot of padding.

Does the following code satisfy your needs?

program xyz
implicit none
integer ...
  Topic: Find current directory
mecej4

Replies: 11
Views: 250

PostForum: Support   Posted: Wed Jan 25, 2023 1:39 pm   Subject:
The scoping rules in Fortran are somewhat complicated, because new facilities (contained subprograms, modules) were added piecewise over decades, while insisting on keeping old programs unaffected by ...
  Topic: Find current directory
mecej4

Replies: 11
Views: 250

PostForum: Support   Posted: Wed Jan 25, 2023 12:27 am   Subject:
When an identifier appears in an expression with an argument list (with zero or more arguments), and the variable has not been declared to be an array, the identifier implicitly acquires the EXTERNAL ...
  Topic: GET_GSTORAGE@ doesn't always work?
mecej4

Replies: 52
Views: 1654

PostForum: Support   Posted: Fri Jan 13, 2023 12:52 pm   Subject:
That is strange, and may be related to the exact details of your copy-paste procedure. I used Firefox on Windows to copy, and pasted by redirection to a file in a command window, and did not find any ...
  Topic: Compiler rejects #include in col-1 of fixed form source file
mecej4

Replies: 2
Views: 195

PostForum: Support   Posted: Tue Jan 10, 2023 3:53 pm   Subject: Compiler rejects #include in col-1 of fixed form source file
Given a test program source file (fixed form) containing #include directives starting in column-1, FTN95 refuses to compile the file.

program fppbug
implicit none
#include "size. ...
  Topic: Failure to detect undefined variable in a common block
mecej4

Replies: 1
Views: 174

PostForum: 64-bit   Posted: Tue Jan 10, 2023 12:34 pm   Subject: Failure to detect undefined variable in a common block
In the following program, one of the variables in a COMMON block is used before it has been defined.

!
program buggy
implicit none
external blkd
integer i,j,k,l,m,n
...
  Topic: Fortran 2003 and 2008 features
mecej4

Replies: 141
Views: 49514

PostForum: Suggestions   Posted: Thu Jan 05, 2023 4:24 pm   Subject:
There is at least one more situation where a similar spurious warning is given -- parts of expressions wherein a variable name is required by the language rules but only the type of the variable matte ...
  Topic: Compiler does not flag error in assignment statement
mecej4

Replies: 5
Views: 427

PostForum: Support   Posted: Wed Jan 04, 2023 2:08 pm   Subject: Compiler does not flag error in assignment statement
In the following program, the first executable statement is in error because the right hand side expression is array valued, and the variable on the left is scalar.

Compiler versions 8.90 and 8.92 ...
  Topic: Compiler flags only one incorrectly declared variable
mecej4

Replies: 11
Views: 548

PostForum: Support   Posted: Tue Dec 27, 2022 9:20 am   Subject:
Thanks, Paul, perhaps a better solution would be to allow that hidden flag (now accessible only to the compiler developers) to be set by the user in FTN95.cfg or as a compiler command option. As Eddie ...
  Topic: Compiler flags only one incorrectly declared variable
mecej4

Replies: 11
Views: 548

PostForum: Support   Posted: Tue Dec 27, 2022 1:51 am   Subject:
Thanks for spotting the slip, Eddie. I have corrected the reproducer above.

The issue still stands. In the actual code (not the small reproducer that I posted), the common block contains hundreds o ...
 
Page 1 of 118 Goto page 1, 2, 3 ... 116, 117, 118  Next
All times are GMT + 1 Hour
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group