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

Search Results

Register Blogs Community New Posts Updated Threads Search

Showing results 1 to 14 of 14
Search took 0.00 seconds.
Search: Posts Made By: mwild
Forum: OpenFOAM Bugs January 9, 2009, 10:33
Replies: 28
Views: 3,503
Posted By mwild
It solved it for me in the cur

It solved it for me in the current configuration. But similar issues might crop up anytime (e.g. compiler version changes etc.) However, I do agree that currently this is the easiest way out. Still I...
Forum: OpenFOAM Bugs January 9, 2009, 04:21
Replies: 28
Views: 3,503
Posted By mwild
I don't suppose it would be an

I don't suppose it would be an option to get rid of all the static variables and replace them with "init on first use"? Probably would introduce quite some overhead, can't be inlined and Info() <<...
Forum: OpenFOAM Bugs January 8, 2009, 05:50
Replies: 28
Views: 3,503
Posted By mwild
Henry I think the init-orde

Henry

I think the init-order problem is much worse:

Almost every class contains in it's implementation file a call to either defineTypeNameAndDebug which calls ::Foam::debug::debugSwitch,...
Forum: OpenFOAM Bugs January 7, 2009, 09:03
Replies: 28
Views: 3,503
Posted By mwild
ulongIO.C has the same issue a

ulongIO.C has the same issue as uintIO.C. Here I would take a static_cast<unsigned>, because conversion operators are only defined for one-word types.

Michael
Forum: OpenFOAM Bugs December 29, 2008, 11:55
Replies: 28
Views: 3,503
Posted By mwild
Great news. Thanks for mention

Great news. Thanks for mentioning me in the commit message.

Another question: Will 1.6 be based on the 1.5.x repo? I.e. will there be a smooth transition? Or is it a completely unrelated...
Forum: OpenFOAM Bugs December 29, 2008, 10:23
Replies: 28
Views: 3,503
Posted By mwild
I propose attached patch to so

I propose attached patch to solve this issue:

http://www.cfd-online.com/OpenFOAM_Discus/icons/attachment_icon.gif 0001-BUGFIX-Static-initialization-order.patch...
Forum: OpenFOAM Bugs December 29, 2008, 08:59
Replies: 28
Views: 3,503
Posted By mwild
Mine too. But I now found the

Mine too. But I now found the problem (or I think I have):

Take word.C for example:

#include <openfoam/word.h>
#include <openfoam/debug.h>

// * * * * * * * * * * * * * * Static Data...
Forum: OpenFOAM Bugs December 29, 2008, 07:31
Replies: 28
Views: 3,503
Posted By mwild
Using "unsigned int" is Bernha

Using "unsigned int" is Bernhards ideas. He posted it somewhere on this Forum, if I remember correctly. Strangely it is not included in his patches.

As I said, it works if I move the static...
Forum: OpenFOAM Bugs December 29, 2008, 06:48
Replies: 28
Views: 3,503
Posted By mwild
Hmmm, pretty strange: For test

Hmmm, pretty strange: For testing I removed the '#include "XXX.C"' again and moved the static initializers of XXX:null from XXX.C into global.Cver, and this works... Going to dig deeper.
Forum: OpenFOAM Bugs December 29, 2008, 05:52
Replies: 28
Views: 3,503
Posted By mwild
The "uint" issue is simply due

The "uint" issue is simply due to the fact that on Mac OS X uint is not typedef'ed by default to "unsigned int" (probably because . The only change necessary is:


diff --git...
Forum: OpenFOAM Bugs December 29, 2008, 04:10
Replies: 28
Views: 3,503
Posted By mwild
I inserted #include "string

I inserted

#include "string.C"
#include "word.C"
#include "fileName.C"

at the very top of global.Cver, removed the corresponding lines from src/OpenFOAM/Make/files and compiled a fresh...
Forum: OpenFOAM Bugs December 27, 2008, 15:03
Replies: 28
Views: 3,503
Posted By mwild
>> initialization on first use

>> initialization on first use

> I think this is a good suggestion at least for this case and I will look into implementing it at least for version 1.6, for 1.5.x I will probably move the...
Forum: OpenFOAM Bugs December 27, 2008, 08:56
Replies: 28
Views: 3,503
Posted By mwild
I see this problem on Mac OS X

I see this problem on Mac OS X (I know, that one is not supported...), under Ubuntu 8.10 it doesn't show up.

I'm not sure I personally like transferring all these initializers into global.Cver. ...
Forum: OpenFOAM Bugs December 25, 2008, 07:28
Replies: 28
Views: 3,503
Posted By mwild
dotFoam and getEnv are used in

dotFoam and getEnv are used in static initializers, but rely on static data themselves which resulted in undefined behaviour since the order of initialization is not specified. The static data these...
Showing results 1 to 14 of 14

 
Forum Jump

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