Changeset 22558 for issm/trunk-jpl/src/c/toolkits/objects/Vector.h
- Timestamp:
- 03/18/18 14:28:54 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/toolkits/objects/Vector.h
r19977 r22558 98 98 void InitCheckAndSetType(void){ /*{{{*/ 99 99 100 char* toolkittype=NULL;101 102 100 #ifdef _HAVE_PETSC_ 103 101 pvector=NULL; … … 106 104 107 105 /*retrieve toolkittype: */ 108 toolkittype=ToolkitOptions::GetToolkitType(); 106 char* toolkittype=ToolkitOptions::GetToolkitType(); 107 _assert_(toolkittype); 109 108 110 109 /*set vector type: */ 111 if 110 if(strcmp(toolkittype,"petsc")==0){ 112 111 #ifdef _HAVE_PETSC_ 113 112 type=PetscVecType; … … 120 119 type=IssmVecType; 121 120 } 122 else _error_("unknow toolkit type "); 121 else{ 122 _error_("unknow toolkit type "); 123 } 123 124 124 125 /*Free ressources: */
Note:
See TracChangeset
for help on using the changeset viewer.