[Trilinos-Users] Error creating Epetra Maps

Razak Jagir r.jagir at auckland.ac.nz
Thu Jun 7 21:08:10 MDT 2007


Hello,
     Epetra Map creation fails in my installation with the following
message.

Program:
int main(int argc, char** argv){
      MPI_Init(&argc,&argv);
      Epetra_MpiComm Comm(MPI_COMM_WORLD);

      int size = 2000;
      int base = 0;
      Epetra_Map *Map = new Epetra_Map(size,base,Comm);
     
      cout<<"Created Map "<<Map<<endl;
     
       MPI_Finalize();
 
  return 0;   
}


Error Message:
-----------------------------------------------------------------------------
One of the processes started by mpirun has exited with a nonzero exit
code.  This typically indicates that the process finished in error.
If your process did not finish in error, be sure to include a "return
0" or "exit(0)" in your C code before exiting the application.

PID 21647 failed on node n0 (127.0.0.1) due to signal 11.
-----------------------------------------------------------------------------

When I set the size to -1, which would allow Epetra to automatically
choose the size of the Map, i receive the following error message

Error in Epetra Object with label:  Epetra::BlockMap
Epetra Error:  NumGlobalElements = -1.  Should be >= 0.  Error Code:  -1
terminate called after throwing an instance of 'int'

Error in Epetra Object with label:  Epetra::BlockMap
Epetra Error:  NumGlobalElements = -1.  Should be >= 0.  Error Code:  -1
terminate called after throwing an instance of 'int'
-----------------------------------------------------------------------------
One of the processes started by mpirun has exited with a nonzero exit
code.  This typically indicates that the process finished in error.
If your process did not finish in error, be sure to include a "return
0" or "exit(0)" in your C code before exiting the application.

PID 21234 failed on node n0 (127.0.0.1) due to signal 6.
-----------------------------------------------------------------------------


Since the Map forms the basis of all Trilinos based operations, I am
stuck. I would greatly appreciate if some one could help me.

Installation details:
Trilinos version 7.0
Ubuntu Linux 6.06
LAM MPI

Thanks and Regards
Jagir




More information about the Trilinos-Users mailing list