40{
41#endif
47 double a[2];
48 double rhs[2];
49
50
51
52
54
56#if defined(MAIN_COMP)
58#endif
61
62 rhs[0]=1.0;rhs[1]=4.0;
63 a[0]=1.0;a[1]=2.0;
64
65
67 id.par=1; id.sym=0;
70
71
72 if (myid == 0) {
73 id.n =
n;
id.nnz =nnz;
id.irn=irn;
id.jcn=jcn;
74 id.a = a; id.rhs = rhs;
75 }
76#define ICNTL(I) icntl[(I)-1]
77
78 id.ICNTL(1)=-1; id.ICNTL(2)=-1; id.ICNTL(3)=-1; id.ICNTL(4)=0;
79
80
81 id.job=6;
83 if (id.infog[0]<0) {
84 printf(" (PROC %d) ERROR RETURN: \tINFOG(1)= %d\n\t\t\t\tINFOG(2)= %d\n",
85 myid, id.infog[0], id.infog[1]);
87 }
88
89
92 if (myid == 0) {
93 if (!error) {
94 printf("Solution is : (%8.2f %8.2f)\n", rhs[0],rhs[1]);
95 } else {
96 printf("An error has occured, please check error code returned by MUMPS.\n");
97 }
98 }
100 return 0;
101}
void MUMPS_CALL dmumps_c(DMUMPS_STRUC_C *dmumps_par)
LIBSEQ_INT LIBSEQ_CALL MPI_Comm_rank(LIBSEQ_INT comm, LIBSEQ_INT *rank)
LIBSEQ_INT LIBSEQ_CALL MPI_Finalize(void)
static MPI_Comm MPI_COMM_WORLD
LIBSEQ_INT LIBSEQ_CALL MPI_Init(LIBSEQ_INT *pargc, char ***pargv)
integer, save, private myid