Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost test and openmpi
From: Rhys Ulerich (rhys.ulerich_at_[hidden])
Date: 2014-02-21 11:38:21


> A global fixture seems like a more appropriate solution than implementing main().
>
> BOOST_GLOBAL_FIXTURE

Indeed. Something like the following works just fine:

struct MPIFixture {
    MPIFixture() { MPI_Init(NULL, NULL); }
    ~MPIFixture() { MPI_Finalize(); }
};
BOOST_GLOBAL_FIXTURE(MPIFixture);

- Rhys


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net