soccer jersey forums.silverfrost.com :: Search
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 2557 matches
forums.silverfrost.com Forum Index
Author Message
  Topic: SDBG64 with derived types
JohnCampbell

Replies: 16
Views: 1179

PostForum: 64-bit   Posted: Mon May 20, 2024 10:24 am   Subject:
Dan,

For derived types, I have a derived type of multiple allocatable arrays, and store their dimensions in the derived type.
I then have an allocatable array of this derived type.
In this way I ...
  Topic: SDBG64 with derived types
JohnCampbell

Replies: 16
Views: 1179

PostForum: 64-bit   Posted: Sun May 19, 2024 5:39 am   Subject:
I have expanded to a smaller example to show deallocate of allocatable components, which appears to work.

! ftn95 /64 /debug /link
!
! var1(idim1)%var2(idim2)%var3& ...
  Topic: SDBG64 with derived types
JohnCampbell

Replies: 16
Views: 1179

PostForum: 64-bit   Posted: Sun May 19, 2024 4:30 am   Subject:
Dan,

I have not used multi-level derrived types with allocatable components before.
It certainly gives versatility of the data structure.

The de-allocate code in the example above is very under ...
  Topic: SDBG64 with derived types
JohnCampbell

Replies: 16
Views: 1179

PostForum: 64-bit   Posted: Sun May 19, 2024 2:36 am   Subject: Re:

if ( allocated ( var1(idim1)%var2(idim2)%var3 )) deallocate ( var1(idim1)%var2(idim2)%var3 )
allocate ( var1(idim1)%var2(idim2)%var3(idim3,idim4) )

Dan,
I was reviewing this post.
Wher ...
  Topic: SDBG64 with derived types
JohnCampbell

Replies: 16
Views: 1179

PostForum: 64-bit   Posted: Sun May 05, 2024 7:58 am   Subject:
To previously test the program, I used PLATO (which was set to Gfortran !)

Now with /64 it crashes, but works with 32-bit

[FTN95/Win32 Ver. 9.00.0 Copyright (c) Silverfrost Ltd 1993- ...
  Topic: SDBG64 with derived types
JohnCampbell

Replies: 16
Views: 1179

PostForum: 64-bit   Posted: Sat May 04, 2024 6:13 am   Subject:
I suggest that an enhanced version of the derived type might be more functional, as in the example below
module mod
type cell
integer :: n = 0
real, allocatable, dimension (:&# ...
  Topic: Use of intrinsic function TAN as arg fcn.causes linker error
JohnCampbell

Replies: 3
Views: 3163

PostForum: 64-bit   Posted: Wed Mar 27, 2024 3:05 am   Subject:
In this example, would you need to provide an interface for fzero ?

I expect there could be problems with using an intrinsic, where the kind being expected is not identified ?

Is 32-bit FTN95 co ...
  Topic: Linking order of object files
JohnCampbell

Replies: 10
Views: 1884

PostForum: Support   Posted: Wed Mar 20, 2024 12:57 pm   Subject:
If "FILE_A contains MAIN and SUB_A. They get compile into" OBJ_A.obj

Then, "Because (at this point) SUB_A is not referenced, it is discarded from the link". This does not happen ...
  Topic: Linking order of object files
JohnCampbell

Replies: 10
Views: 1884

PostForum: Support   Posted: Wed Mar 20, 2024 4:41 am   Subject:
Bill, why would main and file A be a library ? They should be loaded from a .obj file.

You say sub_a is not referenced, but if in an .obj it would be in the link list and recognised for le file_b. ...
  Topic: Insufficient virtual stack with 64bits
JohnCampbell

Replies: 24
Views: 3829

PostForum: 64-bit   Posted: Mon Mar 18, 2024 12:43 am   Subject:
Paul,

The concept of a larger stack for automatic or large local arrays, plus for temporary arrays is very good.

Also the use of large virtual address strides provides flexibility for a very lar ...
  Topic: Insufficient virtual stack with 64bits
JohnCampbell

Replies: 24
Views: 3829

PostForum: 64-bit   Posted: Sun Mar 17, 2024 2:42 am   Subject:
Paul,

Could you provide some more information on "Vstack".

Is it a general replacement for the STACK, enabling much larger local or automatic arrays without the need to redefine the St ...
  Topic: Linking order of object files
JohnCampbell

Replies: 10
Views: 1884

PostForum: Support   Posted: Sun Mar 17, 2024 2:14 am   Subject:
I have not utilised .dll files and since converting to FTN95 /64 Ver 8.0, I have stoped using .lib files, but using a long list of "lo ..\lib64\xxlib\aaa.obj" files with "slink64 @saplo ...
  Topic: Insufficient virtual stack with 64bits
JohnCampbell

Replies: 24
Views: 3829

PostForum: 64-bit   Posted: Fri Mar 15, 2024 1:38 am   Subject:
No Dan, it is relevant at all.

If you have a poor solution approach, the compiler can only go so far.

There is still some need for understanding preferred numerical approaches in large calculati ...
  Topic: Insufficient virtual stack with 64bits
JohnCampbell

Replies: 24
Views: 3829

PostForum: 64-bit   Posted: Thu Mar 14, 2024 2:11 pm   Subject:
You could try this alternative code, selecting apy4@.

I ran this with FTN95 Release x64 on my Ryzen with 64 GBytes of physical memory. The test used 59 GBytes and ran faster than Gfortran.
integ ...
  Topic: Insufficient virtual stack with 64bits
JohnCampbell

Replies: 24
Views: 3829

PostForum: 64-bit   Posted: Thu Mar 14, 2024 1:42 pm   Subject: Re:
I am sure you've heard that no one already optimizes codes by hand anymore, compilers do that better than average programmer.

I don't see any compiler fixing your mistakes !

Try this changed co ...
 
Page 1 of 171 Goto page 1, 2, 3 ... 169, 170, 171  Next
All times are GMT + 1 Hour
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group