Changeset 13571


Ignore:
Timestamp:
10/09/12 17:01:00 (12 years ago)
Author:
habbalf
Message:

BUG: PETSc options ending in 'n' were cut off and not recognized

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/toolkits/petsc/patches/PetscOptionsInsertMultipleString.cpp

    r13056 r13571  
    5959                        /*Reduce first to bare option value*/
    6060                        PetscStrlen(first,&len);
    61                         while (len > 0 && (first[len-1] == ' ' || first[len-1] == 'n')) {
     61                        while (len > 0 && first[len-1] == ' ') {
    6262                                len--; first[len] = 0;
    6363                        }
     
    7070                                /*Second is another option, ignore it*/
    7171                                PetscStrlen(first,&len);
    72                                 while (len > 0 && (first[len-1] == ' ' || first[len-1] == 'n')) {
     72                                while (len > 0 && first[len-1] == ' ' ) {
    7373                                        len--; first[len] = 0;
    7474                                }
     
    8181                                /*Second is 'first' option's value*/
    8282                                PetscStrlen(second,&len);
    83                                 while (len > 0 && (second[len-1] == ' ' || second[len-1] == 'n')) {
     83                                while (len > 0 && second[len-1] == ' ') {
    8484                                        len--; second[len] = 0;
    8585                                }
Note: See TracChangeset for help on using the changeset viewer.