Changeset 14882
- Timestamp:
- 05/03/13 21:41:19 (12 years ago)
- Location:
- issm/trunk-jpl/src/c
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/modules/ParseToolkitsOptionsx/ParseToolkitsOptionsx.cpp
r14627 r14882 101 101 MPI_Bcast(&numanalyses,1,MPI_INT,0,IssmComm::GetComm()); 102 102 if(my_rank!=0){ 103 analyses=xNew<Issm PDouble>(numanalyses);103 analyses=xNew<IssmDouble>(numanalyses); 104 104 strings=xNew<char*>(numanalyses); 105 105 } -
issm/trunk-jpl/src/c/toolkits/mumps/MpiDenseMumpsSolve.cpp
r14873 r14882 21 21 #include "dmumps_c.h" 22 22 23 /*}}}*/24 23 25 24 #define JOB_INIT -1 26 25 #define JOB_SOLVE 6 27 26 #define JOB_END -2 27 /*}}}*/ 28 28 29 void MpiDenseMumpsSolve( /*output: */ Issm Double* uf, int uf_M, int uf_m, /*matrix input: */ IssmDouble* Kff, int Kff_M, int Kff_N, int Kff_m, /*right hand side vector: */ IssmDouble* pf, int pf_M, int pf_m){29 void MpiDenseMumpsSolve( /*output: */ IssmPDouble* uf, int uf_M, int uf_m, /*matrix input: */ IssmPDouble* Kff, int Kff_M, int Kff_N, int Kff_m, /*right hand side vector: */ IssmPDouble* pf, int pf_M, int pf_m){ /*{{{*/ 30 30 31 /*Variables: */31 /*Variables: {{{*/ 32 32 33 33 … … 40 40 int *irn_loc = NULL; 41 41 int *jcn_loc = NULL; 42 Issm Double *a_loc = NULL;42 IssmPDouble *a_loc = NULL; 43 43 int count; 44 44 int lower_row; 45 45 int upper_row; 46 Issm Double* rhs=NULL;46 IssmPDouble* rhs=NULL; 47 47 int* recvcounts=NULL; 48 48 int* displs=NULL; 49 49 /*}}}*/ 50 /*Communicator info:{{{ */ 50 51 my_rank=IssmComm::GetRank(); 51 52 num_procs=IssmComm::GetSize(); 52 53 comm=IssmComm::GetComm(); 53 54 /*}}}*/ 54 55 /*First, some checks:{{{ */ 55 56 if (Kff_M!=Kff_N)_error_("stiffness matrix Kff should be square"); … … 97 98 irn_loc=xNew<int>(local_nnz); 98 99 jcn_loc=xNew<int>(local_nnz); 99 a_loc=xNew<Issm Double>(local_nnz);100 a_loc=xNew<IssmPDouble>(local_nnz); 100 101 } 101 102 … … 119 120 120 121 /*Deal with right hand side. We need to MPI_Gather it onto cpu 0: */ 121 rhs=xNew<Issm Double>(pf_M);122 rhs=xNew<IssmPDouble>(pf_M); 122 123 123 124 recvcounts=xNew<int>(num_procs); … … 145 146 146 147 /*}}}*/ 147 /*}}}*/148 148 /*Cleanup: {{{*/ 149 149 id.job = JOB_END; … … 152 152 xDelete<int>(irn_loc); 153 153 xDelete<int>(jcn_loc); 154 xDelete<Issm Double>(a_loc);155 xDelete<Issm Double>(rhs);154 xDelete<IssmPDouble>(a_loc); 155 xDelete<IssmPDouble>(rhs); 156 156 xDelete<int>(recvcounts); 157 157 xDelete<int>(displs); 158 158 159 159 /*}}}*/ 160 } 160 } /*}}}*/ 161 161 162 #ifdef _HAVE_ADOLC_ 163 void MpiDenseMumpsSolve( /*output: */ IssmDouble* uf, int uf_M, int uf_m, /*matrix input: */ IssmDouble* Kff, int Kff_M, int Kff_N, int Kff_m, /*right hand side vector: */ IssmDouble* pf, int pf_M, int pf_m){ /*{{{*/ 164 _error_("not supported yet!"); 165 } /*}}}*/ 166 #endif
Note:
See TracChangeset
for help on using the changeset viewer.