[Dune] MPIHelper.
Thimo Neubauer
thimo.neubauer at iwr.uni-heidelberg.de
Wed Sep 27 16:06:34 CEST 2006
On Wed, Sep 27, 2006 at 03:27:53PM +0200, Markus Blatt wrote:
> The only problem might be if somebody creates singletons who do mpi
> calls in their destructor. That would be invalid in my scenario.
>
> But even with a singleton one would have to make sure that the custom
> singleton gets deallocated before the MPIHelper singleton. Does one
> have control over this?
I recommend consulting "Modern C++ Design" by Andrei Alexandrescu (C++
In-Depth Series, Addison-Wesley) where a couple of singleton-designs
are discussed. The answer to your question is included there and the
short form is: It's possible but it is complicated :-) Don't know if
you really want to go down that road...
Cheers
Thimo
More information about the Dune
mailing list