CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM

calling a non OF class from OF?

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

LinkBack Thread Tools Display Modes
Old   February 24, 2012, 10:26
Default calling a non OF class from OF?
New Member
Join Date: Dec 2010
Posts: 8
Rep Power: 9
mugi is on a distinguished road
Dear all,

I would like to call a class that is plain C++, not OF related, from OpenFOAM.
The code compiles but if I start the application I get a printStack error related to that class. Do I have to adjust the external class or do I have to tell OF that an external one is called? Or is it not possible at all?

Thanks a lot for every help!

mugi is offline   Reply With Quote

Old   February 25, 2012, 13:26
Senior Member
Join Date: Sep 2010
Location: Maryland, United States
Posts: 104
Rep Power: 9
adhiraj is on a distinguished road
Can you post more details?
What do you mean by calling a class?
I assume that you included the proper headers and put the location of the libraries in the "Make/options" file.
Are you sure that the class is being instantiated before you try to use it?
Without these details I doubt anyone can really see what the problem is.
adhiraj 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
thobois class engineTopoChangerMesh error Peter_600 OpenFOAM 4 August 2, 2014 09:52
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug unoder OpenFOAM Installation 11 January 30, 2008 21:30
How to add a new class locally ville OpenFOAM 4 December 11, 2006 14:20
About UList and List class leosding OpenFOAM Running, Solving & CFD 1 December 2, 2005 00:52
Expanding a class fabianpk OpenFOAM 0 October 3, 2005 04:26

All times are GMT -4. The time now is 13:08.