CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Community Contributions (https://www.cfd-online.com/Forums/openfoam-community-contributions/)
-   -   [swak4Foam] OpenFOAM v2.0 and groovyBC (https://www.cfd-online.com/Forums/openfoam-community-contributions/89841-openfoam-v2-0-groovybc.html)

steph79 June 23, 2011 08:19

OpenFOAM v2.0 and groovyBC
 
Hi,

I can't seem to get groovyBC to work with OpenFOAM 2.0. I had it working with 1.7, even though it isn't listed as compatible on http://openfoamwiki.net/index.php/Contrib_groovyBC so I presume it should work with 2.0.

Here's what I get after running wmake (not as sudo);

touch: cannot touch `Make/linux64GccDPOpt/dontIncludeDeps': Permission denied
SOURCE=PatchValueExpressionDriver.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/opt/openfoam200/src/finiteVolume/lnInclude -IlnInclude -I. -I/opt/openfoam200/src/OpenFOAM/lnInclude -I/opt/openfoam200/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/PatchValueExpressionDriver.o
In file included from Make/linux64GccDPOpt/location.hh:44,
from PatchValueExpressionParser.tab.hh:65,
from PatchValueExpressionDriver.H:59,
from PatchValueExpressionDriver.C:34:
position.hh: In function ‘bool pve::operator==(const pve::position&, const pve::position&)’:
position.hh:136: warning: suggest parentheses around ‘&&’ within ‘||’
PatchValueExpressionDriver.C: In member function ‘void Foam::PatchValueExpressionDriver::error(const pve::location&, const std::string&)’:
PatchValueExpressionDriver.C:192: error: expected unqualified-id before ‘::’ token
PatchValueExpressionDriver.C:192: error: expected ‘;’ before ‘::’ token
PatchValueExpressionDriver.C: In member function ‘void Foam::PatchValueExpressionDriver::error(const std::string&)’:
PatchValueExpressionDriver.C:202: error: expected unqualified-id before ‘::’ token
PatchValueExpressionDriver.C:202: error: expected ‘;’ before ‘::’ token
make: *** [Make/linux64GccDPOpt/PatchValueExpressionDriver.o] Error 1





Any suggestions? Thanks.

gschaider June 23, 2011 22:25

Quote:

Originally Posted by steph79 (Post 313258)
Hi,

I can't seem to get groovyBC to work with OpenFOAM 2.0. I had it working with 1.7, even though it isn't listed as compatible on http://openfoamwiki.net/index.php/Contrib_groovyBC so I presume it should work with 2.0.

Here's what I get after running wmake (not as sudo);

<error message snipped>

Any suggestions? Thanks.

That is the kind of problem that is to be expected with a major release.

I'll have a look at this once I'm back from vacation.

If you want to be sure that I remember this and want to be updated on the progress of the port open a ticket at
http://sourceforge.net/apps/mantisbt...?page_number=1

Bernhard

gschaider June 23, 2011 22:39

Quote:

Originally Posted by steph79 (Post 313258)
Hi,

I can't seem to get groovyBC to work with OpenFOAM 2.0. I had it working with 1.7, even though it isn't listed as compatible on http://openfoamwiki.net/index.php/Contrib_groovyBC so I presume it should work with 2.0.

Here's what I get after running wmake (not as sudo);

PatchValueExpressionDriver.C:192: error: expected unqualified-id before ‘::’ token

PatchValueExpressionDriver.C:202: error: expected unqualified-id before ‘::’ token

Quick fix: remove the Foam:: in these two lines

Bernhard

PS: Stuff from the other posting still applies

steph79 June 27, 2011 07:18

Quote:

Originally Posted by gschaider (Post 313346)
Quick fix: remove the Foam:: in these two lines

Bernhard

PS: Stuff from the other posting still applies

Thanks I removed "Foam::" from lines 192 and 202 in the PatchValueExpressionDriver.C source file respectively and then tried wmake libso with the following error message;

touch: cannot touch `Make/linux64GccDPOpt/dontIncludeDeps': Permission denied
/opt/openfoam200/wmake/scripts/addCompile: 53: cannot create PatchValueExpressionDriver.dep: Permission denied
/opt/openfoam200/wmake/scripts/addCompile: 57: cannot create PatchValueExpressionDriver.dep: Permission denied
/opt/openfoam200/wmake/scripts/addCompile: 59: cannot create PatchValueExpressionDriver.dep: Permission denied
/opt/openfoam200/wmake/scripts/addCompile: 60: cannot create PatchValueExpressionDriver.dep: Permission denied
/opt/openfoam200/wmake/scripts/addCompile: 61: cannot create PatchValueExpressionDriver.dep: Permission denied
/opt/openfoam200/wmake/scripts/addCompile: 62: cannot create PatchValueExpressionDriver.dep: Permission denied
Making dependency list for source file PatchValueExpressionDriver.C
make: *** [PatchValueExpressionDriver.dep] Error 2


Since it says permission denied I tried as sudo but then it can't understand wmake.

Any suggestions? Thanks.

gschaider June 27, 2011 07:56

Quote:

Originally Posted by steph79 (Post 313707)
Thanks I removed "Foam::" from lines 192 and 202 in the PatchValueExpressionDriver.C source file respectively and then tried wmake libso with the following error message;

touch: cannot touch `Make/linux64GccDPOpt/dontIncludeDeps': Permission denied
/opt/openfoam200/wmake/scripts/addCompile: 53: cannot create PatchValueExpressionDriver.dep: Permission denied
/opt/openfoam200/wmake/scripts/addCompile: 57: cannot create PatchValueExpressionDriver.dep: Permission denied
/opt/openfoam200/wmake/scripts/addCompile: 59: cannot create PatchValueExpressionDriver.dep: Permission denied
/opt/openfoam200/wmake/scripts/addCompile: 60: cannot create PatchValueExpressionDriver.dep: Permission denied
/opt/openfoam200/wmake/scripts/addCompile: 61: cannot create PatchValueExpressionDriver.dep: Permission denied
/opt/openfoam200/wmake/scripts/addCompile: 62: cannot create PatchValueExpressionDriver.dep: Permission denied
Making dependency list for source file PatchValueExpressionDriver.C
make: *** [PatchValueExpressionDriver.dep] Error 2


Since it says permission denied I tried as sudo but then it can't understand wmake.

Any suggestions? Thanks.

This "permission denied" is an OS-problem. Probably you don't have write access to the directories in question.

Bernhard

theory37 June 27, 2011 11:03

Adam, where did you place the groovyBCs source files?

Mike

steph79 June 27, 2011 16:43

Quote:

Originally Posted by theory37 (Post 313747)
Adam, where did you place the groovyBCs source files?

Mike

/~/OpenFOAM/groovyBC

where /~/OpenFOAM is the directory I use to store and execute my cases inside my home folder.

ulisses July 14, 2011 21:30

Quote:

Originally Posted by gschaider (Post 313346)
Quick fix: remove the Foam:: in these two lines

Bernhard

PS: Stuff from the other posting still applies

Thanks Bernhard !!!!


All times are GMT -4. The time now is 19:29.