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 1609 matches
forums.silverfrost.com Forum Index
Author Message
  Topic: Rounding
mecej4

Replies: 6
Views: 157

PostForum: General   Posted: Wed Jan 19, 2022 3:16 pm   Subject:
The advantage of using the NINT function instead of the INT function is that you do not have to tinker with the +0.5 or -0.5, etc.

For x >= 0, NINT(x) = INT(x+0.5)

For x < 0, NINT(x) = IN ...
  Topic: Rounding
mecej4

Replies: 6
Views: 157

PostForum: General   Posted: Tue Jan 18, 2022 3:16 pm   Subject:
Please rethink your response!

You don't start with 430.765 pixels, etc. You start with integers.

You have to apply a linear transformation to scale and shift the integer valued pixel coordinate ...
  Topic: Rounding
mecej4

Replies: 6
Views: 157

PostForum: General   Posted: Tue Jan 18, 2022 1:29 pm   Subject:
Eddie,

There are probably additional requirements that you have not yet stated, but here is my first attempt. Given integer arrays iX and iY, which contain pixel coordinates, the second part of the ...
  Topic: FTN95 compatible with Windows 11?
mecej4

Replies: 2
Views: 119

PostForum: General   Posted: Mon Jan 17, 2022 1:04 pm   Subject:
I upgraded two computers (one Acer desktop, the other Intel NUC 10th gen) from Windows 10 to Windows 11. I have several versions of FTN95, from 5.3 to 8.83, on both. No problems whatsoever that can be ...
  Topic: Possible interference on CW+ by use of PAUSE ??
mecej4

Replies: 8
Views: 217

PostForum: ClearWin+   Posted: Sat Jan 15, 2022 4:11 am   Subject:
My testing showed that PAUSE behaves differently in a 32-bit program as compared to a 64-bit program.

I took the test code in http://forums.silverfrost.com/viewtopic.php?p=32287#32287 and added PA ...
  Topic: Possible interference on CW+ by use of PAUSE ??
mecej4

Replies: 8
Views: 217

PostForum: ClearWin+   Posted: Fri Jan 14, 2022 5:10 pm   Subject:
Eddie:

This is what the PAUSE statement causes to happen in a 32-bit console program.

If the PAUSE is followed by a string in the Fortran source, the length of the string and the address of the ...
  Topic: dangling pointers in linked lists?
mecej4

Replies: 1
Views: 121

PostForum: General   Posted: Fri Jan 14, 2022 11:33 am   Subject:
It seems a bit odd to specify the item to be deleted by its sequence number rather than by its stored value -- an attempt to treat the linked list as if it were an array, with the subscript of the ite ...
  Topic: Using /checkmate does not help catch ASSIGNed GOTO bug
mecej4

Replies: 3
Views: 166

PostForum: Support   Posted: Thu Jan 13, 2022 5:37 pm   Subject:
My recollection of use with other F77 compilers, you can't use "goto pqr" until "assign xx to pqr" has been performed.

Agree. Similarly, one can't use "pqr = pqr+1", e ...
  Topic: Software Version 32 or 64 bit
mecej4

Replies: 1
Views: 203

PostForum: Plato   Posted: Mon Jan 10, 2022 11:00 pm   Subject:
There is a single installer that includes tools for targeting 32-bit and 64-bit. The compiler generated 32-bit OBJs by default. With the /64 option, it generated 64-bit OBJS. There are two linkers, SL ...
  Topic: Using /checkmate does not help catch ASSIGNed GOTO bug
mecej4

Replies: 3
Views: 166

PostForum: Support   Posted: Sun Jan 09, 2022 2:19 pm   Subject: Using /checkmate does not help catch ASSIGNed GOTO bug
The Assigned GOTO feature was deleted in Fortran 95, but FTN95 still supports that Fortran feature, and there are occasional old Fortran codes that we encounter in which it was used.

The Assigned ...
  Topic: pointers & associated/disassociate attributes
mecej4

Replies: 2
Views: 227

PostForum: General   Posted: Mon Jan 03, 2022 9:30 am   Subject:
The code that you showed produces a backward linked list. If you compile and run the complete program from p.59 of the lecture notes that you referred to, you will see the numbers printed out in rever ...
  Topic: Permutations and combinations with a trolley!
mecej4

Replies: 5
Views: 385

PostForum: General   Posted: Sun Jan 02, 2022 6:22 pm   Subject:
Two suggestions.

A. Do not perform a lot of screen output, especially when you are already doing the same output to a file. Such output is only useful when debugging with small data sets.

B. Ins ...
  Topic: FTN95 8.83 issues false warning for substring expression
mecej4

Replies: 1
Views: 233

PostForum: Support   Posted: Tue Dec 21, 2021 4:40 am   Subject: FTN95 8.83 issues false warning for substring expression
The following function counts the number of decimal digits in a character variable.

integer function ndigit(s)
! count number of digits in character string
implicit none
character& ...
  Topic: False report of subscript out of bounds
mecej4

Replies: 9
Views: 734

PostForum: Support   Posted: Tue Dec 14, 2021 4:26 pm   Subject:
Thanks.

A workaround that I may use is to put the problematic subroutine (SOLOUT) all by itself into a new source file, and compiling the new file without /check.
  Topic: corrupt object module when compiling huge program with debug
mecej4

Replies: 26
Views: 1460

PostForum: Support   Posted: Fri Dec 10, 2021 2:59 pm   Subject:
I renamed the file to "test1.f90" and tried the four combinations of /64 and /debug. In every case the compiler crashed with an attempt to read from location 00000000.

At this point it wo ...
 
Page 1 of 108 Goto page 1, 2, 3 ... 106, 107, 108  Next
All times are GMT + 1 Hour
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group