CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Main CFD Forum

Fortran Warning and error

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 9, 2007, 15:54
Default Fortran Warning and error
  #1
M.M
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

  Reply With Quote

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

  Reply With Quote

Old   March 10, 2007, 18:28
Default Re: Fortran Warning and error
  #3
Renato.
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.

  Reply With Quote

Old   March 12, 2007, 11:24
Default Re: Fortran Warning and error
  #4
jojo
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).
  Reply With Quote

Old   July 28, 2009, 13:57
Default Fortran warning
  #5
New Member
 
Join Date: Jul 2009
Posts: 4
Rep Power: 7
snow-white is on a distinguished road
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
snow-white is offline   Reply With Quote

Reply

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 297 August 12, 2014 06:51
ParaView for OF-1.6-ext Chrisi1984 OpenFOAM Installation 0 December 31, 2010 06:42
latest OpenFOAM-1.6.x from git failed to compile phsieh2005 OpenFOAM Bugs 25 February 9, 2010 04:37
Version 15 on Mac OS X gschaider OpenFOAM Installation 120 December 2, 2009 10:23
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 17:51


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