CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

What is the difference between abort and exit on error

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

LinkBack Thread Tools Search this Thread Display Modes
Old   March 4, 2017, 07:31
Default What is the difference between abort and exit on error
Senior Member
Gerhard Holzinger
Join Date: Feb 2012
Location: Austria
Posts: 293
Rep Power: 24
GerhardHolzinger will become famous soon enoughGerhardHolzinger will become famous soon enough
In the sources of OpenFOAM we find

as well as

The definition of both functions in $FOAM_SRC/OpenFOAM/db/error/error.C seems very similar to me. So maybe I am missing something.

Is there a rule of thumb when to use which?

What I already can tell is this:
  • Abort prints the call stack
  • Exit always returns 1 as return value to the Terminal (check with
    echo $?
GerhardHolzinger is offline   Reply With Quote


error, programming

Thread Tools Search this Thread
Search this Thread:

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
[swak4Foam] installation issues with foamextend3.2 srivatta OpenFOAM Community Contributions 2 January 22, 2017 12:51
parallel simulations - error message: "OPT_ITERATIONS: invalid option name" v8areu SU2 5 July 23, 2015 02:57
[swak4Foam] some errors in compiling groovyBC in OF220 immortality OpenFOAM Community Contributions 10 April 1, 2013 03:46
Compiling OpenFOAM on kaergaard OpenFOAM Installation 1 June 16, 2011 01:33
Error in CFX Solver Leuchte CFX 5 November 6, 2010 06:12

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