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

[swak4Foam] groovyBC & OpenFoam 1.7.0

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 22, 2010, 04:04
Default groovyBC & OpenFoam 1.7.0
  #1
Member
 
Join Date: Nov 2009
Location: Germany
Posts: 96
Rep Power: 16
val46 is on a distinguished road
Hi,

i'm using OF1.7.
I would like to install groovyBC and downloaded it from

https://openfoam-extend.svn.sourcefo...ries/groovyBC/

Unfortunetaly I got tons of errors like:

Quote:
/home/kressnt/OpenFOAM/OpenFOAM-1.7.0/src/OpenFOAM/lnInclude/sphericalTensor.H:43: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Foam’
Do you have any ideas how to install it proberly?

Thanks in advance

Toni
val46 is offline   Reply With Quote

Old   July 22, 2010, 09:27
Default
  #2
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 val46 View Post
Hi,

i'm using OF1.7.
I would like to install groovyBC and downloaded it from

https://openfoam-extend.svn.sourcefo...ries/groovyBC/

Unfortunetaly I got tons of errors like:

Do you have any ideas how to install it proberly?

Thanks in advance

Toni
This looks like a very fundamental problem with your compiler and/or your installation. Have you ever compiled anything else for that installation?

I just tried and groovBC from the 1.6-section of the Breeder compiles without problems on my 1.7.x-installation

Bernhard
gschaider is offline   Reply With Quote

Old   July 22, 2010, 10:25
Default
  #3
Member
 
Join Date: Nov 2009
Location: Germany
Posts: 96
Rep Power: 16
val46 is on a distinguished road
Hi Bernard,

thanks for your quick reply.

Quote:
This looks like a very fundamental problem with your compiler and/or your installation. Have you ever compiled anything else for that installation?
Hm... what do you mean? The whole OF1.7 installation is working probably.

What else to I have to compile?

Regards,
Toni
val46 is offline   Reply With Quote

Old   July 22, 2010, 13:27
Default
  #4
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 val46 View Post
Hi Bernard,

thanks for your quick reply.



Hm... what do you mean? The whole OF1.7 installation is working probably.

What else to I have to compile?

Regards,
Toni
Have you ever compiled any other Third-Party-contribution? It is my suspicion that you're facing the same problem there. OR that you stumbled upon a very rare compiler problem (unlikely, but what compiler are you using)

Bernhard
gschaider is offline   Reply With Quote

Old   July 23, 2010, 02:23
Default
  #5
Member
 
Join Date: Nov 2009
Location: Germany
Posts: 96
Rep Power: 16
val46 is on a distinguished road
Quote:
Have you ever compiled any other Third-Party-contribution? It is my suspicion that you're facing the same problem there. OR that you stumbled upon a very rare compiler problem (unlikely, but what compiler are you using)
I compiled ParaView3.8.0 and it worked.
I'm using Suse 11.2 with gcc 4.4.1
val46 is offline   Reply With Quote

Old   July 23, 2010, 04:02
Default
  #6
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 val46 View Post
I compiled ParaView3.8.0 and it worked.
I'm using Suse 11.2 with gcc 4.4.1
Sorry. I was a bit unspecific. I meant "ThirdParty-OpenFOAM software that has to be compiled using wmake". Some solver, util etc

Bernhard
gschaider is offline   Reply With Quote

Old   July 23, 2010, 05:04
Default
  #7
Member
 
Join Date: Nov 2009
Location: Germany
Posts: 96
Rep Power: 16
val46 is on a distinguished road
No.
I just followed the official installation instructions for OF and recompiled the icofoam solver because i changed the code.
val46 is offline   Reply With Quote

Old   July 23, 2010, 07:44
Default
  #8
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 val46 View Post
No.
I just followed the official installation instructions for OF and recompiled the icofoam solver because i changed the code.
Strange. Because the file that raises the error is not one of groovyBC
gschaider is offline   Reply With Quote

Old   July 23, 2010, 09:11
Default
  #9
Member
 
Join Date: Nov 2009
Location: Germany
Posts: 96
Rep Power: 16
val46 is on a distinguished road
As I said, this was just an example from the whole error message. Overall i got thousands of errors but all with the same pattern (see the attached file).

What else could i have done wrong?

1. I updated Bison on 2.4.1
2. I downloaded the files from the path I mentioned above
3. I unpacked the files in a separat folder (no OF path)
4. I typed "wmake libso" in the groovyBC folder
Attached Files
File Type: txt errors.txt (91.6 KB, 17 views)
val46 is offline   Reply With Quote

Old   August 3, 2010, 08:30
Default
  #10
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 val46 View Post
As I said, this was just an example from the whole error message. Overall i got thousands of errors but all with the same pattern (see the attached file).

What else could i have done wrong?

1. I updated Bison on 2.4.1
2. I downloaded the files from the path I mentioned above
3. I unpacked the files in a separat folder (no OF path)
4. I typed "wmake libso" in the groovyBC folder
OK. The trouble starts here:

Code:
SOURCE=PatchResult.c ;  gcc -m64 -Dlinux64 ...
For some reason you're compiling PatchResult.c (with a lowercase c) where it should be PatchResult.C. The compiler/wmake interprets this as a C-file and chokes at some C++-constructs (probably the namespace)

Bernhard
gschaider is offline   Reply With Quote

Old   August 6, 2010, 04:16
Default
  #11
Member
 
Join Date: Nov 2009
Location: Germany
Posts: 96
Rep Power: 16
val46 is on a distinguished road
Hi Bernard,

thanks for Reply.
I changed all .c-files to .C-files. After that I had to edit also all the .dep-files.
Than i started wmake again.

No luck so far... i attached the error message.


Regards,
Toni
Attached Files
File Type: txt errors2.txt (20.3 KB, 9 views)
val46 is offline   Reply With Quote

Old   August 9, 2010, 05:20
Default
  #12
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 val46 View Post
Hi Bernard,

thanks for Reply.
I changed all .c-files to .C-files. After that I had to edit also all the .dep-files.
Than i started wmake again.

No luck so far... i attached the error message.


Regards,
Toni
No idea. It still gets compiled as C
Code:
SOURCE=PatchValueExpressionDriver.C ;  gcc -m64 -Dlinux64 -DWM_DP -Wall -O3  -IMake/linux64GccDPOpt  -I/home/kressnt/OpenFOAM/OpenFOAM-1.7.0/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/kressnt/OpenFOAM/OpenFOAM-1.7.0/src/OpenFOAM/lnInclude -I/home/kressnt/OpenFOAM/OpenFOAM-1.7.0/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPOpt/PatchValueExpressionDriver.o
but at least now the compiler seems to know that this is a C++-source
Code:
/home/kressnt/OpenFOAM/OpenFOAM-1.7.0/src/OpenFOAM/lnInclude/lduInterface.H:102: error: ISO C++ forbids declaration of ‘Pstream’ with no type
Looks like the Pstream was included but for some reason not "looked at".Try the following. Execute
Code:
SOURCE=PatchValueExpressionDriver.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -O3  -IMake/linux64GccDPOpt  -I/home/kressnt/OpenFOAM/OpenFOAM-1.7.0/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/kressnt/OpenFOAM/OpenFOAM-1.7.0/src/OpenFOAM/lnInclude -I/home/kressnt/OpenFOAM/OpenFOAM-1.7.0/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPOpt/PatchValueExpressionDriver.o
from the command line. If that doesn't help insert
Code:
#include "Pstream.H"
near the beginning of PatchValueExpressionDriver.C

Something is very strange with your setup

Bernhard
gschaider is offline   Reply With Quote

Old   August 11, 2010, 03:58
Default
  #13
Member
 
Join Date: Nov 2009
Location: Germany
Posts: 96
Rep Power: 16
val46 is on a distinguished road
I tried both with no success...
Inserting #include "Pstream.H" changed nothing.
val46 is offline   Reply With Quote

Old   August 11, 2010, 04:32
Default
  #14
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 val46 View Post
I tried both with no success...
Inserting #include "Pstream.H" changed nothing.
Could I suggest that you try again from a completely fresh copy of the sources (by downloading it in the way suggested on the Wiki-page via svn) as you had to rename your original files and nobody knows what else is lurking there

Bernhard
gschaider is offline   Reply With Quote

Old   August 11, 2010, 06:46
Default
  #15
Member
 
Join Date: Nov 2009
Location: Germany
Posts: 96
Rep Power: 16
val46 is on a distinguished road
Oh my god! It works!

I'm sitting behind a powerful firewall. That's why I'm not able to use the svn command from the terminal. I have to download it by hand. Maybe I messed something up while I downloaded and saved the files.

Sorry, Bernard, if I wasted your time with that.
Thanks for your help anyway.


Toni
val46 is offline   Reply With Quote

Old   August 11, 2010, 10:27
Default
  #16
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 val46 View Post
Oh my god! It works!

I'm sitting behind a powerful firewall. That's why I'm not able to use the svn command from the terminal. I have to download it by hand. Maybe I messed something up while I downloaded and saved the files.
There is an alternate Webinterface to Subversion on Sourceforge.net that allows to download whole directories as tar-balls (click around a bit, should be accessible from the project-page)
Quote:
Originally Posted by val46 View Post
Sorry, Bernard, if I wasted your time with that.
Thanks for your help anyway.
Could we agree on "Your IT-department wasted both of our time by denying you access to essential services on the net"?
gschaider is offline   Reply With Quote

Old   August 13, 2010, 02:36
Default
  #17
Member
 
Join Date: Nov 2009
Location: Germany
Posts: 96
Rep Power: 16
val46 is on a distinguished road
Quote:
There is an alternate Webinterface to Subversion on Sourceforge.net that allows to download whole directories as tar-balls (click around a bit, should be accessible from the project-page)
Hm... couldn't find anything like that.

Quote:
Could we agree on "Your IT-department wasted both of our time by denying you access to essential services on the net"?
Jepp, we could do that
val46 is offline   Reply With Quote

Old   August 13, 2010, 05:10
Default
  #18
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 val46 View Post
Hm... couldn't find anything like that.
http://openfoam-extend.svn.sourcefor...-extend/trunk/

Browse to the directory you want and press "Download GNU tarball"
gschaider is offline   Reply With Quote

Old   August 20, 2010, 13:10
Default
  #19
Member
 
Join Date: Dec 2009
Location: Kanpur, India
Posts: 54
Rep Power: 16
Shoonya is on a distinguished road
I down loaded from this link
just typed on terminal as
svn checkout https://openfoam-extend.svn.sourcefo...aries/groovyBC

for this I had to first install subversion as
$ sudo apt-get install subversion

before this I was downloading groovyBC from some other link ...that was creating error as
make: *** [Make/linux64GccDPOpt/PatchValueExpressionDriver.o] Error 1

the link mentioned above is from wiki and works well...
Shoonya is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting Started with OpenFOAM wyldckat OpenFOAM 25 August 14, 2022 13:55
OpenFOAM Training Jan-Jul 2017, Virtual, London, Houston, Berlin CFDFoundation OpenFOAM Announcements from Other Sources 0 January 4, 2017 06:15
[swak4Foam] groovyBC OpenFoam 1.7 dandalf OpenFOAM Community Contributions 7 March 18, 2011 05:19
Installation of OpenFOAM 1.7.0 on SLED10SP2 olauer OpenFOAM Installation 2 June 30, 2010 10:29
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 18:07


All times are GMT -4. The time now is 14:31.