@@ -72,7 +72,7 @@ list(APPEND MAIN_SOURCE_FILES
7272 opm/grid/utility/WachspressCoord.cpp
7373)
7474
75- if (opm-common_FOUND )
75+ if (USE_OPM_COMMON )
7676 list (APPEND MAIN_SOURCE_FILES
7777 opm/grid/utility/VelocityInterpolation.cpp
7878 opm/grid/transmissibility/trans_tpfa.c
@@ -84,7 +84,6 @@ endif()
8484list (APPEND TEST_SOURCE_FILES
8585 tests/p2pcommunicator_test.cc
8686 tests/test_cartgrid.cpp
87- tests/test_cellCentroid_polyhedralGrid.cpp
8887 tests/test_column_extract.cpp
8988 tests/test_communication_utils.cpp
9089 tests/test_compressed_cartesian_mapping.cpp
@@ -94,7 +93,6 @@ list(APPEND TEST_SOURCE_FILES
9493 tests/test_graphofgrid.cpp
9594 tests/test_graphofgrid_parallel.cpp
9695 tests/test_gridutilities.cpp
97- tests/test_lookupdata_polyhedral.cpp
9896 tests/test_minpvprocessor.cpp
9997 tests/test_polyhedralgrid.cpp
10098 tests/test_process_grdecl.cpp
@@ -103,7 +101,6 @@ list(APPEND TEST_SOURCE_FILES
103101 tests/test_sparsetable.cpp
104102 tests/test_subgridpart.cpp
105103 tests/cpgrid/distribution_test.cpp
106- tests/cpgrid/eclCentroid_test.cpp
107104 tests/cpgrid/entityrep_test.cpp
108105 tests/cpgrid/entity_test.cpp
109106 tests/cpgrid/facetag_test.cpp
@@ -113,42 +110,45 @@ list(APPEND TEST_SOURCE_FILES
113110 tests/cpgrid/shifted_cart_test.cpp
114111 tests/cpgrid/zoltan_test.cpp
115112 tests/cpgrid/lgr/adapt_cpgrid_test.cpp
116- tests/cpgrid/lgr/addLgrs_if_non_nnc_in_lgrs_test.cpp
117113 tests/cpgrid/lgr/addLgrs_in_allActiveCartesianGrid_test.cpp
118114 tests/cpgrid/lgr/addLgrsOnDistributedGrid_test.cpp
119115 tests/cpgrid/lgr/autoRefine_test.cpp
120- tests/cpgrid/lgr/communicate_distributed_grid_with_lgrs_test.cpp
121- tests/cpgrid/lgr/distribute_level_zero_from_grid_with_lgrs_and_wells_test.cpp
122- tests/cpgrid/lgr/distribute_level_zero_from_grid_with_lgrs_test.cpp
123116 tests/cpgrid/lgr/global_refine_test.cpp
124- tests/cpgrid/lgr/grid_global_id_set_test.cpp
125117 tests/cpgrid/lgr/id_entity_entityrep_test.cpp
126118 tests/cpgrid/lgr/level_and_grid_cartesianIndexMappers_test.cpp
127- tests/cpgrid/lgr/levelCartToLevelCompressed_test.cpp
128- tests/cpgrid/lgr/lgrIJK_test.cpp
129- tests/cpgrid/lgr/lgr_cartesian_idx_test.cpp
130- tests/cpgrid/lgr/lgr_cell_id_sync_test.cpp
131- tests/cpgrid/lgr/lgr_coord_zcorn_test.cpp
132- tests/cpgrid/lgr/lgr_with_inactive_parent_cells_test.cpp
133119 tests/cpgrid/lgr/lgrs_sharing_faces_test.cpp
134120 tests/cpgrid/lgr/logicalCartesianSize_and_refinement_test.cpp
135- tests/cpgrid/lgr/lookUpCellCentroid_cpgrid_test.cpp
136- tests/cpgrid/lgr/lookupdataCpGrid_test.cpp
137- tests/cpgrid/lgr/mapLevelIndicesToCartesianOutputOrder_test.cpp
138121 tests/cpgrid/lgr/nested_refinement_test.cpp
139- tests/cpgrid/lgr/refine_hexahedron_with_non_rectangular_faces_test.cpp
140122 tests/cpgrid/lgr/replace_lgr1_corner_idx_by_lgr2_corner_idx_test.cpp
141123 tests/cpgrid/lgr/replace_lgr1_face_idx_by_lgr2_face_idx_test.cpp
142- tests/cpgrid/lgr/restrict_data_to_level_grids_test.cpp
143- tests/cpgrid/lgr/save_lgr_coord_zcorn_test.cpp
144124)
145125
146- if (HAVE_ECL_INPUT )
126+ if (USE_OPM_COMMON )
147127 list (APPEND TEST_SOURCE_FILES
148128 tests/test_regionmapping.cpp
149129 tests/test_ug.cpp
130+ tests/test_cellCentroid_polyhedralGrid.cpp
131+ tests/test_lookupdata_polyhedral.cpp
150132 tests/cpgrid/grid_nnc.cpp
151133 tests/cpgrid/grid_pinch.cpp
134+ tests/cpgrid/lgr/communicate_distributed_grid_with_lgrs_test.cpp
135+ tests/cpgrid/lgr/distribute_level_zero_from_grid_with_lgrs_test.cpp
136+ tests/cpgrid/lgr/distribute_level_zero_from_grid_with_lgrs_and_wells_test.cpp
137+ tests/cpgrid/lgr/grid_global_id_set_test.cpp
138+ tests/cpgrid/lgr/levelCartToLevelCompressed_test.cpp
139+ tests/cpgrid/lgr/lgr_cell_id_sync_test.cpp
140+ tests/cpgrid/lgr/mapLevelIndicesToCartesianOutputOrder_test.cpp
141+ tests/cpgrid/lgr/restrict_data_to_level_grids_test.cpp
142+ tests/cpgrid/eclCentroid_test.cpp
143+ tests/cpgrid/lgr/addLgrs_if_non_nnc_in_lgrs_test.cpp
144+ tests/cpgrid/lgr/lgrIJK_test.cpp
145+ tests/cpgrid/lgr/lgr_cartesian_idx_test.cpp
146+ tests/cpgrid/lgr/lgr_coord_zcorn_test.cpp
147+ tests/cpgrid/lgr/lgr_with_inactive_parent_cells_test.cpp
148+ tests/cpgrid/lgr/lookUpCellCentroid_cpgrid_test.cpp
149+ tests/cpgrid/lgr/lookupdataCpGrid_test.cpp
150+ tests/cpgrid/lgr/refine_hexahedron_with_non_rectangular_faces_test.cpp
151+ tests/cpgrid/lgr/save_lgr_coord_zcorn_test.cpp
152152 )
153153endif ()
154154
@@ -169,18 +169,18 @@ list(APPEND TEST_DATA_FILES
169169# find tutorials examples -name '*.c*' -printf '\t%p\n' | sort
170170list (APPEND EXAMPLE_SOURCE_FILES
171171 examples/finitevolume/finitevolume.cc
172- examples/mirror_grid.cpp
173172 examples/griditer.cpp
174173)
175174
176- # programs listed here will not only be compiled, but also marked for
177- # installation
178- list (APPEND PROGRAM_SOURCE_FILES
179- examples/mirror_grid.cpp
180- )
181- if (HAVE_ECL_INPUT)
182- list (APPEND EXAMPLE_SOURCE_FILES examples/grdecl2vtu.cpp)
183- list (APPEND PROGRAM_SOURCE_FILES examples/grdecl2vtu.cpp)
175+ if (USE_OPM_COMMON)
176+ list (APPEND EXAMPLE_SOURCE_FILES
177+ examples/grdecl2vtu.cpp
178+ examples/mirror_grid.cpp
179+ )
180+ list (APPEND PROGRAM_SOURCE_FILES
181+ examples/grdecl2vtu.cpp
182+ examples/mirror_grid.cpp
183+ )
184184endif ()
185185
186186# originally generated with the command:
@@ -215,8 +215,6 @@ list(APPEND PUBLIC_HEADER_FILES
215215 opm/grid/cpgrid/Iterators.hpp
216216 opm/grid/cpgrid/LgrHelpers.hpp
217217 opm/grid/cpgrid/LgrOutputHelpers.hpp
218- opm/grid/LookUpCellCentroid.hh
219- opm/grid/LookUpData.hh
220218 opm/grid/cpgrid/ElementMarkHandle.hpp
221219 opm/grid/cpgrid/OrientedEntityTable.hpp
222220 opm/grid/cpgrid/ParentToChildrenCellGlobalIdHandle.hpp
@@ -275,7 +273,9 @@ list(APPEND PUBLIC_HEADER_FILES
275273 opm/grid/utility/cartesianToCompressed.hpp
276274 opm/grid/utility/createThreadIterators.hpp
277275 opm/grid/utility/ElementChunks.hpp
276+ opm/grid/utility/ErrorMacros.hpp
278277 opm/grid/utility/IteratorRange.hpp
278+ opm/grid/utility/OpmLog.hpp
279279 opm/grid/utility/OpmWellType.hpp
280280 opm/grid/utility/RegionMapping.hpp
281281 opm/grid/utility/SparseTable.hpp
@@ -286,3 +286,10 @@ list(APPEND PUBLIC_HEADER_FILES
286286 opm/grid/utility/platform_dependent/disable_warnings.h
287287 opm/grid/utility/platform_dependent/reenable_warnings.h
288288)
289+
290+ if (USE_OPM_COMMON)
291+ list (APPEND PUBLIC_HEADER_FILES
292+ opm/grid/LookUpCellCentroid.hh
293+ opm/grid/LookUpData.hh
294+ )
295+ endif ()
0 commit comments