Author |
Message |
Topic: Reference through null fortran pointer |
JohnCampbell
Replies: 6
Views: 198
|
Forum: Support Posted: Sat Jan 28, 2023 2:59 am Subject: |
My solution for the repeated mouse interupts has been to only update after a minimum movement distance.
Alternatively, you could have a status variable, say "magnify_in_progress" and eith ... |
Topic: Reference through null fortran pointer |
JohnCampbell
Replies: 6
Views: 198
|
Forum: Support Posted: Fri Jan 27, 2023 12:07 am Subject: |
Dan,
You did not show how arrays MagnifierArr and ImageArr are defined.
My minimum requirement is as arguments would be:
integer MagnifierArr(3, ixsizMag,iysizMag), ImageArr(3,hres,vres)
This ... |
Topic: Reference through null fortran pointer |
JohnCampbell
Replies: 6
Views: 198
|
Forum: Support Posted: Thu Jan 26, 2023 6:43 am Subject: |
Dan,
The following code could run faster and clarify some integer division.
Is magnFactor real ?
subroutine Magnifier ( ihw_Magnifier, magnFactor, ix_mouse, iy_mouse, &
... |
Topic: GET_GSTORAGE@ doesn't always work? |
JohnCampbell
Replies: 52
Views: 1589
|
Forum: Support Posted: Wed Jan 18, 2023 5:11 am Subject: |
I may be saying what Robert said, but slightly differently, as for a 32 bit executable on Win 9 +, a valid memory address could be between 0 to about 3.7 GBytes.
There is potential for some of the ... |
Topic: GET_GSTORAGE@ doesn't always work? |
JohnCampbell
Replies: 52
Views: 1589
|
Forum: Support Posted: Sat Jan 14, 2023 5:28 am Subject: |
Kenny,
I find the combination of Fortran local, automatic and ALLOCATE arrays work well for me for /64. I limit my memory management to call by reference arrays, so do not use pointers or memory ad ... |
Topic: GET_GSTORAGE@ doesn't always work? |
JohnCampbell
Replies: 52
Views: 1589
|
Forum: Support Posted: Sat Jan 14, 2023 2:39 am Subject: |
This is my contribution to understanding memory allocation
module ELEM_DATA_BASE ! (minimal example)
integer*4 :: MXELEM = 0 ! maximum element number ... |
Topic: GET_GSTORAGE@ doesn't always work? |
JohnCampbell
Replies: 52
Views: 1589
|
Forum: Support Posted: Fri Jan 13, 2023 12:58 pm Subject: Re: |
It is worth remembering that VirtualAlloc allocates (or uses memory) at page size granularity. So an alloc of a few bytes takes a full 4K page
Robert, Your earlier statement that you provided inte ... |
Topic: GET_GSTORAGE@ doesn't always work? |
JohnCampbell
Replies: 52
Views: 1589
|
Forum: Support Posted: Tue Jan 10, 2023 12:30 pm Subject: Re: |
Kenny
Here is a sample but you will need a new clearwin64.dll because __open_heap and __close_heap are not currently exported.
I am interested in aligning ALLOCATE on a page boundary, so I am wo ... |
Topic: UNDEF causing allocation problems |
JohnCampbell
Replies: 8
Views: 411
|
Forum: Support Posted: Wed Jan 04, 2023 6:11 am Subject: |
If running the above program with task manager, show both "Commit size" and "Working Set" |
Topic: UNDEF causing allocation problems |
JohnCampbell
Replies: 8
Views: 411
|
Forum: Support Posted: Wed Jan 04, 2023 5:47 am Subject: |
Dan,
Without /UNDEF, this program will allocate successfully until the size of Arr4 exceeds your virtual memory size limit.
As you never access / "touch" Arr4, it will never be allocate ... |
Topic: Compiler flags only one incorrectly declared variable |
JohnCampbell
Replies: 11
Views: 537
|
Forum: Support Posted: Thu Dec 29, 2022 2:26 am Subject: |
This looks to be a good approach.
I also use ftn95.cfg to include:
/SET_ERROR_LEVEL Warning 327
( I assume there can be multiple of these instructions in ftn95.cfg or multiple error numbers liste ... |
Topic: Array lost in derived type |
JohnCampbell
Replies: 11
Views: 785
|
Forum: Support Posted: Fri Dec 16, 2022 7:46 am Subject: |
Simon,
There are some approaches that might get around some of the problems you may have.
I have not needed extended derived types in my coding, while some allocatable components are acceptable.
... |
Topic: Fortran 2003 and 2008 features |
JohnCampbell
Replies: 141
Views: 49355
|
Forum: Suggestions Posted: Sat Nov 19, 2022 9:13 am Subject: |
Paul,
Thanks for these changes.
I think that /32 is a good addition, especially for clearer documenting of compile options in my .bat builds.
Also, my test from Fri Nov 18 did not identify & ... |
Topic: Fortran 2003 and 2008 features |
JohnCampbell
Replies: 141
Views: 49355
|
Forum: Suggestions Posted: Fri Nov 18, 2022 1:27 pm Subject: |
Paul,
It is good to include in ISO_FORTRAN_ENV, those parameters that are relevant to FTN95 extensions for F03 and F08.
Just to clarify; I was checking if real80 or integer128 possibly might hav ... |
Topic: Fortran 2003 and 2008 features |
JohnCampbell
Replies: 141
Views: 49355
|
Forum: Suggestions Posted: Fri Nov 18, 2022 7:33 am Subject: ISO_FORTRAN_ENV |
Paul,
I was trying to locate what features had been added to iso_fortran_env but could not find any documentation.
I wrote the following program to see what might come out.
I noted:
"i ... |
|