Changeset 25390


Ignore:
Timestamp:
08/13/20 15:19:27 (5 years ago)
Author:
Mathieu Morlighem
Message:

CHG: added error message if wrong toolkit is used

Location:
issm/trunk-jpl/src/c/toolkits
Files:
2 edited

Legend:

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

    r23643 r25390  
    158158                IssmVec<doubletype>* Duplicate(void){/*{{{*/
    159159
     160                        _assert_(this);
    160161                        IssmVec<doubletype>* issmvector=NULL;
    161162
  • issm/trunk-jpl/src/c/toolkits/petsc/objects/PetscSolver.cpp

    r23308 r25390  
    3636
    3737        /*Output: */
    38         Vec        uf               = NULL;
     38        Vec        uf = NULL;
    3939
    4040        /*Intermediary: */
     
    8383        PetscOptionsGetString(NULL,PETSC_NULL,"-ksp_type",ksp_type,49,&flg);
    8484        #endif
    85         if (strcmp(ksp_type,"preonly")==0)uf0=NULL;
     85        if(flg!=PETSC_TRUE) _error_("could not find option -ksp_type, maybe you are not using the right toolkit?");
     86        if (strcmp(ksp_type,"preonly")==0) uf0=NULL;
    8687
    8788        /*If initial guess for the solution exists, use it to create uf, otherwise,
Note: See TracChangeset for help on using the changeset viewer.