|
[Sponsors] |
[swak4Foam] Difficulties compiling with OpenFOAM-dev |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 8, 2018, 06:46 |
Difficulties compiling with OpenFOAM-dev
|
#1 |
New Member
Syed Ashruf
Join Date: Nov 2012
Location: Chennai, India
Posts: 11
Rep Power: 13 |
I tried compiling swak4Foam develop branch with a OF-dev commit. But got encountered with the following error related to swakDataEntry:
Code:
In file included from makeSwakDataEntry.C:38:0: swakDataEntry.H: In instantiation of ‘Foam::tmp<Foam::Function1<Type> > Foam::Function1Types::swakDataEntry<Type>::clone() const [with Type = Foam::SymmTensor<double>]’: makeSwakDataEntry.C:54:1: required from here swakDataEntry.H:128:72: error: cannot allocate an object of abstract type ‘Foam::Function1Types::swakDataEntry<Foam::SymmTensor<double> >’ return tmp<DataEntry<Type> >(new swakDataEntry<Type>(*this)); ^ swakDataEntry.H:80:7: note: because the following virtual functions are pure within ‘Foam::Function1Types::swakDataEntry<Foam::SymmTensor<double> >’: FYI, I am using a successfully compiled OpenFOAM-dev (940e28 commit released on 2017-08-24) which was after the OF-5 release [EDIT] I think someone else already posted it on the forum before with the same issue, but the simple answer was OF-dev is not supported as of now!
__________________
Thanks Ashruf Last edited by ashrufsyed; May 8, 2018 at 07:00. Reason: Adding a link to a thread with similar problem |
|
May 8, 2018, 09:28 |
|
#2 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Which branch you using: only the develop-branch supports 5.0 (not the default-branch. I haven't done real release for some time) Currently the develop-branch of swak4Foam supports the latest releases of the three major forks (OF 5.0, v1712+, foam-extend 4.0). I don't have the time to track 3 development versions as well (for my work I stick to releases) It may be possible that your problem can be solved by tricking the compilation into thinking that this is v1712+. Because that is based on OF-dev and might already have the changes from your OF-dev-version
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
May 8, 2018, 10:33 |
|
#3 |
New Member
Syed Ashruf
Join Date: Nov 2012
Location: Chennai, India
Posts: 11
Rep Power: 13 |
@gschaider Thanks for the quick reply! I’m using the develop branch of the swak4Foam from your GitHub repo.
Can you tell me where should I make changes to let wmake trick into thinking that it is v1712+ ? I can give it a try!
__________________
Thanks Ashruf |
|
May 8, 2018, 12:07 |
|
#4 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
The script maintainceScripts/makeFoamVersionHeader.py detects the version of OpenFOAM. For + it does that by looking into wmake/rules/General/general. Not sure if editing that wouldn't break other things. Modifying the script to write a PLUS-version would be another option. Or bypassing the script in the installation process and hand-editing foamVersion4swak.H. But you're on your own here: if you're using a dev-version I assume that you can do that kind of stuff yourself.
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Various problems compiling interFoam with CFDSupport's v1706 port of OpenFOAM | ndtrong | OpenFOAM Programming & Development | 9 | April 10, 2020 11:56 |
OpenFOAM course for beginners | Jibran | OpenFOAM Announcements from Other Sources | 2 | November 4, 2019 08:51 |
OpenFOAM Training Jan-Jul 2017, Virtual, London, Houston, Berlin | CFDFoundation | OpenFOAM Announcements from Other Sources | 0 | January 4, 2017 06:15 |
Error compiling OpenFOAM 1.7.x | uli | OpenFOAM Installation | 6 | June 11, 2012 09:42 |
Modified OpenFOAM Forum Structure and New Mailing-List | pete | Site News & Announcements | 0 | June 29, 2009 05:56 |