49 int main(
int argc,
char *argv[]) {
53 int NumGlobalElements;
58 MPI_Init(&argc,&argv);
70 NumGlobalElements = 2*NumProc;
79 printf(
"Contents of X vector\n");
83 printf(
"Contents of Y vector\n");
90 printf(
"Sum of X and Y vectors\n");
void MANGLE() epetra_vector_destroy(EPETRA_OBJECT_REF x)
EPETRA_OBJECT_PTR MANGLE() epetra_serialcomm_create()
int MANGLE() epetra_comm_numproc(EPETRA_OBJECT_REF comm)
void MANGLE() epetra_comm_destroy(EPETRA_OBJECT_REF comm)
void MANGLE() epetra_vector_print(EPETRA_OBJECT_REF x)
EPETRA_OBJECT_PTR MANGLE() epetra_map_create1(EPETRA_INT numGlobalElements, EPETRA_INT indexBase, EPETRA_OBJECT_REF comm)
Epetra_Map.
EPETRA_OBJECT_PTR MANGLE() epetra_vector_create1(EPETRA_OBJECT_REF map)
Epetra_Vector.
int MANGLE() epetra_comm_mypid(EPETRA_OBJECT_REF comm)
int MANGLE() epetra_vector_random(EPETRA_OBJECT_REF x)
int MANGLE() epetra_vector_update(EPETRA_OBJECT_REF x, EPETRA_DOUBLE scalara, EPETRA_OBJECT_REF a, EPETRA_DOUBLE scalarb, EPETRA_OBJECT_REF b, EPETRA_DOUBLE scalarx)
int main(int argc, char *argv[])
EPETRA_OBJECT_PTR MANGLE() epetra_mpicomm_create2(MPI_Comm *comm)
void MANGLE() epetra_map_destroy(EPETRA_OBJECT_REF map)