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

[swak4Foam] Difficulties compiling with OpenFOAM-dev

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 8, 2018, 06:46
Default Difficulties compiling with OpenFOAM-dev
  #1
New Member
 
Syed Ashruf
Join Date: Nov 2012
Location: Chennai, India
Posts: 11
Rep Power: 13
ashrufsyed is on a distinguished road
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> >’:
Seems the parser library (which is required for all the swak utilities) doesn't get compiled, and therefore nothing else is compiled!. I have also attached the log file for the detailed error.

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!
Attached Files
File Type: txt log.txt (12.0 KB, 2 views)
__________________
Thanks

Ashruf

Last edited by ashrufsyed; May 8, 2018 at 07:00. Reason: Adding a link to a thread with similar problem
ashrufsyed is offline   Reply With Quote

Old   May 8, 2018, 09:28
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by ashrufsyed View Post
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> >’:
Seems the parser library (which is required for all the swak utilities) doesn't get compiled, and therefore nothing else is compiled!. I have also attached the log file for the detailed error.

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!
5.0 was released on 2017-07-27. Your dev-version is one month newer

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
gschaider is offline   Reply With Quote

Old   May 8, 2018, 10:33
Default
  #3
New Member
 
Syed Ashruf
Join Date: Nov 2012
Location: Chennai, India
Posts: 11
Rep Power: 13
ashrufsyed is on a distinguished road
@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
ashrufsyed is offline   Reply With Quote

Old   May 8, 2018, 12:07
Default
  #4
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by ashrufsyed View Post
@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!
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
gschaider 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
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


All times are GMT -4. The time now is 02:15.