|
[Sponsors] |
March 9, 2007, 16:54 |
Fortran Warning and error
|
#1 |
Guest
Posts: n/a
|
Hello All,
I've got this warning when I ran my code in Fortran: "warning LNK4084: total image size 377360384 exceeds max (268435456); image may not run" What is this warning and how it could be fixed. Thanks M.M |
|
March 10, 2007, 10:19 |
Re: Fortran Warning and error
|
#2 |
Guest
Posts: n/a
|
Hi,
I guess you are using visual fortran under windows. I think this message comes from the limitations of old operating systems (i.e. windows 98 ...) that did not accept executables bigger than 256Mb. "image may not run" => if it runs, do not pay to much attention to it Regards |
|
March 10, 2007, 19:28 |
Re: Fortran Warning and error
|
#3 |
Guest
Posts: n/a
|
Your warning is due to lack of memory to load your program due to the size of the memory fixed allocated. You can work out it by using dynamic memory allocation (it's a Fortran 9X feature, so, don't try to do it with old F77 compilers). You can do it according to the following example.
! fixed allocated real*8 :: HugeArray(1000000000) ! dynamica array real*8, allocatable :: HugeArray( n = 10000000 allocate(HugeArray(n)) ! use your HugeArray ! Freeing the memory previously allocated deallocate(HugeArray) Cheers Renato. |
|
March 12, 2007, 11:24 |
Re: Fortran Warning and error
|
#4 |
Guest
Posts: n/a
|
You must have a stack size option somewhere in your compiler. Simply increase with respect to the default value (usually 2MB).
|
|
July 28, 2009, 14:57 |
Fortran warning
|
#5 |
New Member
Join Date: Jul 2009
Posts: 4
Rep Power: 16 |
Hi
I have this warning when I compile my code: A jump into a block from outside the block may have occurred" How could I fix it? Thanks, snow |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh | gschaider | OpenFOAM Community Contributions | 300 | October 29, 2014 19:00 |
ParaView for OF-1.6-ext | Chrisi1984 | OpenFOAM Installation | 0 | December 31, 2010 07:42 |
latest OpenFOAM-1.6.x from git failed to compile | phsieh2005 | OpenFOAM Bugs | 25 | February 9, 2010 05:37 |
Version 15 on Mac OS X | gschaider | OpenFOAM Installation | 113 | December 2, 2009 11:23 |
DecomposePar links against liblamso0 with OpenMPI | jens_klostermann | OpenFOAM Bugs | 11 | June 28, 2007 18:51 |