Skip to content

Commit

Permalink
remove opm/grid/utility/ErrorMacros.hpp
Browse files Browse the repository at this point in the history
this was used to reimplement opm-common functionality.
since opm-common is now a hard dependency,
it no longer serves a role.
  • Loading branch information
akva2 committed Oct 18, 2019
1 parent d2ba636 commit 577f730
Show file tree
Hide file tree
Showing 17 changed files with 15 additions and 42 deletions.
1 change: 0 additions & 1 deletion CMakeLists_files.cmake
Expand Up @@ -203,7 +203,6 @@ list (APPEND PUBLIC_HEADER_FILES
opm/grid/utility/StopWatch.hpp
opm/grid/utility/VelocityInterpolation.hpp
opm/grid/utility/WachspressCoord.hpp
opm/grid/utility/ErrorMacros.hpp
opm/grid/utility/OpmParserIncludes.hpp
opm/grid/utility/platform_dependent/disable_warnings.h
opm/grid/utility/platform_dependent/reenable_warnings.h
Expand Down
2 changes: 1 addition & 1 deletion opm/grid/CellQuadrature.hpp
Expand Up @@ -21,7 +21,7 @@
#define OPM_CELLQUADRATURE_HEADER_INCLUDED

#include <opm/grid/UnstructuredGrid.h>
#include <opm/grid/utility/ErrorMacros.hpp>
#include <opm/common/ErrorMacros.hpp>
#include <algorithm>
#include <cmath>

Expand Down
2 changes: 1 addition & 1 deletion opm/grid/CpGrid.hpp
Expand Up @@ -42,7 +42,7 @@
#include <map>
#include <array>
#include <unordered_set>
#include <opm/grid/utility/ErrorMacros.hpp>
#include <opm/common/ErrorMacros.hpp>

// Warning suppression for Dune includes.
#include <opm/grid/utility/platform_dependent/disable_warnings.h>
Expand Down
2 changes: 1 addition & 1 deletion opm/grid/FaceQuadrature.hpp
Expand Up @@ -20,7 +20,7 @@
#ifndef OPM_FACEQUADRATURE_HEADER_INCLUDED
#define OPM_FACEQUADRATURE_HEADER_INCLUDED

#include <opm/grid/utility/ErrorMacros.hpp>
#include <opm/common/ErrorMacros.hpp>
#include <opm/grid/UnstructuredGrid.h>
#include <cmath>

Expand Down
2 changes: 1 addition & 1 deletion opm/grid/GridManager.cpp
Expand Up @@ -25,7 +25,7 @@
#include <opm/grid/cart_grid.h>
#include <opm/grid/cornerpoint_grid.h>
#include <opm/grid/MinpvProcessor.hpp>
#include <opm/grid/utility/ErrorMacros.hpp>
#include <opm/common/ErrorMacros.hpp>

#include <opm/grid/utility/OpmParserIncludes.hpp>

Expand Down
2 changes: 1 addition & 1 deletion opm/grid/MinpvProcessor.hpp
Expand Up @@ -21,7 +21,7 @@
#define OPM_MINPVPROCESSOR_HEADER_INCLUDED


#include <opm/grid/utility/ErrorMacros.hpp>
#include <opm/common/ErrorMacros.hpp>
#include <opm/grid/utility/OpmParserIncludes.hpp>

#include <array>
Expand Down
2 changes: 1 addition & 1 deletion opm/grid/common/GeometryHelpers.hpp
Expand Up @@ -39,7 +39,7 @@

#include <cmath>

#include <opm/grid/utility/ErrorMacros.hpp>
#include <opm/common/ErrorMacros.hpp>
#include "Volumes.hpp"

namespace Dune
Expand Down
2 changes: 1 addition & 1 deletion opm/grid/cpgrid/EntityRep.hpp
Expand Up @@ -69,7 +69,7 @@ namespace Dune


//#include <opm/core/utility/SparseTable.hpp>
#include <opm/grid/utility/ErrorMacros.hpp>
#include <opm/common/ErrorMacros.hpp>
#include <climits>
//#include <boost/algorithm/minmax_element.hpp>
#include <vector>
Expand Down
2 changes: 1 addition & 1 deletion opm/grid/cpgrid/Geometry.hpp
Expand Up @@ -52,7 +52,7 @@
#include <opm/grid/cpgrid/EntityRep.hpp>
#include <opm/grid/utility/platform_dependent/reenable_warnings.h>

#include <opm/grid/utility/ErrorMacros.hpp>
#include <opm/common/ErrorMacros.hpp>

namespace Dune
{
Expand Down
2 changes: 1 addition & 1 deletion opm/grid/cpgrid/Indexsets.hpp
Expand Up @@ -37,7 +37,7 @@ along with OPM. If not, see <http://www.gnu.org/licenses/>.
#define OPM_INDEXSETS_HEADER

#include <dune/geometry/type.hh>
#include <opm/grid/utility/ErrorMacros.hpp>
#include <opm/common/ErrorMacros.hpp>
#include "GlobalIdMapping.hpp"
#include "Intersection.hpp"

Expand Down
2 changes: 1 addition & 1 deletion opm/grid/cpgrid/Intersection.hpp
Expand Up @@ -41,7 +41,7 @@

#include <dune/grid/common/gridenums.hh>

#include <opm/grid/utility/ErrorMacros.hpp>
#include <opm/common/ErrorMacros.hpp>

// The next statement is a layering violation: we only #include
// preprocess.h to get at its "enum face_tag" definition. Enum
Expand Down
2 changes: 1 addition & 1 deletion opm/grid/cpgrid/Iterators.hpp
Expand Up @@ -38,7 +38,7 @@ along with OPM. If not, see <http://www.gnu.org/licenses/>.

#include <dune/grid/common/gridenums.hh>
#include "PartitionIteratorRule.hpp"
#include <opm/grid/utility/ErrorMacros.hpp>
#include <opm/common/ErrorMacros.hpp>

namespace Dune
{
Expand Down
2 changes: 1 addition & 1 deletion opm/grid/cpgrid/readSintefLegacyFormat.cpp
Expand Up @@ -40,7 +40,7 @@
#include <fstream>
#include <vector>

#include <opm/grid/utility/ErrorMacros.hpp>
#include <opm/common/ErrorMacros.hpp>
#include "CpGridData.hpp"

namespace Dune
Expand Down
2 changes: 1 addition & 1 deletion opm/grid/cpgrid/writeSintefLegacyFormat.cpp
Expand Up @@ -41,7 +41,7 @@
#include <fstream>
#include <vector>

#include <opm/grid/utility/ErrorMacros.hpp>
#include <opm/common/ErrorMacros.hpp>
#include "CpGridData.hpp"

namespace Dune
Expand Down
26 changes: 0 additions & 26 deletions opm/grid/utility/ErrorMacros.hpp

This file was deleted.

2 changes: 1 addition & 1 deletion opm/grid/utility/SparseTable.hpp
Expand Up @@ -39,7 +39,7 @@
#include <numeric>
#include <algorithm>
#include <boost/range/iterator_range.hpp>
#include <opm/grid/utility/ErrorMacros.hpp>
#include <opm/common/ErrorMacros.hpp>

#include <ostream>

Expand Down
2 changes: 1 addition & 1 deletion opm/grid/utility/StopWatch.cpp
Expand Up @@ -37,7 +37,7 @@
#endif
#include <boost/date_time/posix_time/posix_time.hpp>
#include <opm/grid/utility/StopWatch.hpp>
#include <opm/grid/utility/ErrorMacros.hpp>
#include <opm/common/ErrorMacros.hpp>

namespace Opm
{
Expand Down

0 comments on commit 577f730

Please sign in to comment.