diff --git a/external/cosmotool/src/fortran.cpp b/external/cosmotool/src/fortran.cpp index 679f409..716d57b 100644 --- a/external/cosmotool/src/fortran.cpp +++ b/external/cosmotool/src/fortran.cpp @@ -78,6 +78,7 @@ int64_t UnformattedRead::position() const void UnformattedRead::seek(int64_t pos) { + f->clear(); f->seekg(pos, istream::beg); checkPointRef = checkPointAccum = 0; }