added header check

This commit is contained in:
James E McClure
2019-03-26 15:20:06 -04:00
parent 7f9518e070
commit 6b8ea6bdf0

View File

@@ -31,7 +31,7 @@ SubPhase::SubPhase(std::shared_ptr <Domain> dm):
bool WriteHeader=false;
SUBPHASE = fopen("subphase.csv","r");
if (SUBPHASE != NULL)
SUBPHASE.close();
fclose(SUBPHASE);
else
WriteHeader=true;