|
[Sponsors] |
July 13, 2020, 01:53 |
WENOEXT compilation error with OF-7
|
#1 |
Member
Jnana Bhaskar Rao
Join Date: Mar 2020
Posts: 46
Rep Power: 6 |
Hi,
I'm trying to install the WENO library developed by Jan Gaertner and Tobias Martin with openfoam-7. I've followed the following two steps in the readme.md file:- 1. Clone the directory with `git clone https://github.com/WENO-OF/WENOEXT.git` 2. Execute `Allwmake` to build the library My working directory is $HOME/OpenFOAM-7 where OF-7 is built from source. I'm getting the compilation error as shown in the attached image. Any suggestions on how to fix it will be greatly appreciated. |
|
October 16, 2020, 02:41 |
|
#2 |
Member
Jnana Bhaskar Rao
Join Date: Mar 2020
Posts: 46
Rep Power: 6 |
I'm posting the reply to address how i managed to get the compilation successfully. The issue seems to be connected to the 64-bit int size build settings. The error can be overcome one of two ways:
1. change WM_LABEL_SIZE in .bashrc from 64 to 32. This however doesn't finish the installation as other files fail to compile. 2. Keeping WM_LABEL_SIZE=64, in the WENOBASE.C file in libWENOEXT/WENOEXT on line 1086 a labelList is initialized with literals as: labelList dummyList(3,0); The literals need to be explicitly interpreted as long int with the following change: labelList dummyList(3l,0l);(where it is '3'and '0' followed by the small letter 'l'. The compilation executes without problems after the above change. |
|
Tags |
no typename error, wenobase.c, wenoext |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[foam-extend.org] foam-extend-3.2 compilation on windows | kirmaks | OpenFOAM Installation | 7 | December 3, 2019 21:20 |
Compilation error for OpenFOAM-ext on Ubantu 10.04 32 bit | Sargam05 | OpenFOAM Installation | 13 | March 22, 2014 06:21 |
[swak4Foam] swak4Foam compilation for OF-2.0.0 | camoesas | OpenFOAM Community Contributions | 19 | December 10, 2012 14:24 |
Compilation Error (V 1.7.1; Icc 12.1.0, OpenMPI 1.4.3) | floydfan | OpenFOAM Installation | 7 | December 20, 2011 06:56 |
Compilation Error.... | Arnab | Siemens | 4 | September 12, 2004 16:54 |