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

[swak4Foam] Installing swak4Foam to OpenFOAM in mac

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 21, 2013, 12:15
Default
  #21
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by ajl42 View Post
Hi Bernhard,
I've rerun ./Allwmake. Thank you for your help, sorry for cutting and pasting but I can't upload the file at this time not sure why.

Best wishes,

Andy.
No 'swakConfiguration'. Python etc won't work
Checking swak4Foam-version and generating file
Traceback (most recent call last):
File "./maintainanceScripts/makeSwakVersionFile.py", line 8, in <module>
output = Popen(["hg", "branch"], stdout=PIPE).communicate()[0]
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 679, in __init__
errread, errwrite)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1249, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
Bison is version 2.7
Flex is version 2.5.37 (Minor version: 37)
OpenFOAM-version: Major 2 Minor 1 Patch x
No change to swak4FoamParsers/foamVersion4swak.H
SOURCE=CommonValueExpressionDriver.C ; g++-mp-4.6 -m64 -fsignaling-nans -ftrapping-math -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2 -DNoRepository -ftemplate-depth-100 -IMake/darwinIntel64Gcc46DPOpt -I/Users/ajl/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -I/Users/ajl/OpenFOAM/OpenFOAM-2.1.x/src/sampling/lnInclude -I/Users/ajl/OpenFOAM/OpenFOAM-2.1.x/src/triSurface/lnInclude -I/Users/ajl/OpenFOAM/OpenFOAM-2.1.x/src/lagrangian/basic/lnInclude -I/Users/ajl/OpenFOAM/OpenFOAM-2.1.x/src/meshTools/lnInclude -IlnInclude -I. -I/Users/ajl/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/Users/ajl/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64Gcc46DPOpt/CommonValueExpressionDriver.o
CommonValueExpressionDriver.C:1309:7: error: template argument required for 'class lessOp'
CommonValueExpressionDriver.C: In member function 'Foam::vector Foam::CommonValueExpressionDriver::getPositionOfMi nimum(const scalarField&, const vectorField&) const':
CommonValueExpressionDriver.C:1374:37: error: missing template arguments before '(' token
CommonValueExpressionDriver.C: In member function 'Foam::word Foam::CommonValueExpressionDriver::getHex(const void*) const':
CommonValueExpressionDriver.C:1389:35: warning: use of old-style cast [-Wold-style-cast]
CommonValueExpressionDriver.C: In member function 'Foam::vector Foam::CommonValueExpressionDriver::getPositionOfMi nimum(const scalarField&, const vectorField&) const':
CommonValueExpressionDriver.C:1375:1: warning: control reaches end of non-void function [-Wreturn-type]
make: *** [Make/darwinIntel64Gcc46DPOpt/CommonValueExpressionDriver.o] Error 1
That seems to be the problem described in
https://sourceforge.net/apps/mantisb...iew.php?id=163
(caused by an update of the upstream sources). The other errors are following from that
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   January 21, 2013, 12:24
Default
  #22
New Member
 
Cristiano Sousa
Join Date: Jan 2013
Location: Portugal
Posts: 5
Rep Power: 13
Beatgodes is on a distinguished road
Error maintains. I unset the WM_NCOMPPROCS for you

Code:
No 'swakConfiguration'. Python etc won't work
Checking swak4Foam-version and generating file
abort: no repository found in '/Users/beatgodes/Downloads/swak4Foam_2.x_release_0.2.1' (.hg not found)!
Bison is version 2.7
Flex is version 2.5.37 (Minor version: 37)
OpenFOAM-version: Major 2 Minor 1 Patch 1
No change to swak4FoamParsers/foamVersion4swak.H
'/Users/beatgodes/OpenFOAM/beatgodes-2.1.1/platforms/darwinIntel64GccDPOpt/lib/libswak4FoamParsers.dylib' is up to date.
'/Users/beatgodes/OpenFOAM/beatgodes-2.1.1/platforms/darwinIntel64GccDPOpt/lib/libgroovyBC.dylib' is up to date.
Making dependency list for source file manipulatePatchField.C
SOURCE=manipulatePatchField.C ;  g++ -m64 -fsignaling-nans  -ftrapping-math -g -arch x86_64 -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2 -g -arch x86_64 -DNoRepository -ftemplate-depth-100  	 -I../swak4FoamParsers/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/meshTools/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/sampling/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/triSurface/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src//postProcessing/functionObjects/utilities/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/lagrangian/basic/lnInclude  -IlnInclude -I. -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude   -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64GccDPOpt/manipulatePatchField.o
manipulatePatchField.C: In member function ‘void Foam::manipulatePatchField::manipulatePoint(const TField&, const Foam::Field<bool>&)’:
manipulatePatchField.C:143: error: request for member ‘boundaryMesh’ in ‘dynamic_cast<const Foam::fvMesh&>(this->.obr_)’, which is of non-class type ‘const Foam::fvMesh&’
make: *** [Make/darwinIntel64GccDPOpt/manipulatePatchField.o] Error 1
'/Users/beatgodes/OpenFOAM/beatgodes-2.1.1/platforms/darwinIntel64GccDPOpt/lib/libsimpleFunctionObjects.dylib' is up to date.
'/Users/beatgodes/OpenFOAM/beatgodes-2.1.1/platforms/darwinIntel64GccDPOpt/lib/libsimpleLagrangianFunctionObjects.dylib' is up to date.
'/Users/beatgodes/OpenFOAM/beatgodes-2.1.1/platforms/darwinIntel64GccDPOpt/lib/libsimpleSwakFunctionObjects.dylib' is up to date.
'/Users/beatgodes/OpenFOAM/beatgodes-2.1.1/platforms/darwinIntel64GccDPOpt/lib/libswakTopoSources.dylib' is up to date.
'/Users/beatgodes/OpenFOAM/beatgodes-2.1.1/platforms/darwinIntel64GccDPOpt/lib/libswakSourceFields.dylib' is up to date.
'/Users/beatgodes/OpenFOAM/beatgodes-2.1.1/platforms/darwinIntel64GccDPOpt/lib/libgroovyStandardBCs.dylib' is up to date.
SWAK_PYTHON_INCLUDE not defined .... no Python-Integration
'/Users/beatgodes/OpenFOAM/beatgodes-2.1.1/platforms/darwinIntel64GccDPOpt/lib/libswakMeshQualityFunctionPlugin.dylib' is up to date.
'/Users/beatgodes/OpenFOAM/beatgodes-2.1.1/platforms/darwinIntel64GccDPOpt/lib/libswakLocalCalculationsFunctionPlugin.dylib' is up to date.
'/Users/beatgodes/OpenFOAM/beatgodes-2.1.1/platforms/darwinIntel64GccDPOpt/lib/libswakRandomFunctionPlugin.dylib' is up to date.
SOURCE=fvcInterpolationFunctionPlugin.C ;  g++ -m64 -fsignaling-nans  -ftrapping-math -g -arch x86_64 -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2 -g -arch x86_64 -DNoRepository -ftemplate-depth-100  	 -I../../swak4FoamParsers/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/meshTools/lnInclude -IlnInclude -I. -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude   -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64GccDPOpt/fvcInterpolationFunctionPlugin.o
fvcInterpolationFunctionPlugin.C: In member function ‘void Foam::fvcInterpolationFunctionPlugin<T>::setArgument(Foam::label, const Foam::string&, const Foam::CommonValueExpressionDriver&)’:
fvcInterpolationFunctionPlugin.C:124: error: request for member ‘getResult<Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh> >’ in ‘dynamic_cast<const Foam::FieldValueExpressionDriver&>(driver)’, which is of non-class type ‘const Foam::FieldValueExpressionDriver&’
make: *** [Make/darwinIntel64GccDPOpt/fvcInterpolationFunctionPlugin.o] Error 1
'/Users/beatgodes/OpenFOAM/beatgodes-2.1.1/platforms/darwinIntel64GccDPOpt/lib/libswakThermoTurbFunctionPlugin.dylib' is up to date.
'/Users/beatgodes/OpenFOAM/beatgodes-2.1.1/platforms/darwinIntel64GccDPOpt/lib/libswakTransportTurbFunctionPlugin.dylib' is up to date.
'/Users/beatgodes/OpenFOAM/beatgodes-2.1.1/platforms/darwinIntel64GccDPOpt/lib/libswakSurfacesAndSetsFunctionPlugin.dylib' is up to date.
'/Users/beatgodes/OpenFOAM/beatgodes-2.1.1/platforms/darwinIntel64GccDPOpt/lib/libswakLagrangianCloudSourcesFunctionPlugin.dylib' is up to date.
'/Users/beatgodes/OpenFOAM/beatgodes-2.1.1/platforms/darwinIntel64GccDPOpt/lib/libswakVelocityFunctionPlugin.dylib' is up to date.
make[1]: `/Users/beatgodes/OpenFOAM/beatgodes-2.1.1/platforms/darwinIntel64GccDPOpt/bin/funkyDoCalc' is up to date.
make[1]: `/Users/beatgodes/OpenFOAM/beatgodes-2.1.1/platforms/darwinIntel64GccDPOpt/bin/funkySetBoundaryField' is up to date.
make[1]: `/Users/beatgodes/OpenFOAM/beatgodes-2.1.1/platforms/darwinIntel64GccDPOpt/bin/funkySetFields' is up to date.
make[1]: `/Users/beatgodes/OpenFOAM/beatgodes-2.1.1/platforms/darwinIntel64GccDPOpt/bin/replayTransientBC' is up to date.
Beatgodes is offline   Reply With Quote

Old   January 21, 2013, 12:51
Default
  #23
New Member
 
Andy Lowe
Join Date: Dec 2010
Posts: 10
Rep Power: 16
ajl42 is on a distinguished road
Hi Bernhard,
thank you for the link and the patch fixed my glitch.

Many thanks,

Andy.
ajl42 is offline   Reply With Quote

Reply

Tags
mac, openfoam 2.0.x, swak4foam, warning message, wmake


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
OpenFOAM v3.0+ ?? SBusch OpenFOAM 22 December 26, 2016 15:24
[swak4Foam] Installing swak4Foam with openFoam v3.0+ RebelLion OpenFOAM Community Contributions 0 March 11, 2016 20:10
[OpenFOAM.org] Installing OpenFOAM 3.0.x on Mac OS X with Homebrew o.kotsur OpenFOAM Installation 56 February 19, 2016 17:44
[swak4Foam] fails in parallel with -otherTime? Phicau OpenFOAM Community Contributions 3 June 26, 2013 14:00
New OpenFOAM Forum Structure jola OpenFOAM 2 October 19, 2011 07:55


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