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

calling a non OF class from OF?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 24, 2012, 10:26
Default calling a non OF class from OF?
  #1
New Member
 
Maike
Join Date: Dec 2010
Posts: 8
Rep Power: 16
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!

Cheers,
Maike.
mugi is offline   Reply With Quote

Old   February 25, 2012, 13:26
Default
  #2
Senior Member
 
Adhiraj
Join Date: Sep 2010
Location: Karnataka, India
Posts: 187
Rep Power: 16
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

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
thobois class engineTopoChangerMesh error Peter_600 OpenFOAM 4 August 2, 2014 10: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 05:26


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