mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5015 libecl : Make sure *.UNSMRY is closed properly after data is read
Earlier attempts to fix this caused major performance issues. Now closing the file stream when reading of vector data is completed, seems to work as expected.
This commit is contained in:
parent
4c9048cd6a
commit
157219e63d
4
ThirdParty/Ert/lib/ecl/ecl_unsmry_loader.cpp
vendored
4
ThirdParty/Ert/lib/ecl/ecl_unsmry_loader.cpp
vendored
@ -65,6 +65,10 @@ std::vector<double> unsmry_loader::get_vector(int pos) const {
|
||||
data[index] = *data_value;
|
||||
}
|
||||
int_vector_free( index_map );
|
||||
|
||||
if (ecl_file_view_flags_set(file_view, ECL_FILE_CLOSE_STREAM))
|
||||
ecl_file_view_fclose_stream(file_view);
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user