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

Compiling library changes

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By David*

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 23, 2016, 20:49
Default Compiling library changes
  #1
New Member
 
Stephen Waite
Join Date: May 2013
Location: Auckland, New Zealand
Posts: 29
Rep Power: 12
Stephen Waite is on a distinguished road
Hi guys,

I am having a small problem compiling some changes using wmake libso for the C file,

/src/OpenFOAM/fields/pointPatchFields/pointPatchFild/pointPatchField.C

The problem is that once I run wmake and compile the library, I get the message "warning: Source file is more recent than executable when running through my solver ". What I'm confused about is that if I make changes to the file, say put in a broken line, the compiler will send back an error, so I feel like the script is being compiled, but the library is not updated?

I had a look at the make file that is being run, and it does not include pointPatchField.C. I tried placeing it into the make files, but that causes another error, stating that the member functions are already defined. So I am guessing a different make file or something is using pointPatchField.C?. But I dont really know how to find this or whats going on.

If anyone could could give me a hand with this that would be fantastic

Cheers
Stephen
Stephen Waite is offline   Reply With Quote

Old   August 24, 2016, 04:10
Default
  #2
Member
 
David GISEN
Join Date: Jul 2009
Location: Germany
Posts: 68
Rep Power: 16
David* is on a distinguished road
Hi,

do you execute wmake libso while being in the folder
Code:
OpenFOAM-2.3.1/src/OpenFOAM/
?

Cause that works for me after changing pointPatchField.C (for 2.3.1)

It's true that OpenFOAM-2.3.1/src/OpenFOAM/Make/files does not contain the file name, but its linked in OpenFOAM-2.3.1/src/OpenFOAM/lnInclude.

Cheers, David
Stephen Waite likes this.
David* is offline   Reply With Quote

Old   August 25, 2016, 19:01
Default
  #3
New Member
 
Stephen Waite
Join Date: May 2013
Location: Auckland, New Zealand
Posts: 29
Rep Power: 12
Stephen Waite is on a distinguished road
Hi David,

Thanks for the reply sorry for the delay I had some experiment issues. Yup so I was running it in the file path of pointPatchField.C initially, I just tried at /src/OpenFOAM/ and but its still has the same problem. I can make changes to the script that I think are getting compiled (Im guessing this as if I put in broken lines the compiler sends back errors) but when I actually run the code, and step through it with GDB I get the message "warning: Source file is more recent than executable" and it dosnt print out any of the Info statements I have put in.

Did you find that your modifications where actually getting included when you run the changes in an application (such as InterDyMFoam).

Thanks for the help.
Stephen
Stephen Waite is offline   Reply With Quote

Old   August 26, 2016, 03:08
Default
  #4
Member
 
David GISEN
Join Date: Jul 2009
Location: Germany
Posts: 68
Rep Power: 16
David* is on a distinguished road
sorry, didn't try (and dont have time) to run it, I thought completed compilation would be enough.

I checked my $(FOAM_LIBBIN)/libOpenFOAM (= OpenFOAM-2.3.1/platforms/linux64IccDPOpt/lib/libOpenFOAM.so ) and it wasn't updated, either. good luck..
David* is offline   Reply With Quote

Old   August 26, 2016, 19:41
Default
  #5
New Member
 
Stephen Waite
Join Date: May 2013
Location: Auckland, New Zealand
Posts: 29
Rep Power: 12
Stephen Waite is on a distinguished road
Thats all good thanks, bumping in case anyone else can shed some light on this, I will update if I can figure it out

Cheers
Stephen
Stephen Waite 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
Compiling library and linking it to a solver criolla OpenFOAM 2 July 27, 2016 03:13
Compiling an external Fortran library of thermodynamics and using inside reactingFoam Mehdi3031 OpenFOAM Programming & Development 4 March 18, 2016 18:10
Problem compiling a custom Lagrangian library brbbhatti OpenFOAM Programming & Development 2 July 7, 2014 11:32
compiling a new library fusij OpenFOAM 0 May 12, 2011 04:34
OpenFOAM141dev linking error on IBM AIX 52 matthias OpenFOAM Installation 24 April 28, 2008 15:49


All times are GMT -4. The time now is 09:36.