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 553 matches
forums.silverfrost.com Forum Index
Author Message
  Topic: Extracting part of code from the large source
davidb

Replies: 9
Views: 806

PostForum: General   Posted: Mon Apr 30, 2018 6:02 pm   Subject:
It is possible to write tests as separate subroutines. With the right software (I use a python script that "understands" Fortran) you can automatically generate Fortran source code for a pr ...
  Topic: Stack Size
davidb

Replies: 16
Views: 1446

PostForum: 64-bit   Posted: Fri Apr 27, 2018 10:48 am   Subject: Re:
See https://msdn.microsoft.com/en-us/library/windows/desktop/ms686774(v=vs.85).aspx regarding threads and stacks. Note the comments in the second paragraph regarding keeping stacks modest in size.

...
  Topic: Stack Size
davidb

Replies: 16
Views: 1446

PostForum: 64-bit   Posted: Fri Apr 27, 2018 10:39 am   Subject:
A well written program that confirms fully with the standard should be correct whether local variables are placed on the stack or in code space. In fact the Fortran standard does say anything about wh ...
  Topic: Stack Size
davidb

Replies: 16
Views: 1446

PostForum: 64-bit   Posted: Thu Apr 26, 2018 11:52 am   Subject:
When a local variable is declared it is usually put on the current stack frame.

You can use SAVE to over-ride this, or the use SAVE attribute for specific variables. If you don't want to change th ...
  Topic: Associated() failing with 64 bit compiler
davidb

Replies: 3
Views: 443

PostForum: Support   Posted: Tue Apr 24, 2018 8:47 am   Subject: Associated() failing with 64 bit compiler
In the following code the associated() intrinsic incorrectly returns .TRUE. causing a run-time error when the deallocate statement is executed.

Since => null() initialisation is used the initial ...
  Topic: Can't assign to intent(out) automatic array element.
davidb

Replies: 2
Views: 382

PostForum: Support   Posted: Tue Apr 24, 2018 8:39 am   Subject: Re:
Thanks. The same fix as before also applies to this code.

In v7.2, runtime checking was not applied when passing array sections as arguments. Runtime checking of array sections was added and worked ...
  Topic: Can't assign to intent(out) automatic array element.
davidb

Replies: 2
Views: 382

PostForum: Support   Posted: Tue Apr 24, 2018 8:02 am   Subject: Can't assign to intent(out) automatic array element.
This bug is similar to the issue with passing automatic arrays on the other thread. A run-time error occurs on the line nn = n when /CHECKMATE or /CHECK is used with the 32 bit compiler. (v 8.3).

...
  Topic: /ISO and /SIZE_ISO
davidb

Replies: 8
Views: 722

PostForum: Support   Posted: Tue Apr 24, 2018 6:53 am   Subject: Re:
I find this thread very annoying.

As someone who uses SIZE with /64, I don't want an intrinsic that returns integer overflow. I want SIZE to return useful information.

How about catering to us u ...
  Topic: /ISO and /SIZE_ISO
davidb

Replies: 8
Views: 722

PostForum: Support   Posted: Mon Apr 23, 2018 8:45 pm   Subject:
Hi Paul.

It might be worth looking at our previous discussion here:

http://forums.silverfrost.com/viewtopic.php?t=3281

Originally there was the option /SIZE32 which changed the behaviour of S ...
  Topic: /ISO and /SIZE_ISO
davidb

Replies: 8
Views: 722

PostForum: Support   Posted: Mon Apr 23, 2018 5:11 pm   Subject: Re:
Further to my last post on this thread...

Up to and including v8.30, /ANSI was an exact alias for /ISO.

Now, users can use /ANSI (instead of /ISO) in order to also force the SIZE intrinsic to re ...
  Topic: Bug in 8.3 - error passing automatic array
davidb

Replies: 5
Views: 608

PostForum: Support   Posted: Mon Apr 23, 2018 5:01 pm   Subject:
Paul,
Thanks. Using /inhibit_check 14 resolves this issue with the 32 bit compiler until the next release. I don't want to turn off /CHECKMATE because I am generally glad of the additional checking o ...
  Topic: Bug in 8.3 - error passing automatic array
davidb

Replies: 5
Views: 608

PostForum: Support   Posted: Sat Apr 21, 2018 12:12 am   Subject:
mecej4, there is no error. Just because a variable is intent(out) doesn't mean the subroutine needs to define it.

All this code does is set the variable to undefined (or it should if it was working ...
  Topic: /ISO and /SIZE_ISO
davidb

Replies: 8
Views: 722

PostForum: Support   Posted: Fri Apr 20, 2018 11:14 am   Subject: /ISO and /SIZE_ISO
The intrinsic SIZE() returns a 64 bit value (KIND = 4) by default.

Using /ISO or /SIZE_ISO is supposed to change this to the default integer kind but this doesn't seem to work. It is always kind = ...
  Topic: Side by side versions?
davidb

Replies: 10
Views: 1078

PostForum: General   Posted: Fri Apr 20, 2018 10:13 am   Subject:
Thanks everyone. I will try something similar to John's suggestion.

John, I am posting more details of the issues I have found with 8.3 in the support section.
  Topic: Bug in 8.3 - error passing automatic array
davidb

Replies: 5
Views: 608

PostForum: Support   Posted: Fri Apr 20, 2018 10:10 am   Subject: Bug in 8.3 - error passing automatic array
In the code below an automatic array freq is declared since the extents of each dimension are defined variables in the module.

This code is ANSI/ISO compliant.

When run with /CHECKMATE enabled t ...
 
Page 1 of 37 Goto page 1, 2, 3 ... 35, 36, 37  Next
All times are GMT + 1 Hour
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group