CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > Siemens

Segmentation error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 4, 2003, 11:38
Default Segmentation error
  #1
Ulf
Guest
 
Posts: n/a
I have serious problem with the subroutine posdat (on a single job). I do some averaging for droplet variables in posdat. This routine has worked perfect until I changed configuration (80000 cells to 700000 cells) and suddenly I got segmentation error (crash) at iteration 1. The subroutine is not even activated at this stage. I have been forced to not include this routine in my computations, but I really need this. I would appreciate any help. Regards Ulf
  Reply With Quote

Old   March 5, 2003, 14:29
Default Re: Segmentation error
  #2
steve
Guest
 
Posts: n/a
Are you dimensioning any arrays to 700000? If so are they simply dimensioned or are they in a common block? Fortran puts the memory in different places (stack vs heap vs who knows where it goes) depending upon how you define the array and sometimes you just need to move it to a different storage location.
  Reply With Quote

Old   March 6, 2003, 02:24
Default Re: Segmentation error
  #3
Ulf
Guest
 
Posts: n/a
Hi steve, thanks for your response. My arrays are simply dimensioned, e.g. DIMENSION SQRD(NCMAX), CUBD(NCMAX). This is also what I believe, causes the problems. But I don't know how to fix it.

  Reply With Quote

Old   March 6, 2003, 09:45
Default Re: Segmentation error
  #4
steve
Guest
 
Posts: n/a
Ulf, Try this

COMMON/ULFSCOMMON/SQRD(NCMAX),CUBD(NCMAX)

Instead of the dimension statement

Steve
  Reply With Quote

Old   March 6, 2003, 11:11
Default Re: Segmentation error
  #5
Ulf
Guest
 
Posts: n/a
Hi steve, Thank you very much for the tip. It worked perfectly. Regards, Ulf
  Reply With Quote

Old   March 11, 2003, 08:15
Default Re: Segmentation error
  #6
John
Guest
 
Posts: n/a
Hi Ulf and Steve, I see you are using posdat routine with Lagrangian. I currently have a problem running this on Linux. The case runs fine on SGI. Are you running on Linux too? John.
  Reply With Quote

Old   March 11, 2003, 10:04
Default Re: Segmentation error
  #7
Ulf
Guest
 
Posts: n/a
Yes, I am running Linux.
  Reply With Quote

Old   March 11, 2003, 12:29
Default Re: Segmentation error
  #8
John
Guest
 
Posts: n/a
Ulf/Steve, Could it be then, that Linux doesn't like the dimension statement causing it to segmentation fault? Ulf, have your tried your case on an SGI platform? If so, did it work? John.
  Reply With Quote

Old   March 12, 2003, 02:40
Default Re: Segmentation error
  #9
Ulf
Guest
 
Posts: n/a
Hi John, I have not tried my job on a workstation. We have retired almost all our old workstations. Have you tried the tip steve gave me. /Ulf
  Reply With Quote

Old   March 12, 2003, 04:25
Default Re: Segmentation error
  #10
John
Guest
 
Posts: n/a
Hi Ulf, I will try something like that. My dimension statements are actually in an include file which is referenced by other subroutines, so a straight substitution here will incur a "duplicate common statement" error. However, I will try a test.... Cheers, John.
  Reply With Quote

Old   March 17, 2003, 09:11
Default Re: Segmentation error
  #11
steve
Guest
 
Posts: n/a
John, I can tell you absolutely that there is a limit on how big you can make a dimension statement when the array is not in common. A non-common dimensioned array goes on to stack which is usually limited compared to datasize or vmemoryuse. You should be able to construct you include files to have only 1 reference to a given common block.

Steve
  Reply With Quote

Old   March 18, 2003, 10:43
Default Re: Segmentation error
  #12
John
Guest
 
Posts: n/a
Cheers Steve, On the case as we speak....
  Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Segmentation error in tutorials mic Siemens 1 March 27, 2007 07:33
segmentation Fault/error rajesh Siemens 2 April 20, 2006 14:17
SEGMENTATION VIOLATION ERROR Cliff FLUENT 1 April 3, 2006 05:48
Segmentation Error Leo FLUENT 3 November 7, 2005 08:02
Segmentation Violation error anindya FLUENT 0 March 21, 2005 02:52


All times are GMT -4. The time now is 04:16.