[Dune] [Dune-Commit] dune-common r6429 - trunk/dune/common/test

Christian Engwer christian.engwer at uni-muenster.de
Wed Apr 27 22:15:15 CEST 2011


Hi Markus,

On Wed, Apr 27, 2011 at 09:37:50PM +0200, Markus Blatt wrote:
> Hi,
> 
> I implemeted this a long time ago and therefore I might be wrong. But
> isn't this test supposed to work even without MPI?

I never tried it without MPI, I just observed, that the test succeded
without MPI, but with a note that is didn't really run. I assumed that
this was on purpose, thus I changed the behavior to the way automake
usually handles such tests.

Ciao
Christian

> CollectiveCommunication should have a specialization for the fake
> MPICommunicator. IF not, this should be a bug.
> 
> Regards,
> 
> Markus
> 
> On Wed, Apr 27, 2011 at 09:07:38PM +0200, christi at dune-project.org wrote:
> > Author: christi
> > Date: 2011-04-27 21:07:37 +0200 (Wed, 27 Apr 2011)
> > New Revision: 6429
> > 
> > Modified:
> >    trunk/dune/common/test/mpicollectivecommunication.cc
> > Log:
> > mark test "mpicollectivecommunication" as skipped if MPI is not available
> > 
> > Modified: trunk/dune/common/test/mpicollectivecommunication.cc
> > ===================================================================
> > --- trunk/dune/common/test/mpicollectivecommunication.cc	2011-04-27 19:07:24 UTC (rev 6428)
> > +++ trunk/dune/common/test/mpicollectivecommunication.cc	2011-04-27 19:07:37 UTC (rev 6429)
> > @@ -12,13 +12,11 @@
> >  int main(int argc, char** argv)
> >  {
> >    typedef Dune::MPIHelper Helper;
> > -  typedef Helper::MPICommunicator MPIComm;
> > +  Helper& mpi = Helper::instance(argc, argv);
> >    
> >  #if HAVE_MPI 
> >    {
> > -    Helper& mpi = Helper::instance(argc, argv);
> > -    
> > -    
> > +    typedef Helper::MPICommunicator MPIComm;
> >      Dune::CollectiveCommunication<MPIComm> comm(mpi.getCommunicator());
> >  
> >      enum { length = 5 };
> > @@ -50,6 +48,7 @@
> >    std::cout << "We are at the end!"<<std::endl;
> >  #else 
> >    std::cout << "WARNING: test Dune::CollectiveCommunication<MPI_Comm> disabled because MPI not available! " << std::endl;
> > +  return 77;
> >  #endif
> >    return 0;
> >  }
> > 
> > 
> > _______________________________________________
> > Dune-Commit mailing list
> > Dune-Commit at dune-project.org
> > http://lists.dune-project.org/mailman/listinfo/dune-commit
> > 
> 
> -- 
> Markus Blatt, Interdisciplinary Center for Scientific Computing,
> University Heidelberg, Im Neuenheimer Feld 368, D-69120 Heidelberg
> 
> 'Mathematics knows no races or geographic boundaries; for
> mathematics, the cultural world is one country' - David Hilbert
> 
> _______________________________________________
> Dune mailing list
> Dune at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune
> 




More information about the Dune mailing list