|
[Sponsors] |
Problems with custom code on OpenFOAM v1812 in Fedora 30 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 10, 2019, 15:57 |
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 |
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. |
|
May 10, 2019, 18:09 |
|
#2 |
Senior Member
|
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) | ^~~~~ |
|
May 13, 2019, 09:11 |
|
#3 |
New Member
Joaquín Aranciaga
Join Date: Oct 2018
Posts: 21
Rep Power: 8 |
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 |
|
May 13, 2019, 10:29 |
|
#4 |
Senior Member
anonymous
Join Date: Jan 2016
Posts: 416
Rep Power: 14 |
||
Tags |
compile, fedora 30, openfoam |
|
|
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 |