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 539 matches
forums.silverfrost.com Forum Index
Author Message
  Topic: Interface intent differs from subroutine intent
Kenneth_Smith

Replies: 5
Views: 458

PostForum: Support   Posted: Thu Sep 08, 2022 10:37 am   Subject: Interface intent differs from subroutine intent
The following code compiles in FTN95 without any errors or warnings, while other compilers either issue an error or a warning.

I don't think this is a major problem (in terms of the executable gene ...
  Topic: What's best to use?
Kenneth_Smith

Replies: 14
Views: 758

PostForum: ClearWin+   Posted: Wed Sep 07, 2022 1:49 pm   Subject:
Paul,

Thanks for that suggestion - I don't think that has found it's way into the documentation for add_graphics_icon@.

Bill,

This illustrates the basic idea I was thinking about for your ca ...
  Topic: Suggestion %pl[native, scale=****] + CHANGE_PLOT_CHR@
Kenneth_Smith

Replies: 14
Views: 794

PostForum: ClearWin+   Posted: Wed Sep 07, 2022 9:50 am   Subject:
Paul,

That's brilliant, thank you for this addition. I hope it was not a restless sleep with your mind churning through the code for %pl.
  Topic: What's best to use?
Kenneth_Smith

Replies: 14
Views: 758

PostForum: ClearWin+   Posted: Wed Sep 07, 2022 9:45 am   Subject:
Paul,

Thanks for the information. I did not form my question very well.

If the bitmap does not exist in the resources section but is instead created during the execution of the program, can it ...
  Topic: Suggestion %pl[native, scale=****] + CHANGE_PLOT_CHR@
Kenneth_Smith

Replies: 14
Views: 794

PostForum: ClearWin+   Posted: Wed Sep 07, 2022 8:39 am   Subject:
Paul,

Thanks for taking the time to look at this. It is a pity that it would not be straightforward to implement. Perhaps, it is something for another day – as you suggest.
  Topic: What's best to use?
Kenneth_Smith

Replies: 14
Views: 758

PostForum: ClearWin+   Posted: Mon Sep 05, 2022 11:28 am   Subject:
I have used bitmaps defining electrical circuit elements and ADD_GRAPHICS_ICON@ in my simple “schematic capture” program. This allows the user to add a component, move it around, and then add “connec ...
  Topic: Fortran 2003 and 2008 features
Kenneth_Smith

Replies: 116
Views: 38506

PostForum: Suggestions   Posted: Mon Aug 29, 2022 1:45 pm   Subject:
I found this via google which explains the logic, particularly when mixing optional and non-optional arguments.

Dummy arguments can be made optional if they are declared with the OPTIONAL attribute ...
  Topic: Fortran 2003 and 2008 features
Kenneth_Smith

Replies: 116
Views: 38506

PostForum: Suggestions   Posted: Thu Aug 25, 2022 9:00 am   Subject:
Dan, That's an interesting twist to my last example. Another compiler does issue an ERROR at the call to sub1, "Explicit interface required for 'sub1': optional argument.

FTN95 with Checkmate ...
  Topic: Fortran 2003 and 2008 features
Kenneth_Smith

Replies: 116
Views: 38506

PostForum: Suggestions   Posted: Wed Aug 24, 2022 9:10 pm   Subject:
Dan,
b=1
a=b
call sub1(a)
Is not the same as
b=1
call sub1(a=b)
as in the second case (a=b) is not an assignment in the "usual" way. It is showing that argument A is ...
  Topic: Fortran 2003 and 2008 features
Kenneth_Smith

Replies: 116
Views: 38506

PostForum: Suggestions   Posted: Tue Aug 23, 2022 9:29 am   Subject:
Dan,

SUB1 is not an internal routine i.e. contained in the program or a module. As it is an external routine it must be listed in an interface block.

So there are four ways to make this code wo ...
  Topic: TIMER and MOUSE_MOVE interfere in callback
Kenneth_Smith

Replies: 2
Views: 499

PostForum: Support   Posted: Tue Aug 16, 2022 3:27 pm   Subject:
This earlier post may be of some help.

SUBROUTINE sub(....)
LOGICAL,SAVE:: active
!!DATA statement to initialise active to .FALSE.
IF(active) RETURN
active = .TRUE.
!! ...
  Topic: Fortran 2003 and 2008 features
Kenneth_Smith

Replies: 116
Views: 38506

PostForum: Suggestions   Posted: Fri Aug 12, 2022 8:38 pm   Subject:
Thank you, Paul, I can see that now.

A rather artificial test program to try sometime:

program test
implicit none
integer, parameter ::dp=kind(1.d0)
integer j
prin ...
  Topic: Suggestion %pl[native, scale=****] + CHANGE_PLOT_CHR@
Kenneth_Smith

Replies: 14
Views: 794

PostForum: ClearWin+   Posted: Fri Aug 12, 2022 2:07 pm   Subject:
No problems Paul, I'll leave it with you for now but I suspect what I have suggested is a prerequisite for Dan's suggestion.
  Topic: Fortran 2003 and 2008 features
Kenneth_Smith

Replies: 116
Views: 38506

PostForum: Suggestions   Posted: Fri Aug 12, 2022 12:22 pm   Subject:
I have seen Dan's example for the use of ASSOCIATE before, and find it very confusing. Why does the second print*, x statement return 1 and not 10 since the value of a is updated in the proceeding li ...
  Topic: Suggestion %pl[native, scale=****] + CHANGE_PLOT_CHR@
Kenneth_Smith

Replies: 14
Views: 794

PostForum: ClearWin+   Posted: Fri Aug 12, 2022 12:13 pm   Subject:
Paul, thanks for taking the time to look at this. If Dan's suggestion is not possible, then I suspect that my suggestion is even harder for you. No problems, for this particular program the end user ...
 
Page 1 of 36 Goto page 1, 2, 3 ... 34, 35, 36  Next
All times are GMT + 1 Hour
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group