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 1368 matches
forums.silverfrost.com Forum Index
Author Message
  Topic: False subscript error detected
mecej4

Replies: 3
Views: 41

PostForum: Support   Posted: Fri Aug 07, 2020 5:47 pm   Subject:
Paul, I think that it is more an FTN95 issue. I ran the test program with NAG and Lahey compilers with their checking flags turned on, and there were no subscript errors reported. The Lapack code has ...
  Topic: False subscript error detected
mecej4

Replies: 3
Views: 41

PostForum: Support   Posted: Fri Aug 07, 2020 1:54 pm   Subject: False subscript error detected
I had occasion to compile a program that used Lapack/BLAS routines, and needed to compile the needed BLAS routines with /check. FTN95 detects a subscript error in a situation where (I think) that it s ...
  Topic: SDBG64 gets confused about dummy argument dimensions
mecej4

Replies: 5
Views: 125

PostForum: 64-bit   Posted: Mon Aug 03, 2020 1:52 pm   Subject:
Thanks for the additional findings, John C. Did you also see "TL): Too many closing brackets" when you looked at the variable TL?

In both the reproducers, if the subroutine is converted t ...
  Topic: SDBG64 gets confused about dummy argument dimensions
mecej4

Replies: 5
Views: 125

PostForum: 64-bit   Posted: Mon Aug 03, 2020 11:12 am   Subject: Same issue, REAL instead of COMPLEX used
It turns out that replacing COMPLEX by REAL in the reproducer causes the SDBG64 bug to remain. The larger code from which I derived the reproducer contains lots of COMPLEX variables and I originally t ...
  Topic: SDBG64 gets confused about dummy argument dimensions
mecej4

Replies: 5
Views: 125

PostForum: 64-bit   Posted: Mon Aug 03, 2020 10:57 am   Subject: SDBG64 gets confused about dummy argument dimensions
Please compile and link the test program below with /64 /check or /64 /checkmate.

Open the EXE in SDBG64, and place a breakpoint on the indicated line. Run until the breakpoint is hit.

Hover th ...
  Topic: SDBG64 quits abruptly when asked to open a source file
mecej4

Replies: 6
Views: 172

PostForum: 64-bit   Posted: Sun Aug 02, 2020 1:14 pm   Subject:
Thanks, Robert!

The new 8.64 version of SDBG64 works correctly not only with the two reproducers but also with the unabridged program, which spans 142 source files + 22 include files.
  Topic: How much Ram required
mecej4

Replies: 4
Views: 129

PostForum: Support   Posted: Sun Aug 02, 2020 12:21 pm   Subject:
These days, it is more common to use dynamically allocated arrays -- typically, arrays whose sizes are computed from earlier portions of input data. There is no simple, reliable way of keeping a tally ...
  Topic: SDBG64 quits abruptly when asked to open a source file
mecej4

Replies: 6
Views: 172

PostForum: 64-bit   Posted: Sun Aug 02, 2020 3:24 am   Subject:
I remembered this discussion regarding /save and /zeroise for 64-bit compilations: http://forums.silverfrost.com/viewtopic.php?t=4153 . On 20 Feb 2020 (02/20/2020 in US format!), Paul wrote:

/ZEROI ...
  Topic: SDBG64 quits abruptly when asked to open a source file
mecej4

Replies: 6
Views: 172

PostForum: 64-bit   Posted: Sun Aug 02, 2020 1:14 am   Subject: Shorter reproducer
Here is a very short reproducer. I think that the presence of BLOCK DATA is causing a malfunction in SDBG64.

File main.f:
program mainprg
common /xx/x(5)
call sub(x ...
  Topic: SDBG64 quits abruptly when asked to open a source file
mecej4

Replies: 6
Views: 172

PostForum: 64-bit   Posted: Sat Aug 01, 2020 5:00 pm   Subject: SDBG64 quits abruptly when asked to open a source file
The following zip file contains three source files and three include files, all of which together amount to less than a hundred lines.

https://www.dropbox.com/s/5a849rsjvn0uwty/smpdbg.7z?dl=0 ...
  Topic: Using PACK on TYPE's
mecej4

Replies: 16
Views: 568

PostForum: Support   Posted: Sat Aug 01, 2020 7:23 am   Subject:
For instructional purposes, that code for Qsort is fine. However, it is neither stable (in the sense of preserving the order of items with equal sort keys), nor efficient.

It is not stable since i ...
  Topic: Using PACK on TYPE's
mecej4

Replies: 16
Views: 568

PostForum: Support   Posted: Fri Jul 24, 2020 8:11 am   Subject:
Fortran 2008 provides a feature that enables one to avoid repetitions (three in JohnC's code, one of which can be avoided) of the expression pack(mine,selection), since in a large program such repeate ...
  Topic: Using PACK on TYPE's
mecej4

Replies: 16
Views: 568

PostForum: Support   Posted: Thu Jul 23, 2020 6:44 pm   Subject: Re:
This is interesting... With Mecej4's suggestion both alternative compilers return identical non-zero values for the remaining elements!

Rather, those remaining elements simply retain their previous ...
  Topic: Using PACK on TYPE's
mecej4

Replies: 16
Views: 568

PostForum: Support   Posted: Thu Jul 23, 2020 12:19 pm   Subject:
I think that the program is in error, and FTN95 /checkmate does not catch the error.

The error is in the assignment statement

mine = pack(mine,selection)

The expression on the right o ...
  Topic: Compiler does not object to illegal Equivalence
mecej4

Replies: 11
Views: 405

PostForum: Support   Posted: Wed Jul 22, 2020 5:36 pm   Subject:
John C: EQUIVALENCE was used in old codes, and compilers continue to support it even though it is now marked "obsolescent" along with COMMON. What is not allowed by the standard is declaring ...
 
Page 1 of 92 Goto page 1, 2, 3 ... 90, 91, 92  Next
All times are GMT + 1 Hour
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group