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

OpenFOAM: something wrong with my compiler?

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

Reply
 
LinkBack Thread Tools Display Modes
Old   June 1, 2012, 13:38
Unhappy OpenFOAM: something wrong with my compiler?
  #1
New Member
 
Join Date: Jun 2012
Posts: 7
Rep Power: 5
S.J.Daniels is on a distinguished road
Hi there,

I've recently installed swak4Foam with OpenFOAM 1.7.1.
It seems to have compiled successfully. However when I run one of the tutorials with in swak4Foam (in this case the pulsedPitzDaily case in groovyBC) I get the following feedback.

Create time

Create mesh for time = 0

Reading field p

Reading field U

Reading/calculating face flux field phi

Selecting incompressible transport model Newtonian
Selecting turbulence model type LESModel
Selecting LES turbulence model oneEqEddy
--> FOAM Warning :
From function cubeRootVolDelta::calcDelta()
in file cubeRootVolDelta/cubeRootVolDelta.C at line 52
Case is 2D, LES is not strictly applicable

oneEqEddyCoeffs
{
ck 0.07;
ce 1.05;
}

Starting time loop

DICPCG: Solving for distance, Initial residual = 1, Final residual = 9.97476e-07, No Iterations 227
DICPCG: Solving for distance, Initial residual = 5.26588e-09, Final residual = 5.26588e-09, No Iterations 0
DICPCG: Solving for distance, Initial residual = 5.26588e-09, Final residual = 5.26588e-09, No Iterations 0
--> FOAM Warning :
From function dlLibraryTable:pen(const dictionary& dict, const word& libsEntry, const TablePtr tablePtr)
in file lnInclude/dlLibraryTableTemplates.C at line 67
library "libsampling.so" did not introduce any new entries

Reading/calculating field UMean

Reading/calculating field pMean

Reading/calculating field UPrime2Mean

Reading/calculating field pPrime2Mean

#0 Foam::error:rintStack(Foam::Ostream&) in "/opt/openfoam171/lib/linux64GccDPOpt/libOpenFOAM.so"
#1 Foam::sigFpe::sigFpeHandler(int) in "/opt/openfoam171/lib/linux64GccDPOpt/libOpenFOAM.so"
#2 in "/lib/libc.so.6"
#3 Foam::tmp<Foam::GeometricField<Foam:uterProduct< double, double>::type, Foam::fvPatchField, Foam::volMesh> > Foam::sqr<double, Foam::fvPatchField, Foam::volMesh>(Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&) in "/opt/openfoam171/lib/linux64GccDPOpt/libincompressibleRASModels.so"
#4 void Foam::fieldAverage::addPrime2MeanField<double, double>(int, Foam::List<Foam::word> const&, Foam::List<Foam::word>&) const in "/opt/openfoam171/lib/linux64GccDPOpt/libfieldFunctionObjects.so"
#5 Foam::fieldAverage::initialize() in "/opt/openfoam171/lib/linux64GccDPOpt/libfieldFunctionObjects.so"
#6 Foam::fieldAverage::read(Foam::dictionary const&) in "/opt/openfoam171/lib/linux64GccDPOpt/libfieldFunctionObjects.so"
#7 Foam::fieldAverage::fieldAverage(Foam::word const&, Foam:bjectRegistry const&, Foam::dictionary const&, bool) in "/opt/openfoam171/lib/linux64GccDPOpt/libfieldFunctionObjects.so"
#8 Foam::OutputFilterFunctionObject<Foam::fieldAverag e>::allocateFilter() in "/opt/openfoam171/lib/linux64GccDPOpt/libfieldFunctionObjects.so"
#9 Foam::OutputFilterFunctionObject<Foam::fieldAverag e>::start() in "/opt/openfoam171/lib/linux64GccDPOpt/libfieldFunctionObjects.so"
#10 Foam::functionObjectList::read() in "/opt/openfoam171/lib/linux64GccDPOpt/libOpenFOAM.so"
#11 Foam::Time:perator++() in "/opt/openfoam171/lib/linux64GccDPOpt/libOpenFOAM.so"
#12 Foam::Time::loop() in "/opt/openfoam171/lib/linux64GccDPOpt/libOpenFOAM.so"
#13
in "/opt/openfoam171/applications/bin/linux64GccDPOpt/pisoFoam"
#14 __libc_start_main in "/lib/libc.so.6"
#15
in "/opt/openfoam171/applications/bin/linux64GccDPOpt/pisoFoam"
Floating point exception


I found this a bit strange, I also have two other bits of code I'm using for a project. These were working before I installed swak4FOAM but now they get a similar error message.

Can someone tell me what's going on, or help with a solution?

Best Regards,

Steven
S.J.Daniels is offline   Reply With Quote

Old   June 1, 2012, 13:43
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,511
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Steven and welcome to the forum!

OK, you didn't mention the Gcc version, although you blamed it

A few questions:
  • What Gcc version are you using?
  • What Linux distribution and version are you using?
  • Which swak4Foam version are you using?
There's a compatibility matrix showing the relation between OpenFOAM and Gcc versions: http://openfoamwiki.net/index.php/In...ibility_Matrix

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   June 1, 2012, 14:30
Default
  #3
New Member
 
Join Date: Jun 2012
Posts: 7
Rep Power: 5
S.J.Daniels is on a distinguished road
Hi Bruno,

Many thanks for your quick response! In answer to your questions:

gcc version 4.4.5 - according to the matrix it seems to be compatable with OF1.7.1.

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.10
DISTRIB_CODENAME=maverick
DISTRIB_DESCRIPTION="Ubuntu 10.10

I don't know what version of swak4Foam I've downloaded, but I downloaded it from this website: http://openfoamwiki.net/index.php/Contrib/swak4Foam

I used the command from the following section:
The current version that works with 1.x-releases of OpenFOAM can be downloaded using the following command..


Thank you for your time,


Steven
S.J.Daniels is offline   Reply With Quote

Old   June 2, 2012, 08:38
Default
  #4
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,511
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Steven,

OK, first thing, we need bash as the default sh (the default in Ubuntu is dash):
Code:
sudo update-alternatives --install /bin/sh sh /bin/dash 1
sudo update-alternatives --install /bin/sh sh /bin/bash 1
sudo update-alternatives --config sh
Then pick "0".

Then install bison:
Code:
sudo apt-get install bison
If you want python integration as well, see the file "swakConfiguration.example" and copy-edit to "swakConfiguration".

Then build swak4Foam:
Code:
./Allwmake
If you still have problems, run it again like this:
Code:
./Allwmake > make.log 2>&1
tar -czf make.log.tar.gz make.log
Then attach "make.log.tar.gz" to your next post.

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   June 3, 2012, 05:40
Default
  #5
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,915
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by S.J.Daniels View Post
I don't know what version of swak4Foam I've downloaded, but I downloaded it from this website: http://openfoamwiki.net/index.php/Contrib/swak4Foam

I used the command from the following section:
The current version that works with 1.x-releases of OpenFOAM can be downloaded using the following command..
The actual error you posted happens in a library that comes with OF so my lawyer told me do deny all responsibility

Anyway: the only way I can see swak being involved here is that the groovyBC wrote for instance a NaN and that lead to the floating point exception in another library (which is what you're seeing)

Starting with the latest release the utilities that come with swak4Foam (for instance funkySetFields) give a swak-version-number. If you're not seeing that then you don't have the latest release.
gschaider is offline   Reply With Quote

Old   June 3, 2012, 16:41
Default
  #6
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,511
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings to all!

After Bernhard's post, I remembered that I forgot to check if the tutorial worked for me. I tested the tutorial "Examples/groovyBC/pulsedPitzDaily" by running:
Code:
blockMesh
pisoFoam
And It ran with no problems till 0.00037s, which was when I canceled execution, since the initial report indicated that it would crash at the first time step.

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   June 10, 2012, 09:46
Default
  #7
New Member
 
Join Date: Jun 2012
Posts: 7
Rep Power: 5
S.J.Daniels is on a distinguished road
Hi Everyone!

Many thanks for your advice and suggestions. I've got swak4Foam working now!

Best Regards,

Steven
S.J.Daniels is offline   Reply With Quote

Old   June 10, 2012, 15:59
Default
  #8
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,915
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by S.J.Daniels View Post
Many thanks for your advice and suggestions. I've got swak4Foam working now!
If any of the suggestions here was the right one OR if the problem was something different, could you just write one sentence about that here? Not for me but the next poor soul who has the same problem as you and finds this thread via the search-function of the MessageBoard
gschaider is offline   Reply With Quote

Old   June 11, 2012, 11:13
Default
  #9
New Member
 
Join Date: Jun 2012
Posts: 7
Rep Power: 5
S.J.Daniels is on a distinguished road
Hello all,

Swak4Foam worked after I followed Bruno's instructions earlier in this thread (installing Bison etc.). I haven't tried the Python integration yet.

Thanks again,

Steven
S.J.Daniels is offline   Reply With Quote

Old   June 13, 2012, 17:45
Default
  #10
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,915
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by S.J.Daniels View Post
Hello all,

Swak4Foam worked after I followed Bruno's instructions earlier in this thread (installing Bison etc.). I haven't tried the Python integration yet.

Thanks again,

Steven
Thanks for the clarification.

Python integration has potential. But don't spend too much time on it if you don't need it
gschaider is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenFOAM 1.7.x using intel compiler and MVAPICH2 kpsl OpenFOAM Installation 8 August 12, 2011 13:44
Modified OpenFOAM Forum Structure and New Mailing-List pete Site News & Announcements 0 June 29, 2009 05:56
OpenFOAM compiled with Intel C++ Compiler? af631717 OpenFOAM Running, Solving & CFD 4 June 5, 2009 06:41
udf error srihari FLUENT 0 February 9, 2009 10:00
OpenFOAM Training in Europe and USA hjasak OpenFOAM 0 August 8, 2008 05:33


All times are GMT -4. The time now is 15:22.