silence compiler warning

This commit is contained in:
Axel Kohlmeyer
2019-10-20 19:00:54 -04:00
parent c144b1af71
commit 08b55c4ca5

View File

@ -161,8 +161,8 @@ void OutputManager::read_restart_file(string fileName, RESTART_LIST *data)
for (int i = 0; i < field_data->nRows(); ++i) {
for (int j = 0; j < field_data->nCols(); ++j) {
double myVal;
fread(&myVal,sizeof(double),1,fp);
(*field_data)(i,j) = myVal;
if (fread(&myVal,sizeof(double),1,fp) == 1)
(*field_data)(i,j) = myVal;
}
}