Changeset 14634
- Timestamp:
- 04/17/13 15:10:57 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/modules/Chacox/input_parse.cpp
r13622 r14634 49 49 *architecture = (int)options[OPT_ARCH]; 50 50 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); 53 52 return(-1); 54 53 } … … 85 84 *global_method = (int)options[OPT_GLOBAL]; 86 85 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); 89 87 return(-1); 90 88 } … … 109 107 eigensolver = (int)options[OPT_RQI]; 110 108 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); 113 110 return(-1); 114 111 } … … 123 120 *vmax = (int)options[OPT_VMAX]; 124 121 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); 127 123 return(-1); 128 124 } … … 142 138 *vmax = (int)options[OPT_VMAX]; 143 139 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); 146 141 return(-1); 147 142 } … … 173 168 *local_method = (int)options[OPT_LOCAL]; 174 169 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); 177 171 return(-1); 178 172 } … … 232 226 *ndims = (int)options[OPT_NDIMS]; 233 227 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); 236 229 return(-1); 237 230 } … … 246 239 *ndims = (int)options[OPT_NDIMS]; 247 240 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); 250 242 return(-1); 251 243 }
Note:
See TracChangeset
for help on using the changeset viewer.