[Dune] About geometryInInSide in UGGrid
Yufei Cao
iwsycao at iws.uni-stuttgart.de
Thu Apr 2 10:16:04 CEST 2009
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?
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;
> }
>}
More information about the Dune
mailing list