mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Apply two ecllib patches after upgrade
This commit is contained in:
5
ThirdParty/Ert/CMakeLists.txt
vendored
5
ThirdParty/Ert/CMakeLists.txt
vendored
@@ -364,6 +364,9 @@ if (ENABLE_PYTHON)
|
|||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
install(EXPORT ecl-config DESTINATION share/cmake/ecl)
|
if (INSTALL_ERT)
|
||||||
|
install(EXPORT ecl-config DESTINATION share/cmake/ecl)
|
||||||
|
endif()
|
||||||
|
|
||||||
export(TARGETS ecl FILE eclConfig.cmake)
|
export(TARGETS ecl FILE eclConfig.cmake)
|
||||||
export(PACKAGE ecl)
|
export(PACKAGE ecl)
|
||||||
|
|||||||
3
ThirdParty/Ert/lib/CMakeLists.txt
vendored
3
ThirdParty/Ert/lib/CMakeLists.txt
vendored
@@ -193,7 +193,7 @@ endif ()
|
|||||||
set_target_properties(ecl PROPERTIES
|
set_target_properties(ecl PROPERTIES
|
||||||
VERSION ${ECL_VERSION_MAJOR}.${ECL_VERSION_MINOR}
|
VERSION ${ECL_VERSION_MAJOR}.${ECL_VERSION_MINOR}
|
||||||
SOVERSION ${ECL_VERSION_MAJOR})
|
SOVERSION ${ECL_VERSION_MAJOR})
|
||||||
|
if (INSTALL_ERT)
|
||||||
install(TARGETS ecl
|
install(TARGETS ecl
|
||||||
EXPORT ecl-config
|
EXPORT ecl-config
|
||||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||||
@@ -218,6 +218,7 @@ if (ERT_BUILD_CXX)
|
|||||||
PATTERN *.hpp
|
PATTERN *.hpp
|
||||||
)
|
)
|
||||||
endif ()
|
endif ()
|
||||||
|
endif()
|
||||||
|
|
||||||
if (NOT BUILD_TESTS)
|
if (NOT BUILD_TESTS)
|
||||||
return ()
|
return ()
|
||||||
|
|||||||
10
ThirdParty/Ert/lib/ecl/ecl_rsthead.cpp
vendored
10
ThirdParty/Ert/lib/ecl/ecl_rsthead.cpp
vendored
@@ -88,7 +88,10 @@ ecl_rsthead_type * ecl_rsthead_alloc_from_kw( int report_step , const ecl_kw_typ
|
|||||||
// The only derived quantity
|
// The only derived quantity
|
||||||
rsthead->sim_time = rsthead_date( rsthead->day , rsthead->month , rsthead->year );
|
rsthead->sim_time = rsthead_date( rsthead->day , rsthead->month , rsthead->year );
|
||||||
}
|
}
|
||||||
rsthead->sim_days = ecl_kw_iget_double( doubhead_kw , DOUBHEAD_DAYS_INDEX );
|
|
||||||
|
if (doubhead_kw)
|
||||||
|
rsthead->sim_days = ecl_kw_iget_double( doubhead_kw , DOUBHEAD_DAYS_INDEX );
|
||||||
|
|
||||||
if (logihead_kw)
|
if (logihead_kw)
|
||||||
rsthead->dualp = ecl_kw_iget_bool( logihead_kw , LOGIHEAD_DUALP_INDEX);
|
rsthead->dualp = ecl_kw_iget_bool( logihead_kw , LOGIHEAD_DUALP_INDEX);
|
||||||
|
|
||||||
@@ -109,12 +112,15 @@ ecl_rsthead_type * ecl_rsthead_alloc_from_kw( int report_step , const ecl_kw_typ
|
|||||||
|
|
||||||
ecl_rsthead_type * ecl_rsthead_alloc( const ecl_file_view_type * rst_view, int report_step) {
|
ecl_rsthead_type * ecl_rsthead_alloc( const ecl_file_view_type * rst_view, int report_step) {
|
||||||
const ecl_kw_type * intehead_kw = ecl_file_view_iget_named_kw( rst_view , INTEHEAD_KW , 0);
|
const ecl_kw_type * intehead_kw = ecl_file_view_iget_named_kw( rst_view , INTEHEAD_KW , 0);
|
||||||
const ecl_kw_type * doubhead_kw = ecl_file_view_iget_named_kw( rst_view , DOUBHEAD_KW , 0);
|
const ecl_kw_type * doubhead_kw = NULL;
|
||||||
const ecl_kw_type * logihead_kw = NULL;
|
const ecl_kw_type * logihead_kw = NULL;
|
||||||
|
|
||||||
if (ecl_file_view_has_kw(rst_view, LOGIHEAD_KW))
|
if (ecl_file_view_has_kw(rst_view, LOGIHEAD_KW))
|
||||||
logihead_kw = ecl_file_view_iget_named_kw( rst_view , LOGIHEAD_KW , 0);
|
logihead_kw = ecl_file_view_iget_named_kw( rst_view , LOGIHEAD_KW , 0);
|
||||||
|
|
||||||
|
if (ecl_file_view_has_kw(rst_view, DOUBHEAD_KW))
|
||||||
|
doubhead_kw = ecl_file_view_iget_named_kw(rst_view, DOUBHEAD_KW, 0);
|
||||||
|
|
||||||
if (ecl_file_view_has_kw( rst_view , SEQNUM_KW)) {
|
if (ecl_file_view_has_kw( rst_view , SEQNUM_KW)) {
|
||||||
const ecl_kw_type * seqnum_kw = ecl_file_view_iget_named_kw( rst_view , SEQNUM_KW , 0);
|
const ecl_kw_type * seqnum_kw = ecl_file_view_iget_named_kw( rst_view , SEQNUM_KW , 0);
|
||||||
report_step = ecl_kw_iget_int( seqnum_kw , 0);
|
report_step = ecl_kw_iget_int( seqnum_kw , 0);
|
||||||
|
|||||||
Reference in New Issue
Block a user