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

[OpenFOAM.org] Error while installing swak4Foam 0.3.2 on OpenFOAM2.1.1

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By S_Hartmann

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 26, 2021, 05:34
Default Error while installing swak4Foam 0.3.2 on OpenFOAM2.1.1
  #1
New Member
 
Shawn Hartmann
Join Date: Jun 2019
Posts: 2
Rep Power: 0
S_Hartmann is on a distinguished road
Dear Foamer,


I'm trying to install swak4Foam 0.3.2 on OpenFOAM version 2.1.1 (I use this old version because I have to test some code written by previous researchers). However the installation was incomplete. After I searched the previous posts to no avail, I kindly ask for your help. Following is my log file. My system is Ubuntu 18.04.


Code:
This is a clean install

/home/shanj/OpenFOAM/shanj-2.1.1/applications/utilities/swak4Foam/privateRequirements/bin existing. Prepending to PATH-variable (private version of Bison)

Reading variables from 'swakConfiguration'
swakConfiguration: line 13: [: : integer expression expected
Checking swak4Foam-version and generating file
abort: no repository found in '/home/shanj/OpenFOAM/shanj-2.1.1/applications/utilities/swak4Foam' (.hg not found)!
Swak version is 0.3.2
Bison is version 2.7.12-4996
Flex is version 2.6.4 (Minor version: 4)
OpenFOAM-version: Major 2 Minor 1 Patch 1 (-1 == x / 1)
No swak4FoamParsers/foamVersion4swak.H. Generated
wmakeLnInclude: linking include files to simpleFunctionObjects/lnInclude
wmakeLnInclude: linking include files to ./lnInclude
SOURCE=namedEnums/NumericAccumulationNamedEnum.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -IMake/linux64GccDPOpt       -I/home/shanj/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -I/home/shanj/OpenFOAM/OpenFOAM-2.1.1/src/sampling/lnInclude  -I/home/shanj/OpenFOAM/OpenFOAM-2.1.1/src/triSurface/lnInclude -I/home/shanj/OpenFOAM/OpenFOAM-2.1.1/src/surfMesh/lnInclude -I/home/shanj/OpenFOAM/OpenFOAM-2.1.1/src/lagrangian/basic/lnInclude -I/home/shanj/OpenFOAM/OpenFOAM-2.1.1/src/meshTools/lnInclude -IlnInclude -I. -I/home/shanj/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/home/shanj/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPOpt/NumericAccumulationNamedEnum.o
namedEnums/NumericAccumulationNamedEnum.C: In static member function ‘static Foam::List<Foam::Tuple2<Foam::NumericAccumulationNamedEnum::value, double> > Foam::NumericAccumulationNamedEnum::readAccumulations(const wordList&, const Foam::fileName&)’:
namedEnums/NumericAccumulationNamedEnum.C:108:23: error: ‘HUGE’ was not declared in this scope
         scalar value=-HUGE;
                       ^~~~
namedEnums/NumericAccumulationNamedEnum.C: In static member function ‘static Foam::word Foam::NumericAccumulationNamedEnum::toString(const accuSpecification&)’:
namedEnums/NumericAccumulationNamedEnum.C:160:23: error: ‘HUGE’ was not declared in this scope
     if(accu.second()>-HUGE) {
                       ^~~~
namedEnums/NumericAccumulationNamedEnum.dep:3: recipe for target 'Make/linux64GccDPOpt/NumericAccumulationNamedEnum.o' failed
make: *** [Make/linux64GccDPOpt/NumericAccumulationNamedEnum.o] Error 1
Parser library did not compile OK. No sense continuing as everything else depends on it

Requirements for Library not satisfied. I see no sense in going on
Check the README before you go on to ask. And search: Most likely your problem occured to 5 other people before and has been solved on the MessageBoard
I appreciate if anyone could help.
S_Hartmann is offline   Reply With Quote

Old   August 27, 2021, 05:11
Default solved
  #2
New Member
 
Shawn Hartmann
Join Date: Jun 2019
Posts: 2
Rep Power: 0
S_Hartmann is on a distinguished road
Finally I solved the problem following this post
Problems on installing Foam-extend 4.0/ swak4Foam on ubuntu18.0.4
by replace
Code:
HUGE
with
Code:
pTraits<scalar>::min
I repeat this manipulation every time the error about "HUGE" occurs. Finally I installed swak4Foam without error.
Tobermory and i.linch like this.
S_Hartmann 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
[swak4Foam] Installing swak4foam on OpenFOAM 19.10 (Windows) MCrossover97 OpenFOAM Community Contributions 4 June 21, 2022 06:23
[foam-extend.org] Problems on installing Foam-extend 4.0/ swak4Foam on ubuntu18.0.4 XJ_Wang OpenFOAM Installation 22 December 19, 2021 08:55
SU2-7.0.1 on ubuntu 18.04 hyunko SU2 Installation 7 March 16, 2020 05:37
[swak4Foam] Error: Installing swak4Foam into OpenFOAM 2.3.0 on CentOS 7 mushtime OpenFOAM Community Contributions 9 July 23, 2017 16:27
[swak4Foam] Installing swak4Foam on ubuntu 12.04 fluidflowsteel OpenFOAM Community Contributions 1 June 28, 2016 15:02


All times are GMT -4. The time now is 01:33.