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

Problems with custom code on OpenFOAM v1812 in Fedora 30

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By alexeym

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 10, 2019, 15:57
Default Problems with custom code on OpenFOAM v1812 in Fedora 30
  #1
New Member
 
Joaquín Aranciaga
Join Date: Oct 2018
Posts: 21
Rep Power: 8
joaran is on a distinguished road
Hi everybody!


I recently installed the latest version of Fedora (30) (I was using Fedora 29 until a few days ago), and started having trouble with OpenFOAM (version 6). It's actually working, but anytime I try to compile a solver (even when it's one of the default solvers) an error happens, which I haven't seen until now, and my research on google has not yielded similar errors to other people. I tried recompiling OpenFOAM. The process goes ok, but again when trying to compile a solver, it crashes. I downloaded OpenFOAM-v1812 to see if that way I could circumvent the issue, but nothing's changed. I attach the message I receive when typing "wmake".
I suppose there's a compatibility problem with any of the new features of Fedora 30, but I wanted to hear from anybody who might have experienced this.


Thank you!
J.A.
Attached Files
File Type: txt comp_error.txt (23.6 KB, 7 views)
joaran is offline   Reply With Quote

Old   May 10, 2019, 18:09
Default
  #2
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,938
Rep Power: 39
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

If we omit warnings, the error is:

Code:
In file included from myXiFoam.C:101:
myBEqn.H: In function ‘int main(int, char**)’:
myBEqn.H:20:46: error: ‘small’ was not declared in this scope
   20 |        /((b*c)().weightedAverage(mesh.V()) + small)
      |                                              ^~~~~
Is small constant really declared? Since it is myXiFoam.C I am not able to look into sources to check.
joaran likes this.
alexeym is offline   Reply With Quote

Old   May 13, 2019, 09:11
Default
  #3
New Member
 
Joaquín Aranciaga
Join Date: Oct 2018
Posts: 21
Rep Power: 8
joaran is on a distinguished road
Hi Alexey,


Thanks for your answer. You're right, the error popping up with that solver was due to the fact that OpenFOAMv-1812 does not define a "small" variable like OpenFOAM-6 does. Besides that, I think I got confused with all of the warnings thrown by the compiler, which had not shown before updating to the new version of Fedora. But looking closely, there are not errors between the warnings (aside the one you pointed to) so I can compile them just fine.


Thanks for your time!
Joaquín
joaran is offline   Reply With Quote

Old   May 13, 2019, 10:29
Default
  #4
Senior Member
 
anonymous
Join Date: Jan 2016
Posts: 416
Rep Power: 14
simrego is on a distinguished road
Hi!


You have SMALL instead of small.
https://openfoam.com/documentation/g...8H_source.html
simrego is offline   Reply With Quote

Reply

Tags
compile, fedora 30, openfoam


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
Frequently Asked Questions about Installing OpenFOAM wyldckat OpenFOAM Installation 3 November 14, 2023 12:58
[OpenFOAM.org] Problems with Paraview (OpenFOAM 2.4.0 from source code in Ubuntu 14.04) Gerrit OpenFOAM Installation 4 August 15, 2015 12:05
Suggestion for a new sub-forum at OpenFOAM's Forum wyldckat Site Help, Feedback & Discussions 20 October 28, 2014 10:04
OpenFOAM 1.6 ext - Compilation errors - Fedora 17(32bit) toolpost OpenFOAM Installation 15 September 21, 2012 10:38
New OpenFOAM Forum Structure jola OpenFOAM 2 October 19, 2011 07:55


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