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

[swak4Foam] Installing swak4Foam with openFoam v3.0+

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 11, 2016, 20:10
Default Installing swak4Foam with openFoam v3.0+
  #1
New Member
 
Anon
Join Date: Mar 2016
Posts: 6
Rep Power: 3
RebelLion is on a distinguished road
Been struggling to install swak4Foam on openFoam 3.0+

First off there is no mention of openFoam Plus on swak4Foam so I assume that is the root issue. I downloaded the development version of swak4Foam from

Code:
hg clone http://hg.code.sf.net/p/openfoam-extend/swak4Foam swak4Foam
The first issue fix was, I manually edit swak4Foam/Libraries/Allwmake to fix issues with the version number extraction. i.e. I changed

Code:
of_version_major=`echo $WM_PROJECT_VERSION | sed -e 's=\([0-9]*\).*=\1='`
of_version_minor=`echo $WM_PROJECT_VERSION | sed -e 's=[0-9]*\.\([0-9]*\).*=\1='`
of_version_patch=`echo $WM_PROJECT_VERSION | sed -e 's=[0-9]*\.[0-9]*\.\([0-9a-z]*\).*=\1=' -e 's=[0-9]*\.[0-9]*=x=' -e 's=x=-1='`
into

Code:
of_version_major=3
of_version_minor=0
of_version_patch=0
Is this reasonable?

Even so I am still unable to compile swak4Foam. Attached is my wmake log file...

The first instance of "In file included from" looks like this...

Code:
FieldValueExpressionParser.tab.cc: In member function ‘parserField::FieldValueExpressionParser::token_number_type parserField::FieldValueExpressionParser::yytranslate_(int)’:
FieldValueExpressionParser.tab.cc:16753:24: warning: use of old-style cast [-Wold-style-cast]
In file included from /home/patrick/OpenFOAM/OpenFOAM-v3.0+/src/OpenFOAM/lnInclude/doubleFloat.H:30:0,
                 from /home/patrick/OpenFOAM/OpenFOAM-v3.0+/src/OpenFOAM/lnInclude/floatScalar.H:38,
                 from /home/patrick/OpenFOAM/OpenFOAM-v3.0+/src/OpenFOAM/lnInclude/scalar.H:39,
                 from /home/patrick/OpenFOAM/OpenFOAM-v3.0+/src/OpenFOAM/lnInclude/IOstream.H:49,
                 from /home/patrick/OpenFOAM/OpenFOAM-v3.0+/src/OpenFOAM/lnInclude/Ostream.H:39,
                 from /home/patrick/OpenFOAM/OpenFOAM-v3.0+/src/OpenFOAM/lnInclude/OSstream.H:39,
                 from /home/patrick/OpenFOAM/OpenFOAM-v3.0+/src/OpenFOAM/lnInclude/messageStream.H:216,
                 from /home/patrick/OpenFOAM/OpenFOAM-v3.0+/src/OpenFOAM/lnInclude/error.H:51,
                 from /home/patrick/OpenFOAM/OpenFOAM-v3.0+/src/OpenFOAM/lnInclude/typeInfo.H:56,
                 from /home/patrick/OpenFOAM/OpenFOAM-v3.0+/src/OpenFOAM/lnInclude/IOobject.H:76,
                 from /home/patrick/OpenFOAM/OpenFOAM-v3.0+/src/OpenFOAM/lnInclude/regIOobject.H:41,
                 from /home/patrick/OpenFOAM/OpenFOAM-v3.0+/src/OpenFOAM/lnInclude/GeometricField.H:42,
                 from /home/patrick/OpenFOAM/OpenFOAM-v3.0+/src/OpenFOAM/lnInclude/GeometricScalarField.H:38,
                 from /home/patrick/OpenFOAM/OpenFOAM-v3.0+/src/OpenFOAM/lnInclude/GeometricFields.H:34,
                 from /home/patrick/OpenFOAM/OpenFOAM-v3.0+/src/finiteVolume/lnInclude/volFields.H:37,
                 from ../FieldValueExpressionParser.yy:47:
/home/patrick/OpenFOAM/OpenFOAM-v3.0+/src/OpenFOAM/lnInclude/products.H: In instantiation of ‘class Foam::outerProduct<Foam::Vector<double>, Foam::Tensor<double> >’:
/home/patrick/OpenFOAM/OpenFOAM-v3.0+/src/finiteVolume/lnInclude/fvcGrad.C:142:1:   required by substitution of ‘template<class Type> Foam::tmp<Foam::GeometricField<typename Foam::outerProduct<Foam::Vector<double>, Type>::type, Foam::fvPatchField, Foam::volMesh> > Foam::fvc::grad(const Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh>&) [with Type = Foam::Tensor<double>]’
Any help is greatly appreciated. Thanks in advance!
Attached Files
File Type: gz make.log.tar.gz (2.9 KB, 7 views)

Last edited by wyldckat; March 20, 2016 at 16:58. Reason: Added [CODE][/CODE] markers
RebelLion is offline   Reply With Quote

Reply

Tags
error., installation, swak4foam

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[swak4Foam] Error: Installing swak4Foam into OpenFOAM 2.3.0 on CentOS 7 mushtime OpenFOAM Community Contributions 9 July 23, 2017 15:27
[swak4Foam] swak4Foam and OpenFoam 3.0.x fs82 OpenFOAM Community Contributions 36 August 10, 2016 03:07
Installing OpenFoam 3.0.1 on cluster hello177 OpenFOAM Installation 1 April 24, 2016 08:35
Installing OpenFOAM 2.1.1 and ParaView 3.12.0 on Ubuntu 12.10 wyldckat OpenFOAM Installation 14 February 12, 2013 05:43
[swak4Foam] Installing swak4Foam to OpenFOAM in mac Kaquesang OpenFOAM Community Contributions 22 January 21, 2013 12:51


All times are GMT -4. The time now is 09:50.