how to compile a c++ program #91
-
#include #include "mpi.h" #define JOB_INIT -1 int main(int argc, char ** argv) /* When compiling with -DINTSIZE64, MUMPS_INT is 64-bit but MPI ierr = MPI_Init(&argc, &argv); /* Initialize a MUMPS instance. Use MPI_COMM_WORLD */ /* Define the problem on the host / /* Call the MUMPS package (analyse, factorization and solve). */ if (id.infog[0]<0) { /* Terminate instance. */ |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
so i have to modify my c++ code into c style to complie? |
Beta Was this translation helpful? Give feedback.
No, I added an example at the bottom of Readme.md just now
To build the example, first "install" the MUMPS package-the default install location is under the MUMPS build/local directory:
Using binary libraries
Linking the MUMPS binaries into a user-program is project-dependant.
An example using the examples in this project with GNU GCC, using the "mpicxx" MPI compiler wrapper: