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

[Other] WENOEXT compilation error with OF-7

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By jnanabrao

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 13, 2020, 00:53
Default WENOEXT compilation error with OF-7
  #1
Member
 
Jnana Bhaskar Rao
Join Date: Mar 2020
Posts: 46
Rep Power: 6
jnanabrao is on a distinguished road
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.
Attached Images
File Type: jpg WENOEXT_compilation_error.jpg (174.4 KB, 35 views)
jnanabrao is offline   Reply With Quote

Old   October 16, 2020, 01:41
Default
  #2
Member
 
Jnana Bhaskar Rao
Join Date: Mar 2020
Posts: 46
Rep Power: 6
jnanabrao is on a distinguished road
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.
mrishi likes this.
jnanabrao is offline   Reply With Quote

Reply

Tags
no typename error, wenobase.c, wenoext

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[foam-extend.org] foam-extend-3.2 compilation on windows kirmaks OpenFOAM Installation 7 December 3, 2019 20:20
Compilation error for OpenFOAM-ext on Ubantu 10.04 32 bit Sargam05 OpenFOAM Installation 13 March 22, 2014 05:21
[swak4Foam] swak4Foam compilation for OF-2.0.0 camoesas OpenFOAM Community Contributions 19 December 10, 2012 13:24
Compilation Error (V 1.7.1; Icc 12.1.0, OpenMPI 1.4.3) floydfan OpenFOAM Installation 7 December 20, 2011 05:56
Compilation Error.... Arnab Siemens 4 September 12, 2004 15:54


All times are GMT -4. The time now is 03:21.