Changeset 16068
- Timestamp:
- 09/04/13 12:56:23 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/toolkits/mumps/MpiDenseMumpsSolve.cpp
r16066 r16068 20 20 /*}}}*/ 21 21 22 void Mumps Settings(DMUMPS_STRUC_C &theMumpsStruc,ISSM_MPI_Comm &comm) {22 void MumpsInit(DMUMPS_STRUC_C &theMumpsStruc) { 23 23 theMumpsStruc.par = 1; 24 24 theMumpsStruc.sym = 0; 25 theMumpsStruc.comm_fortran = MPI_Comm_c2f(comm); 25 theMumpsStruc.comm_fortran = MPI_Comm_c2f(IssmComm::GetComm()); 26 theMumpsStruc.job = -1; 27 dmumps_c(&theMumpsStruc); 28 } 29 30 // must be preceded by a call to MumpsInit 31 void MumpsSettings(DMUMPS_STRUC_C &theMumpsStruc) { 26 32 /*Control statements:{{{ */ 27 33 theMumpsStruc.icntl[1-1] = 6; //error verbose … … 35 41 theMumpsStruc.icntl[30-1] = 0; 36 42 /*}}}*/ 37 }38 39 // must be preceded by a call to MumpsSettings40 void MumpsInit(DMUMPS_STRUC_C &theMumpsStruc) {41 theMumpsStruc.job = -1;42 dmumps_c(&theMumpsStruc);43 43 } 44 44 … … 75 75 IssmPDouble *rhs) { 76 76 /*Initialize mumps: {{{*/ 77 ISSM_MPI_Comm comm=IssmComm::GetComm();78 77 DMUMPS_STRUC_C theMumpsStruc; 79 MumpsSettings(theMumpsStruc,comm);80 78 MumpsInit(theMumpsStruc); 79 MumpsSettings(theMumpsStruc); 81 80 /*}}}*/ 82 81 // now setup the rest of theMumpsStruc … … 195 194 rhs); 196 195 196 if (my_rank==0) for (int i=0;i<Kff_M;++i) std::cout << i << " : " << rhs[i] << std::endl; 197 197 /*Now scatter from cpu 0 to all other cpus: {{{*/ 198 198 ISSM_MPI_Scatterv( rhs, recvcounts, displs, ISSM_MPI_DOUBLE, uf, uf_m, ISSM_MPI_DOUBLE, 0, comm);
Note:
See TracChangeset
for help on using the changeset viewer.