Changeset 14634


Ignore:
Timestamp:
04/17/13 15:10:57 (12 years ago)
Author:
Mathieu Morlighem
Message:

CHG: fixed compiler warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/modules/Chacox/input_parse.cpp

    r13622 r14634  
    4949        *architecture = (int)options[OPT_ARCH];
    5050        if (*architecture < 0 || *architecture > 3) {
    51                 printf("%s -- Architecture %d must be between 0 and 3.\n",
    52                            __FUNCT__,options[OPT_ARCH]);
     51                printf("%s -- Architecture %d must be between 0 and 3.\n",__FUNCT__,*architecture);
    5352                return(-1);
    5453        }
     
    8584                *global_method = (int)options[OPT_GLOBAL];
    8685                if (*global_method < 1 || *global_method > 7) {
    87                         printf("%s -- Global method %d must be between 1 and 7.\n",
    88                                    __FUNCT__,options[OPT_GLOBAL]);
     86                        printf("%s -- Global method %d must be between 1 and 7.\n",__FUNCT__,*global_method);
    8987                        return(-1);
    9088                }
     
    109107                eigensolver = (int)options[OPT_RQI];
    110108                if (eigensolver < 0 || eigensolver > 2) {
    111                         printf("%s -- RQI/Symmlq flag %d must be between 0 and 2.\n",
    112                                    __FUNCT__,options[OPT_RQI]);
     109                        printf("%s -- RQI/Symmlq flag %d must be between 0 and 2.\n",__FUNCT__,eigensolver);
    113110                        return(-1);
    114111                }
     
    123120                        *vmax = (int)options[OPT_VMAX];
    124121                        if (*vmax <= 0) {
    125                                 printf("%s -- Vmax %d must be greater then 0.\n",
    126                                            __FUNCT__,options[OPT_VMAX]);
     122                                printf("%s -- Vmax %d must be greater then 0.\n",__FUNCT__,*vmax);
    127123                                return(-1);
    128124                        }
     
    142138                *vmax = (int)options[OPT_VMAX];
    143139                if (*vmax <= 0) {
    144                         printf("%s -- Vmax %d must be greater then 0.\n",
    145                                    __FUNCT__,options[OPT_VMAX]);
     140                        printf("%s -- Vmax %d must be greater then 0.\n",__FUNCT__,*vmax);
    146141                        return(-1);
    147142                }
     
    173168                *local_method = (int)options[OPT_LOCAL];
    174169                if (*local_method < 1 || *local_method > 2) {
    175                         printf("%s -- Local method %d must be 1 and 2.\n",
    176                                    __FUNCT__,options[OPT_LOCAL]);
     170                        printf("%s -- Local method %d must be 1 and 2.\n",__FUNCT__,*local_method);
    177171                        return(-1);
    178172                }
     
    232226                *ndims = (int)options[OPT_NDIMS];
    233227                if (*ndims < 1 || *ndims > 2) {
    234                         printf("%s -- Ndims %d must be 1 or 2 for %d processors.\n",
    235                                    __FUNCT__,options[OPT_NDIMS],*nprocs);
     228                        printf("%s -- Ndims %d must be 1 or 2 for %d processors.\n",__FUNCT__,*ndims,*nprocs);
    236229                        return(-1);
    237230                }
     
    246239                *ndims = (int)options[OPT_NDIMS];
    247240                if (*ndims < 1 || *ndims > 3) {
    248                         printf("%s -- Ndims %d must be between 1 and 3 for %d processors.\n",
    249                                    __FUNCT__,options[OPT_NDIMS],*nprocs);
     241                        printf("%s -- Ndims %d must be between 1 and 3 for %d processors.\n",__FUNCT__,*ndims,*nprocs);
    250242                        return(-1);
    251243                }
Note: See TracChangeset for help on using the changeset viewer.