[Trilinos-Users] Is this a bug?

Mike Sussman mmsussman at gmail.com
Thu Sep 1 09:23:42 MDT 2011


Hello,

The following code aborts on my system when CAUSE_ABORT is defined and
not otherwise.  Is this a bug?  If so, is it known?  Has it been fixed
on later versions?

I am running version 10.0.0 on a Kubuntu 10.04 Linux laptop.  Trilinos
came from the repository.  I ran the code on a single process.

#include <iostream>
#include "Epetra_ConfigDefs.h"
#include "mpi.h"
#include "Epetra_MpiComm.h"
#include "Epetra_SerialDenseVector.h"

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

  Epetra_SerialDenseVector x(5), b(5);

  x.Random();

//#define CAUSE_ABORT
#ifdef CAUSE_ABORT
  x.SetLabel("x\n");
#endif

  b=x;

  MPI_Finalize();
}





More information about the Trilinos-Users mailing list