|
[Sponsors] |
August 23, 2016, 21:49 |
Compiling library changes
|
#1 |
New Member
Stephen Waite
Join Date: May 2013
Location: Auckland, New Zealand
Posts: 29
Rep Power: 13 |
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 |
|
August 24, 2016, 05:10 |
|
#2 |
Member
David GISEN
Join Date: Jul 2009
Location: Germany
Posts: 70
Rep Power: 17 |
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 |
|
August 25, 2016, 20:01 |
|
#3 |
New Member
Stephen Waite
Join Date: May 2013
Location: Auckland, New Zealand
Posts: 29
Rep Power: 13 |
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 |
|
August 26, 2016, 04:08 |
|
#4 |
Member
David GISEN
Join Date: Jul 2009
Location: Germany
Posts: 70
Rep Power: 17 |
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.. |
|
August 26, 2016, 20:41 |
|
#5 |
New Member
Stephen Waite
Join Date: May 2013
Location: Auckland, New Zealand
Posts: 29
Rep Power: 13 |
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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Compiling library and linking it to a solver | criolla | OpenFOAM | 2 | July 27, 2016 04:13 |
Compiling an external Fortran library of thermodynamics and using inside reactingFoam | Mehdi3031 | OpenFOAM Programming & Development | 4 | March 18, 2016 19:10 |
Problem compiling a custom Lagrangian library | brbbhatti | OpenFOAM Programming & Development | 2 | July 7, 2014 12:32 |
compiling a new library | fusij | OpenFOAM | 0 | May 12, 2011 05:34 |
OpenFOAM141dev linking error on IBM AIX 52 | matthias | OpenFOAM Installation | 24 | April 28, 2008 16:49 |