CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation on Windows, Mac and other Unsupported Platforms (http://www.cfd-online.com/Forums/openfoam-installation-windows-mac/)
-   -   Installing swak4Foam to OpenFOAM in mac (http://www.cfd-online.com/Forums/openfoam-installation-windows-mac/105999-installing-swak4foam-openfoam-mac.html)

Kaquesang August 15, 2012 01:18

Installing swak4Foam to OpenFOAM in mac
 
Hi, I'm trying to use OpenFOAM in my MacBookPro (mountain lion).

I've installed OpenFOAM-2.1.x successfully.
Although Tutorial cases can work properly, after I installed swak4Foam, the Example cases of swak4Foam won't work!

I'll explain in more detail.
I made "Libraries" folder in "run" directory and typed

$ svn checkout https://openfoam-extend.svn.sourcefo...ies/swak4Foam/

and do
$ wmake all (I attached log file)
in the swak4Foam directory.

There seems to be no error in the log. So in Examples/groovyBC/fillingTheDam/ directory, I made meshes, then the error messgage came out.


$ blockMesh
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.0.x |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 2.0.x-931a91d59a3a
Exec : blockMesh
Date : Aug 15 2012
Time : 13:54:22
Host : Kaquesangs-Mac.local
PID : 9923
Case : /Volumes/Mac-OF-2.0.x/hoge/run/Examples/groovyBC/fillingTheDam
nProcs : 1
sigFpe : Floating point exception trapping - not supported on this platform
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

--> FOAM Warning :
From function dlLibraryTable::open(const fileName&)
in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 99
could not load "libgroovyBC.so"
--> FOAM Warning :
From function dlLibraryTable::open(const fileName&)
in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 99
could not load "libswakFunctionObjects.so"

Creating block mesh from
"/Volumes/Mac-OF-2.0.x/hoge/run/Examples/groovyBC/fillingTheDam/constant/polyMesh/blockMeshDict"
Creating curved edges
Creating topology blocks
Creating topology patches

Reading patches section

Creating block mesh topology

Reading physicalType from existing boundary file

Default patch type set to empty
--> FOAM Warning :
From function polyMesh::polyMesh(... construct from shapes...)
in file meshes/polyMesh/polyMeshFromShapeMesh.C at line 881
Found 10 undefined faces in mesh; adding to default patch.

Check topology

Basic statistics
Number of internal faces : 4
Number of boundary faces : 22
Number of defined boundary faces : 22
Number of undefined boundary faces : 0
Checking patch -> block consistency

Creating block offsets
Creating merge list .

Creating polyMesh from blockMesh
Creating patches
Creating cells
Creating points with scale 0.146

Writing polyMesh
----------------
Mesh Information
----------------
boundingBox: (0 0 0) (0.584 0.584 0.0146)
nPoints: 4746
nCells: 2268
nFaces: 9176
nInternalFaces: 4432
----------------
Patches
----------------
patch 0 (start: 4432 size: 50) name: leftWall
patch 1 (start: 4482 size: 50) name: rightWall
patch 2 (start: 4532 size: 62) name: lowerWall
patch 3 (start: 4594 size: 46) name: atmosphere
patch 4 (start: 4640 size: 4536) name: defaultFaces

End

$ interFoam
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.0.x |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 2.0.x-931a91d59a3a
Exec : interFoam
Date : Aug 15 2012
Time : 13:55:18
Host : Kaquesangs-Mac.local
PID : 9932
Case : /Volumes/Mac-OF-2.0.x/hoge/run/Examples/groovyBC/fillingTheDam
nProcs : 1
sigFpe : Floating point exception trapping - not supported on this platform
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

--> FOAM Warning :
From function dlLibraryTable::open(const fileName&)
in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 99
could not load "libgroovyBC.so"
--> FOAM Warning :
From function dlLibraryTable::open(const fileName&)
in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 99
could not load "libswakFunctionObjects.so"
Create mesh for time = 0


PIMPLE: Operating solver in PISO mode

Reading field p_rgh

Reading field alpha1



--> FOAM FATAL IO ERROR:
Unknown patchField type groovyBC for patch type wall


Valid patchField types are :

68
(
advective
alphaFixedPressure
atmBoundaryLayerInletEpsilon
buoyantPressure
calculated
codedFixedValue
constantAlphaContactAngle
cyclic
cyclicSlip
directMapped
directMappedField
directMappedFixedInternalValue
directMappedFixedPushedInternalValue
directionMixed
dynamicAlphaContactAngle
empty
epsilonWallFunction
fan
fixedFluxPressure
fixedGradient
fixedInternalValue
fixedPressureCompressibleDensity
fixedValue
freestream
freestreamPressure
inletOutlet
inletOutletTotalTemperature
kappatJayatillekeWallFunction
kqRWallFunction
mixed
nonuniformTransformCyclic
nuSgsUSpaldingWallFunction
nutLowReWallFunction
nutTabulatedWallFunction
nutURoughWallFunction
nutUSpaldingWallFunction
nutUWallFunction
nutkRoughWallFunction
nutkWallFunction
omegaWallFunction
oscillatingFixedValue
outletInlet
outletMappedUniformInlet
partialSlip
processor
processorCyclic
rotatingTotalPressure
selfContainedDirectMapped
sliced
slip
symmetryPlane
syringePressure
timeVaryingAlphaContactAngle
timeVaryingMappedFixedValue
timeVaryingTotalPressure
timeVaryingUniformFixedValue
totalPressure
totalTemperature
turbulentHeatFluxTemperature
turbulentInlet
turbulentIntensityKineticEnergyInlet
turbulentMixingLengthDissipationRateInlet
turbulentMixingLengthFrequencyInlet
uniformDensityHydrostaticPressure
uniformFixedValue
waveTransmissive
wedge
zeroGradient
)


file: /Volumes/Mac-OF-2.0.x/hoge/run/Examples/groovyBC/fillingTheDam/0/alpha1::boundaryField::rightWall from line 30 to line 34.

From function fvPatchField<Type>::New(const fvPatch&, const DimensionedField<Type, volMesh>&, const dictionary&)
in file /Users/hoge/OpenFOAM/OpenFOAM-2.0.x/src/finiteVolume/lnInclude/fvPatchFieldNew.C at line 135.

FOAM exiting


As I looked into /Volumes/Mac-OF-2.0.x/hoge/platforms/darwinIntel64Gcc45DPOpt/lib,
there are only

libpythonIntegration.dylib
libsimpleFunctionObjects.dylib
libsimpleSwakFunctionObjects.dylib
libswak4FoamParsers.dylib
libswakSourceFields.dylib
libswakTopoSources.dylib

files and couldn't find

libgroovyBC.so (or libgroovyBC.dylib?)
libswakFunctionObjects.so (or libswakFunctionObjects.dylib?)

I guess "wmake all" didn't succeed. But I don't know what was wrong and what should I do.:confused:
Please give me some advice!

regard.

p.s.
As my mother tongue isn't English, please forgive grammer mistakes, if any.

Kaquesang August 15, 2012 01:24

log file
 
1 Attachment(s)
sorry, I forgot to attach log file.

wyldckat August 15, 2012 07:19

Greetings Kaquesang and welcome to the forum!

If you edit the file "system/controlDict" of the tutorial you're testing and changes the references from "libgroovyBC.so" to "libgroovyBC.dylib" and so on, it still won't work?

Best regards,
Bruno

Kaquesang August 15, 2012 07:44

Thank you for the reply, Bruno!

No, it still won't work...

In /Volumes/Mac-OF-2.0.x/hoge/platforms/darwinIntel64Gcc45DPOpt/lib,
there are only

libpythonIntegration.dylib
libsimpleFunctionObjects.dylib
libsimpleSwakFunctionObjects.dylib
libswak4FoamParsers.dylib
libswakSourceFields.dylib
libswakTopoSources.dylib

files and couldn't find

libgroovyBC.so (or libgroovyBC.dylib?)
libswakFunctionObjects.so (or libswakFunctionObjects.dylib?)

wyldckat August 15, 2012 08:08

OK, the log is incomplete, because there aren't any error messages. Please run it like this:
Code:

./Allwmake > make.log 2>&1

Kaquesang August 15, 2012 08:27

1 Attachment(s)
Oh, I didn't notice of that.

OK, I did
Code:

./Allwmake > make.log 2>&1
I attached the log file.
There seems to be an error as below
Code:

groovyBCJumpFvPatchField.H:46:35: fatal error: fixedJumpFvPatchField.H: No such file or directory
compilation terminated.


wyldckat August 15, 2012 08:45

You can check if that file exists by running:
Code:

ls -l $FOAM_SRC/finiteVolume/lnInclude/fixedJumpFvPatchField.H
If it's not found, then there is something strange happening with your installation of OpenFOAM 2.0.x.

By the way, in the first post you mention OpenFOAM 2.1.x... does this mean you have both 2.0.x and 2.1.x installed in your machine?
If you do have both, then how are you making sure that only the correct one is loaded?

Kaquesang August 15, 2012 09:04

Code:

ls -l $FOAM_SRC/finiteVolume/lnInclude/fixedJumpFvPatchField.H
ls: /Users/yuuki_sumi_h15/OpenFOAM/OpenFOAM-2.0.x/src/finiteVolume/lnInclude/fixedJumpFvPatchField.H: No such file or directory

Hmm...it seems that I have to reinstall OpenFOAM.

Quote:

Originally Posted by wyldckat (Post 377212)
By the way, in the first post you mention OpenFOAM 2.1.x... does this mean you have both 2.0.x and 2.1.x installed in your machine?

Sorry, "2.1.x" was wrong, my OpenFOAM version is "2.0.x" and the only one.

wyldckat August 15, 2012 09:14

Quote:

Originally Posted by Kaquesang (Post 377216)
Code:

ls -l $FOAM_SRC/finiteVolume/lnInclude/fixedJumpFvPatchField.H
ls: /Users/yuuki_sumi_h15/OpenFOAM/OpenFOAM-2.0.x/src/finiteVolume/lnInclude/fixedJumpFvPatchField.H: No such file or directory


If you compare with the outputs from your first post, this path shows up: "/Volumes/Mac-OF-2.0.x/", which is very different from "/Users/yuuki_sumi_h15/OpenFOAM/".

I don't know which instructions you've followed, so I don't know how you've defined the environment variable "FOAM_INST_DIR" or if you've created a symbolic/hard link between the two paths.

Check these instructions for ideas: http://openfoamwiki.net/index.php/Ho...enFOAM_v21_Mac

Kaquesang August 15, 2012 09:30

I'm sorry to confuse you.
Actually, /Users/yuuki_sumi_h15/OpenFOAM/ is a symbolic link to /Volumes/Mac-OF-2.0.x/

Anyway, now I know that something was wrong with installation of OpenFOAM itself.
I'll try to reinstall it, referring http://openfoamwiki.net/index.php/Ho...enFOAM_v21_Mac

If I make some progress, I'll report here.

Thank you for your help!

JL_CFD October 7, 2012 08:34

Quote:

Originally Posted by Kaquesang (Post 377142)
Hi, I'm trying to use OpenFOAM in my MacBookPro (mountain lion).

I've installed OpenFOAM-2.1.x successfully.
Although Tutorial cases can work properly, after I installed swak4Foam, the Example cases of swak4Foam won't work!

I'll explain in more detail.
I made "Libraries" folder in "run" directory and typed

$ svn checkout https://openfoam-extend.svn.sourcefo...ies/swak4Foam/

and do
$ wmake all (I attached log file)
in the swak4Foam directory.

There seems to be no error in the log. So in Examples/groovyBC/fillingTheDam/ directory, I made meshes, then the error messgage came out.


$ blockMesh
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.0.x |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 2.0.x-931a91d59a3a
Exec : blockMesh
Date : Aug 15 2012
Time : 13:54:22
Host : Kaquesangs-Mac.local
PID : 9923
Case : /Volumes/Mac-OF-2.0.x/hoge/run/Examples/groovyBC/fillingTheDam
nProcs : 1
sigFpe : Floating point exception trapping - not supported on this platform
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

--> FOAM Warning :
From function dlLibraryTable::open(const fileName&)
in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 99
could not load "libgroovyBC.so"
--> FOAM Warning :
From function dlLibraryTable::open(const fileName&)
in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 99
could not load "libswakFunctionObjects.so"

Creating block mesh from
"/Volumes/Mac-OF-2.0.x/hoge/run/Examples/groovyBC/fillingTheDam/constant/polyMesh/blockMeshDict"
Creating curved edges
Creating topology blocks
Creating topology patches

Reading patches section

Creating block mesh topology

Reading physicalType from existing boundary file

Default patch type set to empty
--> FOAM Warning :
From function polyMesh::polyMesh(... construct from shapes...)
in file meshes/polyMesh/polyMeshFromShapeMesh.C at line 881
Found 10 undefined faces in mesh; adding to default patch.

Check topology

Basic statistics
Number of internal faces : 4
Number of boundary faces : 22
Number of defined boundary faces : 22
Number of undefined boundary faces : 0
Checking patch -> block consistency

Creating block offsets
Creating merge list .

Creating polyMesh from blockMesh
Creating patches
Creating cells
Creating points with scale 0.146

Writing polyMesh
----------------
Mesh Information
----------------
boundingBox: (0 0 0) (0.584 0.584 0.0146)
nPoints: 4746
nCells: 2268
nFaces: 9176
nInternalFaces: 4432
----------------
Patches
----------------
patch 0 (start: 4432 size: 50) name: leftWall
patch 1 (start: 4482 size: 50) name: rightWall
patch 2 (start: 4532 size: 62) name: lowerWall
patch 3 (start: 4594 size: 46) name: atmosphere
patch 4 (start: 4640 size: 4536) name: defaultFaces

End

$ interFoam
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.0.x |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 2.0.x-931a91d59a3a
Exec : interFoam
Date : Aug 15 2012
Time : 13:55:18
Host : Kaquesangs-Mac.local
PID : 9932
Case : /Volumes/Mac-OF-2.0.x/hoge/run/Examples/groovyBC/fillingTheDam
nProcs : 1
sigFpe : Floating point exception trapping - not supported on this platform
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

--> FOAM Warning :
From function dlLibraryTable::open(const fileName&)
in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 99
could not load "libgroovyBC.so"
--> FOAM Warning :
From function dlLibraryTable::open(const fileName&)
in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 99
could not load "libswakFunctionObjects.so"
Create mesh for time = 0


PIMPLE: Operating solver in PISO mode

Reading field p_rgh

Reading field alpha1



--> FOAM FATAL IO ERROR:
Unknown patchField type groovyBC for patch type wall


Valid patchField types are :

68
(
advective
alphaFixedPressure
atmBoundaryLayerInletEpsilon
buoyantPressure
calculated
codedFixedValue
constantAlphaContactAngle
cyclic
cyclicSlip
directMapped
directMappedField
directMappedFixedInternalValue
directMappedFixedPushedInternalValue
directionMixed
dynamicAlphaContactAngle
empty
epsilonWallFunction
fan
fixedFluxPressure
fixedGradient
fixedInternalValue
fixedPressureCompressibleDensity
fixedValue
freestream
freestreamPressure
inletOutlet
inletOutletTotalTemperature
kappatJayatillekeWallFunction
kqRWallFunction
mixed
nonuniformTransformCyclic
nuSgsUSpaldingWallFunction
nutLowReWallFunction
nutTabulatedWallFunction
nutURoughWallFunction
nutUSpaldingWallFunction
nutUWallFunction
nutkRoughWallFunction
nutkWallFunction
omegaWallFunction
oscillatingFixedValue
outletInlet
outletMappedUniformInlet
partialSlip
processor
processorCyclic
rotatingTotalPressure
selfContainedDirectMapped
sliced
slip
symmetryPlane
syringePressure
timeVaryingAlphaContactAngle
timeVaryingMappedFixedValue
timeVaryingTotalPressure
timeVaryingUniformFixedValue
totalPressure
totalTemperature
turbulentHeatFluxTemperature
turbulentInlet
turbulentIntensityKineticEnergyInlet
turbulentMixingLengthDissipationRateInlet
turbulentMixingLengthFrequencyInlet
uniformDensityHydrostaticPressure
uniformFixedValue
waveTransmissive
wedge
zeroGradient
)


file: /Volumes/Mac-OF-2.0.x/hoge/run/Examples/groovyBC/fillingTheDam/0/alpha1::boundaryField::rightWall from line 30 to line 34.

From function fvPatchField<Type>::New(const fvPatch&, const DimensionedField<Type, volMesh>&, const dictionary&)
in file /Users/hoge/OpenFOAM/OpenFOAM-2.0.x/src/finiteVolume/lnInclude/fvPatchFieldNew.C at line 135.

FOAM exiting


As I looked into /Volumes/Mac-OF-2.0.x/hoge/platforms/darwinIntel64Gcc45DPOpt/lib,
there are only

libpythonIntegration.dylib
libsimpleFunctionObjects.dylib
libsimpleSwakFunctionObjects.dylib
libswak4FoamParsers.dylib
libswakSourceFields.dylib
libswakTopoSources.dylib

files and couldn't find

libgroovyBC.so (or libgroovyBC.dylib?)
libswakFunctionObjects.so (or libswakFunctionObjects.dylib?)

I guess "wmake all" didn't succeed. But I don't know what was wrong and what should I do.:confused:
Please give me some advice!

regard.

p.s.
As my mother tongue isn't English, please forgive grammer mistakes, if any.

I am trying to install openfoam 2.0.x on mountain lion and after installation when I run ./Allwmake, I get the following error message:

./Allwmake: line 4: wmakeCheckPwd: command not found
Error: Current directory is not $WM_PROJECT_DIR
The environment variables are inconsistent with the installation.
Check the OpenFOAM entries in your dot-files and source them.

Could you please let me know how to solve this problem.

Many thanks.

Beatgodes January 19, 2013 16:33

1 Attachment(s)
Hi

I'm having some errors when compiling swak4foam for OF2.1.1.

I already tested OF and it works perfectly.

My machine is a Mac OSX 10.7.5. My make log is in the annex

Thank you :)

gschaider January 20, 2013 14:32

Quote:

Originally Posted by Beatgodes (Post 402889)
Hi

I'm having some errors when compiling swak4foam for OF2.1.1.

I already tested OF and it works perfectly.

My machine is a Mac OSX 10.7.5. My make log is in the annex

Thank you :)

You are using the Apple-gcc and not the one from MacPorts, right?

The error
Code:

lnInclude/ExpressionResultI.H:234: error: no matching function for call to dynamicCast(Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>&)
reminds me of a problem that the gcc 4.2 has with dynamicCast. Try replacing that with the regular dynamic_cast (other option would be to compile OF with a MacPorts-compiler from a higher version and after that swak4Foam).

If changing dynamicCast to dynamic_cast fixes the problem please report it and I will put it into the development version

ajl42 January 20, 2013 14:43

Hi,

I'm using mac os x ML and gcc-mp-4.6 and get the same errors in the make log file as post 12. Both our log files have lots of cannot find file errors early in the log.

Thanks for all the great help,

Andy.

Beatgodes January 20, 2013 15:55

1 Attachment(s)
@gschaider

I am using llvm-gcc42.

Using

Code:

perl -e "s/dynamicCast/dynamic_cast/g;" -pi $(find . -type f)
I substituted all occurrences of dynamicCast.

Problem is still not solved though: other errors show up

gschaider January 20, 2013 17:39

Quote:

Originally Posted by ajl42 (Post 402969)
I'm using mac os x ML and gcc-mp-4.6 and get the same errors in the make log file as post 12. Both our log files have lots of cannot find file errors early in the log.

The "can not find" errors are no problem. They are from the makeDeps-utilitiy. The real problem is what the compiler says.

Anyway: when you encounter a problem rerun ./Allwmake and report THAT log. That way irrelevant messages from makeDeps are not there anymore and I don't have to wade through the successful compiler calls to get through the problem

Quote:

Originally Posted by Beatgodes (Post 402973)
@gschaider

I am using llvm-gcc42.

Using

Code:

perl -e "s/dynamicCast/dynamic_cast/g;" -pi $(find . -type f)
I substituted all occurrences of dynamicCast.

Problem is still not solved though: other errors show up

Another thing: you wouldn't believe how many people call the files make.log and how many clutter my Download-folder. So at least add something to the name that identifies it. Like beatgodes-make.log.

That or try to identify the compiler call that is problematic and post it here (that makes it easier to help)

Beatgodes January 20, 2013 17:54

in case you are still looking for my make.log: i recompiled it and the produced make log is small

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
make: *** No rule to make target `lnInclude/SubsetValueExpressionParser.tab.hh', needed by `plugins/SampledSurfaceValuePluginFunction.dep'.  Stop.
make: *** No rule to make target `../swak4FoamParsers/lnInclude/PatchValueExpressionParser.tab.hh', needed by `groovyBCPointPatchFields.dep'.  Stop.
make: *** No rule to make target `../swak4FoamParsers/lnInclude/FieldValueExpressionParser.tab.hh', needed by `solveTransportPDE.dep'.  Stop.
'/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.
make: *** No rule to make target `../swak4FoamParsers/lnInclude/PatchValueExpressionParser.tab.hh', needed by `patch/patchExpressionFunctionObject.dep'.  Stop.
make: *** No rule to make target `../swak4FoamParsers/lnInclude/FieldValueExpressionParser.tab.hh', needed by `expressionToPoint.dep'.  Stop.
make: *** No rule to make target `../swak4FoamParsers/lnInclude/FieldValueExpressionParser.tab.hh', needed by `swakImplicitSources.dep'.  Stop.
make: *** No rule to make target `../swak4FoamParsers/lnInclude/PatchValueExpressionParser.tab.hh', needed by `groovyFlowRateInletVelocityFvPatchVectorField.dep'.  Stop.
SWAK_PYTHON_INCLUDE not defined .... no Python-Integration
make: *** No rule to make target `../../swak4FoamParsers/lnInclude/FieldValueExpressionParser.tab.hh', needed by `mqCellAspectRatioPluginFunction.dep'.  Stop.
make: *** No rule to make target `../../swak4FoamParsers/lnInclude/FieldValueExpressionParser.tab.hh', needed by `lcLocalAveragePluginFunction.dep'.  Stop.
make: *** No rule to make target `../../swak4FoamParsers/lnInclude/FieldValueExpressionParser.tab.hh', needed by `randomExponentialPluginFunction.dep'.  Stop.
make: *** No rule to make target `../../swak4FoamParsers/lnInclude/FieldValueExpressionParser.tab.hh', needed by `fvcSurfCoeffLaplacianFunctionPlugin.dep'.  Stop.
make: *** No rule to make target `../../swak4FoamParsers/lnInclude/FieldValueExpressionParser.tab.hh', needed by `swakCompressibleTurbulencePluginFunction.dep'.  Stop.
make: *** No rule to make target `../../swak4FoamParsers/lnInclude/FieldValueExpressionParser.tab.hh', needed by `swakIncompressibleTurbulencePluginFunction.dep'.  Stop.
make: *** No rule to make target `../../swak4FoamParsers/lnInclude/FieldValueExpressionParser.tab.hh', needed by `setValueMaximumPluginFunction.dep'.  Stop.
make: *** No rule to make target `../../swak4FoamParsers/lnInclude/FieldValueExpressionParser.tab.hh', needed by `LagrangianCloudSourcePluginFunction.dep'.  Stop.
make: *** No rule to make target `../../swak4FoamParsers/lnInclude/FieldValueExpressionParser.tab.hh', needed by `courantCompressiblePluginFunction.dep'.  Stop.
make[1]: *** No rule to make target `../../Libraries/swak4FoamParsers/lnInclude/FieldValueExpressionParser.tab.hh', needed by `funkySetFields.dep'.
make[1]: *** No rule to make target `../../Libraries/swak4FoamParsers/lnInclude/FieldValueExpressionParser_stack.hh', needed by `funkySetFields.dep'.
make[1]: *** No rule to make target `../../Libraries/swak4FoamParsers/lnInclude/FieldValueExpressionParser_location.hh', needed by `funkySetFields.dep'.
make[1]: *** No rule to make target `../../Libraries/swak4FoamParsers/lnInclude/FieldValueExpressionParser_position.hh', needed by `funkySetFields.dep'.
make[1]: *** No rule to make target `../../Libraries/swak4FoamParsers/lnInclude/PatchValueExpressionParser.tab.hh', needed by `funkySetBoundaryField.dep'.
make[1]: *** No rule to make target `../../Libraries/swak4FoamParsers/lnInclude/PatchValueExpressionParser_stack.hh', needed by `funkySetBoundaryField.dep'.
make[1]: *** No rule to make target `../../Libraries/swak4FoamParsers/lnInclude/PatchValueExpressionParser_location.hh', needed by `funkySetBoundaryField.dep'.
make[1]: *** No rule to make target `../../Libraries/swak4FoamParsers/lnInclude/PatchValueExpressionParser_position.hh', needed by `funkySetBoundaryField.dep'.
make[1]: Failed to remake makefile `funkySetBoundaryField.dep'.
make[1]: Target `/Users/beatgodes/OpenFOAM/beatgodes-2.1.1/platforms/darwinIntel64GccDPOpt/bin/funkySetBoundaryField' not remade because of errors.
make: *** [funkySetBoundaryField] Error 2
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 -IMake/darwinIntel64GccDPOpt -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/meshTools/lnInclude -I../../Libraries/swak4FoamParsers/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 -lpthread -L/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/platforms/darwinIntel64GccDPOpt/lib/openmpi-system -lPstream Make/darwinIntel64GccDPOpt/funkyDoCalc.o -L/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/platforms/darwinIntel64GccDPOpt/lib \
            -lfiniteVolume        -lmeshTools        -L/Users/beatgodes/OpenFOAM/beatgodes-2.1.1/platforms/darwinIntel64GccDPOpt/lib        -lswak4FoamParsers -lOpenFOAM -ldl  -g -arch x86_64 -lpthread -lm -o /Users/beatgodes/OpenFOAM/beatgodes-2.1.1/platforms/darwinIntel64GccDPOpt/bin/funkyDoCalc
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/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/cfdTools/lnInclude -I/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/src/cfdTools/general/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 -lpthread -L/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/platforms/darwinIntel64GccDPOpt/lib/openmpi-system -lPstream Make/darwinIntel64GccDPOpt/replayTransientBC.o -L/Users/beatgodes/OpenFOAM/OpenFOAM-2.1.1/platforms/darwinIntel64GccDPOpt/lib \
            -lfiniteVolume -lmeshTools -lOpenFOAM -ldl  -g -arch x86_64 -lpthread -lm -o /Users/beatgodes/OpenFOAM/beatgodes-2.1.1/platforms/darwinIntel64GccDPOpt/bin/replayTransientBC
make[1]: Failed to remake makefile `funkySetFields.dep'.
make[1]: Target `/Users/beatgodes/OpenFOAM/beatgodes-2.1.1/platforms/darwinIntel64GccDPOpt/bin/funkySetFields' not remade because of errors.
make: *** [funkySetFields] Error 2
ld: library not found for -lswak4FoamParsers
collect2: ld returned 1 exit status
make[1]: *** [/Users/beatgodes/OpenFOAM/beatgodes-2.1.1/platforms/darwinIntel64GccDPOpt/bin/funkyDoCalc] Error 1
make: *** [funkyDoCalc] Error 2
collect2: ld terminated with signal 11 [Segmentation fault: 11]
make[1]: *** [/Users/beatgodes/OpenFOAM/beatgodes-2.1.1/platforms/darwinIntel64GccDPOpt/bin/replayTransientBC] Error 1
make: *** [replayTransientBC] Error 2
make: Target `application' not remade because of errors.


If you want to use swakCoded-function object or compile software based on swak set the environment variable SWAK4FOAM_SRC to /Users/beatgodes/Downloads/swak4Foam_2.x_release_0.2.1/Libraries (most people will be fine without setting that variable)


Beatgodes January 20, 2013 18:33

did a clean build because the seg fault didn't smell right

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.
SOURCE=clearExpressionFieldFunctionObject.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/clearExpressionFieldFunctionObject.o
SOURCE=clearExpressionField.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/clearExpressionField.o
SOURCE=createSampledSurface.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/createSampledSurface.o
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
SOURCE=createSampledSurfaceFunctionObject.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/createSampledSurfaceFunctionObject.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&’
SOURCE=createSampledSet.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/createSampledSet.o
SOURCE=createSampledSetFunctionObject.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/createSampledSetFunctionObject.o
make: *** [Make/darwinIntel64GccDPOpt/manipulatePatchField.o] Error 1
make: *** Waiting for unfinished jobs....
'/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=fvcGradFunctionPlugin.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/fvcGradFunctionPlugin.o
SOURCE=fvcDivFunctionPlugin.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/fvcDivFunctionPlugin.o
SOURCE=fvcSnGradFunctionPlugin.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/fvcSnGradFunctionPlugin.o
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
fvcGradFunctionPlugin.C: In member function ‘void Foam::fvcGradFunctionPlugin<T>::setArgument(Foam::label, const Foam::string&, const Foam::CommonValueExpressionDriver&)’:
fvcGradFunctionPlugin.C:114: 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&’
fvcSnGradFunctionPlugin.C: In member function ‘void Foam::fvcSnGradFunctionPlugin<T>::setArgument(Foam::label, const Foam::string&, const Foam::CommonValueExpressionDriver&)’:
fvcSnGradFunctionPlugin.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&’
fvcDivFunctionPlugin.C: In member function ‘void Foam::fvcDivFunctionPlugin<T>::setArgument(Foam::label, const Foam::string&, const Foam::CommonValueExpressionDriver&)’:
fvcDivFunctionPlugin.C:121: 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&’
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/fvcGradFunctionPlugin.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [Make/darwinIntel64GccDPOpt/fvcSnGradFunctionPlugin.o] Error 1
make: *** [Make/darwinIntel64GccDPOpt/fvcInterpolationFunctionPlugin.o] Error 1
make: *** [Make/darwinIntel64GccDPOpt/fvcDivFunctionPlugin.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/replayTransientBC' is up to date.
make[1]: `/Users/beatgodes/OpenFOAM/beatgodes-2.1.1/platforms/darwinIntel64GccDPOpt/bin/funkySetFields' is up to date.


If you want to use swakCoded-function object or compile software based on swak set the environment variable SWAK4FOAM_SRC to /Users/beatgodes/Downloads/swak4Foam_2.x_release_0.2.1/Libraries (most people will be fine without setting that variable)


ajl42 January 20, 2013 18:55

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
ld: library not found for -lswak4FoamParsers
collect2: ld returned 1 exit status
make: *** [/Users/ajl/OpenFOAM/ajl-2.1.x/platforms/darwinIntel64Gcc46DPOpt/lib/libgroovyBC.dylib] Error 1
ld: library not found for -lswak4FoamParsers
collect2: ld returned 1 exit status
make: *** [/Users/ajl/OpenFOAM/ajl-2.1.x/platforms/darwinIntel64Gcc46DPOpt/lib/libswakFunctionObjects.dylib] Error 1
'/Users/ajl/OpenFOAM/ajl-2.1.x/platforms/darwinIntel64Gcc46DPOpt/lib/libsimpleFunctionObjects.dylib' is up to date.
'/Users/ajl/OpenFOAM/ajl-2.1.x/platforms/darwinIntel64Gcc46DPOpt/lib/libsimpleLagrangianFunctionObjects.dylib' is up to date.
ld: library not found for -lswak4FoamParsers
collect2: ld returned 1 exit status
make: *** [/Users/ajl/OpenFOAM/ajl-2.1.x/platforms/darwinIntel64Gcc46DPOpt/lib/libsimpleSwakFunctionObjects.dylib] Error 1
ld: library not found for -lswak4FoamParsers
collect2: ld returned 1 exit status
make: *** [/Users/ajl/OpenFOAM/ajl-2.1.x/platforms/darwinIntel64Gcc46DPOpt/lib/libswakTopoSources.dylib] Error 1
ld: library not found for -lswak4FoamParsers
collect2: ld returned 1 exit status
make: *** [/Users/ajl/OpenFOAM/ajl-2.1.x/platforms/darwinIntel64Gcc46DPOpt/lib/libswakSourceFields.dylib] Error 1
ld: library not found for -lgroovyBC
collect2: ld returned 1 exit status
make: *** [/Users/ajl/OpenFOAM/ajl-2.1.x/platforms/darwinIntel64Gcc46DPOpt/lib/libgroovyStandardBCs.dylib] Error 1
SWAK_PYTHON_INCLUDE not defined .... no Python-Integration
ld: library not found for -lswak4FoamParsers
collect2: ld returned 1 exit status
make: *** [/Users/ajl/OpenFOAM/ajl-2.1.x/platforms/darwinIntel64Gcc46DPOpt/lib/libswakMeshQualityFunctionPlugin.dylib] Error 1
ld: library not found for -lswak4FoamParsers
collect2: ld returned 1 exit status
make: *** [/Users/ajl/OpenFOAM/ajl-2.1.x/platforms/darwinIntel64Gcc46DPOpt/lib/libswakLocalCalculationsFunctionPlugin.dylib] Error 1
ld: library not found for -lswak4FoamParsers
collect2: ld returned 1 exit status
make: *** [/Users/ajl/OpenFOAM/ajl-2.1.x/platforms/darwinIntel64Gcc46DPOpt/lib/libswakRandomFunctionPlugin.dylib] Error 1
ld: library not found for -lswak4FoamParsers
collect2: ld returned 1 exit status
make: *** [/Users/ajl/OpenFOAM/ajl-2.1.x/platforms/darwinIntel64Gcc46DPOpt/lib/libswakFvcSchemesFunctionPlugin.dylib] Error 1
ld: library not found for -lswak4FoamParsers
collect2: ld returned 1 exit status
make: *** [/Users/ajl/OpenFOAM/ajl-2.1.x/platforms/darwinIntel64Gcc46DPOpt/lib/libswakThermoTurbFunctionPlugin.dylib] Error 1
ld: library not found for -lswak4FoamParsers
collect2: ld returned 1 exit status
make: *** [/Users/ajl/OpenFOAM/ajl-2.1.x/platforms/darwinIntel64Gcc46DPOpt/lib/libswakTransportTurbFunctionPlugin.dylib] Error 1
ld: library not found for -lswak4FoamParsers
collect2: ld returned 1 exit status
make: *** [/Users/ajl/OpenFOAM/ajl-2.1.x/platforms/darwinIntel64Gcc46DPOpt/lib/libswakSurfacesAndSetsFunctionPlugin.dylib] Error 1
ld: library not found for -lswak4FoamParsers
collect2: ld returned 1 exit status
make: *** [/Users/ajl/OpenFOAM/ajl-2.1.x/platforms/darwinIntel64Gcc46DPOpt/lib/libswakLagrangianCloudSourcesFunctionPlugin.dylib] Error 1
ld: library not found for -lswak4FoamParsers
collect2: ld returned 1 exit status
make: *** [/Users/ajl/OpenFOAM/ajl-2.1.x/platforms/darwinIntel64Gcc46DPOpt/lib/libswakVelocityFunctionPlugin.dylib] Error 1
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/meshTools/lnInclude -I../../Libraries/swak4FoamParsers/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 -lpthread -L/Users/ajl/OpenFOAM/OpenFOAM-2.1.x/platforms/darwinIntel64Gcc46DPOpt/lib/openmpi-system -lPstream Make/darwinIntel64Gcc46DPOpt/funkyDoCalc.o -L/Users/ajl/OpenFOAM/OpenFOAM-2.1.x/platforms/darwinIntel64Gcc46DPOpt/lib \
-lfiniteVolume -lmeshTools -L/Users/ajl/OpenFOAM/ajl-2.1.x/platforms/darwinIntel64Gcc46DPOpt/lib -lswak4FoamParsers -lOpenFOAM -ldl -lpthread -lm -o /Users/ajl/OpenFOAM/ajl-2.1.x/platforms/darwinIntel64Gcc46DPOpt/bin/funkyDoCalc
ld: library not found for -lswak4FoamParsers
collect2: ld returned 1 exit status
make[1]: *** [/Users/ajl/OpenFOAM/ajl-2.1.x/platforms/darwinIntel64Gcc46DPOpt/bin/funkyDoCalc] Error 1
make: *** [funkyDoCalc] Error 2
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/meshTools/lnInclude -I../../Libraries/swak4FoamParsers/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 -lpthread -L/Users/ajl/OpenFOAM/OpenFOAM-2.1.x/platforms/darwinIntel64Gcc46DPOpt/lib/openmpi-system -lPstream Make/darwinIntel64Gcc46DPOpt/funkySetBoundaryField.o -L/Users/ajl/OpenFOAM/OpenFOAM-2.1.x/platforms/darwinIntel64Gcc46DPOpt/lib \
-lfiniteVolume -lmeshTools -L/Users/ajl/OpenFOAM/ajl-2.1.x/platforms/darwinIntel64Gcc46DPOpt/lib -lswak4FoamParsers -lOpenFOAM -ldl -lpthread -lm -o /Users/ajl/OpenFOAM/ajl-2.1.x/platforms/darwinIntel64Gcc46DPOpt/bin/funkySetBoundaryField
ld: library not found for -lswak4FoamParsers
collect2: ld returned 1 exit status
make[1]: *** [/Users/ajl/OpenFOAM/ajl-2.1.x/platforms/darwinIntel64Gcc46DPOpt/bin/funkySetBoundaryField] Error 1
make: *** [funkySetBoundaryField] Error 2
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/meshTools/lnInclude -I../../Libraries/swak4FoamParsers/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 -lpthread -L/Users/ajl/OpenFOAM/OpenFOAM-2.1.x/platforms/darwinIntel64Gcc46DPOpt/lib/openmpi-system -lPstream Make/darwinIntel64Gcc46DPOpt/funkySetFields.o -L/Users/ajl/OpenFOAM/OpenFOAM-2.1.x/platforms/darwinIntel64Gcc46DPOpt/lib \
-lfiniteVolume -lmeshTools -L/Users/ajl/OpenFOAM/ajl-2.1.x/platforms/darwinIntel64Gcc46DPOpt/lib -lswak4FoamParsers -lOpenFOAM -ldl -lpthread -lm -o /Users/ajl/OpenFOAM/ajl-2.1.x/platforms/darwinIntel64Gcc46DPOpt/bin/funkySetFields
ld: library not found for -lswak4FoamParsers
collect2: ld returned 1 exit status
make[1]: *** [/Users/ajl/OpenFOAM/ajl-2.1.x/platforms/darwinIntel64Gcc46DPOpt/bin/funkySetFields] Error 1
make: *** [funkySetFields] Error 2
make[1]: `/Users/ajl/OpenFOAM/ajl-2.1.x/platforms/darwinIntel64Gcc46DPOpt/bin/replayTransientBC' is up to date.
make: Target `application' not remade because of errors.


If you want to use swakCoded-function object or compile software based on swak set the environment variable SWAK4FOAM_SRC to /Users/ajl/OpenFOAM/swak4Foam_2.x_release_0.2.1/Libraries (most people will be fine without setting that variable)

gschaider January 21, 2013 12:07

Quote:

Originally Posted by Beatgodes (Post 402985)
did a clean build because the seg fault didn't smell right

Code:

SOURCE=createSampledSurfaceFunctionObject.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/createSampledSurfaceFunctionObject.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&’

'/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=fvcGradFunctionPlugin.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/fvcGradFunctionPlugin.o
SOURCE=fvcDivFunctionPlugin.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/fvcDivFunctionPlugin.o
SOURCE=fvcSnGradFunctionPlugin.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/fvcSnGradFunctionPlugin.o
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
fvcGradFunctionPlugin.C: In member function ‘void Foam::fvcGradFunctionPlugin<T>::setArgument(Foam::label, const Foam::string&, const Foam::CommonValueExpressionDriver&)’:
fvcGradFunctionPlugin.C:114: 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&’
fvcSnGradFunctionPlugin.C: In member function ‘void Foam::fvcSnGradFunctionPlugin<T>::setArgument(Foam::label, const Foam::string&, const Foam::CommonValueExpressionDriver&)’:
fvcSnGradFunctionPlugin.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&’
fvcDivFunctionPlugin.C: In member function ‘void Foam::fvcDivFunctionPlugin<T>::setArgument(Foam::label, const Foam::string&, const Foam::CommonValueExpressionDriver&)’:
fvcDivFunctionPlugin.C:121: 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&’
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&’


If you want to use swakCoded-function object or compile software based on swak set the environment variable SWAK4FOAM_SRC to /Users/beatgodes/Downloads/swak4Foam_2.x_release_0.2.1/Libraries (most people will be fine without setting that variable)


What makes it harder to read all this is that WM_NCOMPPROCS is set and therefor the error messages are sometimes not alligned with the compiler calls. Anyway. Looks like most of the problems come from g++ 4.2:

in manipulatePatchField.C: is that one of the files were you inserted the "official" dynamic_cast (but I'm unsure whether dynamicCast fares better). Try fixing this by adding

#include "fvMesh.H"

at the start of that file. The other stuff happens in a library that is not really essential (a plugin that allows comparing discretization schemes) so I think for the time being you can ignore it


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