CFD Online Logo CFD Online URL
Home > Forums > Main CFD Forum

Fortran Warning and error

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   March 9, 2007, 16:54
Default Fortran Warning and error
Posts: n/a
Sponsored Links
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

  Reply With Quote
Sponsored Links

Old   March 10, 2007, 10:19
Default Re: Fortran Warning and error
Posts: n/a

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


  Reply With Quote

Old   March 10, 2007, 19:28
Default Re: Fortran Warning and error
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




  Reply With Quote

Old   March 12, 2007, 11:24
Default Re: Fortran Warning and error
Posts: n/a
You must have a stack size option somewhere in your compiler. Simply increase with respect to the default value (usually 2MB).
  Reply With Quote

Old   July 28, 2009, 13:57
Default Fortran warning
New Member
Join Date: Jul 2009
Posts: 4
Rep Power: 10
snow-white is on a distinguished road

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?

snow-white is offline   Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh gschaider OpenFOAM 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 120 December 2, 2009 11:23
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 17:51

Sponsored Links

All times are GMT -4. The time now is 02:01.