Skip to content

Commit 130a16b

Browse files
authored
Converts error to warning for unknown params (#94)
1 parent 5c0ebf9 commit 130a16b

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/common/namelistInput.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,9 @@ void readNamelistInputs(NamelistInputs *namelistInputs, const char *fileName) {
154154

155155
namelistInputItem = locateNamelistInputItem(namelistInputs, inputName);
156156
if (namelistInputItem == NULL) {
157-
printf("ERROR in readNamelistInputs: Read unexpected input item: %s\n",
158-
inputName);
159-
printf("Please fix %s and re-run\n", fileName);
160-
exit(1);
157+
printf("WARNING: ignoring unknown parameter %s in %s\n", inputName,
158+
fileName);
159+
continue;
161160
}
162161
// otherwise, we have found the item with this name
163162

0 commit comments

Comments
 (0)