Skip to content

Commit edc9e45

Browse files
authored
Add "undefined" as an option for generator fuel (#139)
1 parent aa2bc3e commit edc9e45

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/ps/psoutput.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -221,9 +221,7 @@ PetscErrorCode PSSaveSolution_MATPOWER(PS ps, const char outfile[]) {
221221
break;
222222
case GENFUEL_UNDEFINED:
223223
default:
224-
SETERRQ(PETSC_COMM_SELF, PETSC_ERR_FILE_OPEN,
225-
"Generator fuel type (%d) not understod", gfuel);
226-
CHKERRQ(ierr);
224+
fprintf(fd, "\t\"undefined\"");
227225
break;
228226
}
229227
fprintf(fd, ";\n");

0 commit comments

Comments
 (0)