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 1762 matches
forums.silverfrost.com Forum Index
Author Message
  Topic: Tab separated fields
mecej4

Replies: 15
Views: 312

PostForum: General   Posted: Thu Feb 02, 2023 1:23 pm   Subject: Re:

I used to use tabs to get to column 7 a lot.
Eddie

Tabs in data files do not have the same intended meaning as in Fortran fixed form source files. When a user creates a Fortran source file usi ...
  Topic: Tab separated fields
mecej4

Replies: 15
Views: 312

PostForum: General   Posted: Thu Feb 02, 2023 1:14 pm   Subject:
Semicolons as field separators have an advantage over the other characters (comma, tab) that they are rarely used within text field data. Tabs are not visible. Commas, single quotes and hyphens may oc ...
  Topic: Lbound with derived-type arrays
mecej4

Replies: 5
Views: 82

PostForum: Support   Posted: Tue Jan 31, 2023 11:40 pm   Subject:
You may find the answer if you replace (0:2) by (-2:0) in the definition of t%i and see how that changes the results.

Changing the Print statement to
Print*, lbound(at(1)%i), uboun ...
  Topic: Formatted read with A format converts tabs to spaces
mecej4

Replies: 4
Views: 186

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: 15
Views: 312

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: 186

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: 15
Views: 312

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: 15
Views: 312

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: 15
Views: 312

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: 261

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: 261

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: 1670

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: 203

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: 190

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: 49758

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 ...
 
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