[Dune] About geometryInInSide in UGGrid

Christian Engwer christi at uni-hd.de
Thu Apr 2 10:28:24 CEST 2009


On Thu, Apr 02, 2009 at 10:16:04AM +0200, Yufei Cao wrote:
> Dear Markus,
> 
> Thank you for your answer !
> 
> I tried the solution as you told, but I got the following 
> error message:
> 
> I am rank 0 of 1 processes!
> p0_20843:  p4_error: interrupt SIGSEGV: 11
> 
> Is this a UG specific problem or something I did wrong?

It seems like you never wanted to run a parallel job. Please check
your configure options. Did you supply "--enable-parallel"? This
option will enable MPI.

Christian


> 
> Best regards,
> Yufei
> 
> 
> 
> 
> 
> On Tue, 31 Mar 2009 19:02:44 +0200 Markus Blatt wrote:
> 
> >This pretty much seems like UG thinks you are using MPI.
> >
> >Just do as you are told:
> >
> >#include "config.h"
> >#include"dune/common/mpihelper.hh" // An initializer of MPI
> >#include"dune/common/exceptions.hh" // We use exceptions
> >
> >int main(int argc, char** argv){
> >  try{
> >    //Maybe initialize Mpi
> >    Dune::MPIHelper& helper = >Dune::MPIHelper::instance(argc, argv);
> >
> >    // you might skip these lines
> >    if(Dune::MPIHelper::isFake)
> >      std::cout<< "This is a sequential program." << >std::endl;
> >    else
> >      std::cout<<"I am rank "<<helper.rank()<<" of >"<<helper.size()
> >        <<" processes!"<<std::endl;
> >    
> >    // your code
> >    ....
> >  }catch (Dune::Exception &e){
> >    std::cerr << "Dune reported error: " << e << std::endl;
> >  }
> >}
> 
> _______________________________________________
> Dune mailing list
> Dune at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune
> 
> 




More information about the Dune mailing list