Changeset 23237
- Timestamp:
- 09/10/18 13:47:51 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/toolkits/issm/IssmToolkitUtils.cpp
r16415 r23237 86 86 int IssmSolverTypeFromToolkitOptions(void){ /*{{{*/ 87 87 88 char* solver_type=NULL;89 88 int solver_type_enum; 90 int num_procs=0;91 89 bool isparallel=false; 92 90 93 91 /*first, figure out if we are running in parallel: */ 94 num_procs=IssmComm::GetSize();92 int num_procs=IssmComm::GetSize(); 95 93 if(num_procs>1)isparallel=true; 96 94 97 95 /*retrieve solver type as a string, from the Toolkits Options database, similar to what Petsc does. Actually, 98 96 *we try and stick with the Petsc vector types: */ 99 solver_type=ToolkitOptions::GetToolkitOptionValue("solver_type"); 97 char* solver_type=ToolkitOptions::GetToolkitOptionValue("solver_type"); 98 if(!solver_type) _error_("Solver not set"); 100 99 101 100 if (strcmp(solver_type,"mumps")==0){
Note:
See TracChangeset
for help on using the changeset viewer.