Ignore:
Timestamp:
03/18/18 14:28:54 (7 years ago)
Author:
Mathieu Morlighem
Message:

CHG: better handling of toolkits, now remove option toolkit from options so that mkl does not get confused

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/toolkits/objects/Vector.h

    r19977 r22558  
    9898                void InitCheckAndSetType(void){ /*{{{*/
    9999
    100                         char* toolkittype=NULL;
    101 
    102100                        #ifdef _HAVE_PETSC_
    103101                        pvector=NULL;
     
    106104
    107105                        /*retrieve toolkittype: */
    108                         toolkittype=ToolkitOptions::GetToolkitType();
     106                        char* toolkittype=ToolkitOptions::GetToolkitType();
     107                        _assert_(toolkittype);
    109108
    110109                        /*set vector type: */
    111                         if (strcmp(toolkittype,"petsc")==0){
     110                        if(strcmp(toolkittype,"petsc")==0){
    112111                                #ifdef _HAVE_PETSC_
    113112                                type=PetscVecType;
     
    120119                                type=IssmVecType;
    121120                        }
    122                         else _error_("unknow toolkit type ");
     121                        else{
     122                                _error_("unknow toolkit type ");
     123                        }
    123124
    124125                        /*Free ressources: */
Note: See TracChangeset for help on using the changeset viewer.