(FIXED) ERROR, key=geoopt.restart value=logical |
- Date: 2023/11/01 13:26
- Name: kylin
<kylincaster@foxmail.com>
- Dear all,
While compiled with OpenMPI v4.1.6 and AMD clang version 16.0.3 (CLANG: AOCC_4.1.0-Build#270 2023_07_10) with the -O3 compilation flag, we encountered an issue with the input_logical function. The error message would be "ERROR, key=geoopt.restart value=logical."
During the testing, We found the sscanf function did not return the correct number of tokens; it returned -1 instead of the expected value. To resolve this, We made a modification by adding a printf function, and this resolved the issue. If you encounter a similar problem, you can consider applying the modifications I made as follows:
Best Regards, Kylin
=================== File Inputtools.c line: 187 =================== if (keylen == buflen && strncasecmp(key, key_inbuf, keylen) == 0) { if (nread != 2) { // Add a print function here printf("nread = %d, key = %s, return = %s %s\n", nread, key, key_inbuf, val_inbuf); goto ERROR; } } =================== End of File Inputtools.c ===================
| |