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

User Fortran - stack overflow problem

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 12, 2013, 03:38
Angry User Fortran - stack overflow problem
  #1
New Member
 
DongGunKo
Join Date: Apr 2013
Posts: 13
Rep Power: 13
D.ko is on a distinguished road
when I apply User fortran(User Defined Function) to simple shape, it really works well.

However, when I tried to apply User Fortran to little complex shape(more mesh than simple shape), it makes problem.

Solver works well before it stopped. But when solver stop the calculation due to calculation converge or if I tried to stop the solver, then suddenly solver shows error message and did not show result. I debugged and saw the message 'stack overflow'.

i changed the stack reserve size in intel visual fortran but it did not work.

how can i change this situation.

please help me
D.ko is offline   Reply With Quote

Old   November 12, 2013, 05:00
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
What error exactly are you getting? Can you show the output file?

If you have insufficient stack space then make the stck bigger.
If you have overflow error look here: http://www.cfd-online.com/Wiki/Ansys...do_about_it.3F
Or do you have a different error?
ghorrocks is online now   Reply With Quote

Old   November 12, 2013, 06:56
Default
  #3
New Member
 
DongGunKo
Join Date: Apr 2013
Posts: 13
Rep Power: 13
D.ko is on a distinguished road
it is stack problem.

actually solver does calculation before i stop it.

But, is i stop the solver than it cannot make output file and make error

and tell thet ''Solver-pcmpi does not operate".

after that, i debug and fine some message that stack overflow in intel fortran compiler.

so i search the that problem and find solution. so i changed the 'stack reserve size' in the intel fortran compiler. but it does not work.
D.ko is offline   Reply With Quote

Reply

Tags
stack violation, udf, user fortran


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
Comparison between C/C++ and Fortran? rick Main CFD Forum 45 September 6, 2011 01:52
flow driven problem - fortran Matjaz CFX 4 April 11, 2011 14:52
Overflow problem in steady simulation ReeKo CFX 11 October 8, 2008 18:57
Fortran compiler problem Luke Siemens 2 September 18, 2008 04:43
Stack frame size, Origin 2000, fortran, a question. Sergei Chernyshenko Main CFD Forum 4 February 22, 1999 15:24


All times are GMT -4. The time now is 17:00.