Skip to content

Commit

Permalink
adjustments for moved eclipse support (now in opm-common)
Browse files Browse the repository at this point in the history
  • Loading branch information
akva2 committed Mar 5, 2018
1 parent 4da1fe0 commit 29a3083
Show file tree
Hide file tree
Showing 31 changed files with 69 additions and 74 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ add_custom_target(opm-material_prepare)

opm_add_test(test_blackoilfluidstate)
opm_add_test(test_ConditionalStorage)
opm_add_test(test_eclblackoilfluidsystem CONDITION OPM_PARSER_FOUND)
opm_add_test(test_eclblackoilpvt CONDITION OPM_PARSER_FOUND)
opm_add_test(test_eclmateriallawmanager CONDITION OPM_PARSER_FOUND)
opm_add_test(test_eclblackoilfluidsystem CONDITION HAVE_ECL_INPUT)
opm_add_test(test_eclblackoilpvt CONDITION HAVE_ECL_INPUT)
opm_add_test(test_eclmateriallawmanager CONDITION HAVE_ECL_INPUT)
opm_add_test(test_fluidmatrixinteractions)
opm_add_test(test_pengrobinson)
opm_add_test(test_densead)
Expand Down
2 changes: 1 addition & 1 deletion debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Build-Depends: build-essential, debhelper (>= 9), libboost-filesystem-dev,
libdune-common-dev, libdune-istl-dev, cmake, bc,
libecl-dev, git, zlib1g-dev, libtool, doxygen,
texlive-latex-extra, texlive-latex-recommended, ghostscript,
libopm-parser-dev, libboost-iostreams-dev, mpi-default-dev,
libboost-iostreams-dev, mpi-default-dev,
mpi-default-bin
Standards-Version: 3.9.2
Section: libs
Expand Down
2 changes: 1 addition & 1 deletion dune.module
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ Maintainer: [email protected]
MaintainerName: The Open Porous Media Project
Url: http://opm-project.org
Depends: dune-common (>= 2.4)
Suggests: opm-common opm-parser
Suggests: opm-common
12 changes: 4 additions & 8 deletions jenkins/build.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
#!/bin/bash

declare -a upstreams
upstreams=(opm-common
libecl
opm-parser)
upstreams=(libecl
opm-common)

declare -A upstreamRev
upstreamRev[opm-common]=master
upstreamRev[libecl]=master
upstreamRev[opm-parser]=master
upstreamRev[opm-common]=master

if grep -q "opm-common=" <<< $ghprbCommentBody
then
Expand All @@ -17,14 +15,12 @@ fi

# Downstream revisions
declare -a downstreams
downstreams=(opm-output
opm-grid
downstreams=(opm-grid
ewoms
opm-simulators
opm-upscaling)

declare -A downstreamRev
downstreamRev[opm-output]=master
downstreamRev[opm-grid]=master
downstreamRev[ewoms]=master
downstreamRev[opm-simulators]=master
Expand Down
3 changes: 1 addition & 2 deletions opm-material-prereqs.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set (opm-material_CONFIG_VAR
HAVE_TYPE_TRAITS
HAVE_VALGRIND
HAVE_FINAL
HAVE_OPM_PARSER
HAVE_ECL_INPUT
)

# dependencies
Expand All @@ -15,7 +15,6 @@ set (opm-material_DEPS
"CXX11Features REQUIRED"
# prerequisite OPM modules
"ecl"
"opm-parser"
"opm-common REQUIRED"
# DUNE dependency
"dune-common REQUIRED"
Expand Down
4 changes: 2 additions & 2 deletions opm/material/fluidmatrixinteractions/EclEpsConfig.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#ifndef OPM_ECL_EPS_CONFIG_HPP
#define OPM_ECL_EPS_CONFIG_HPP

#if HAVE_OPM_PARSER
#if HAVE_ECL_INPUT
#include <opm/parser/eclipse/Deck/Deck.hpp>
#include <opm/parser/eclipse/Deck/DeckItem.hpp>
#include <opm/parser/eclipse/Deck/DeckKeyword.hpp>
Expand Down Expand Up @@ -155,7 +155,7 @@ class EclEpsConfig
bool enableLeverettScaling() const
{ return enableLeverettScaling_; }

#if HAVE_OPM_PARSER
#if HAVE_ECL_INPUT
/*!
* \brief Reads all relevant material parameters form a cell of a parsed ECL deck.
*
Expand Down
12 changes: 6 additions & 6 deletions opm/material/fluidmatrixinteractions/EclEpsScalingPoints.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

#include "EclEpsConfig.hpp"

#if HAVE_OPM_PARSER
#if HAVE_ECL_INPUT
#include <opm/parser/eclipse/Deck/Deck.hpp>
#include <opm/parser/eclipse/Deck/DeckRecord.hpp>
#include <opm/parser/eclipse/EclipseState/EclipseState.hpp>
Expand Down Expand Up @@ -65,7 +65,7 @@ class EclEpsGridProperties
typedef std::vector<double> DoubleData;

public:
#if HAVE_OPM_PARSER
#if HAVE_ECL_INPUT
void initFromDeck(const Opm::Deck& /* deck */,
const Opm::EclipseState& eclState,
bool useImbibition)
Expand Down Expand Up @@ -130,7 +130,7 @@ class EclEpsGridProperties
const DoubleData* permz;

private:
#if HAVE_OPM_PARSER
#if HAVE_ECL_INPUT
// this method makes sure that a grid property is not created if it is not explicitly
// mentioned in the deck. (saves memory.)
void retrieveGridPropertyData_(const DoubleData **data,
Expand Down Expand Up @@ -213,7 +213,7 @@ struct EclEpsScalingPointsInfo
<< " maxKrog: " << maxKrog << "\n";
}

#if HAVE_OPM_PARSER
#if HAVE_ECL_INPUT
/*!
* \brief Extract the values of the unscaled scaling parameters.
*
Expand Down Expand Up @@ -420,7 +420,7 @@ struct EclEpsScalingPointsInfo
#endif

private:
#if HAVE_OPM_PARSER
#if HAVE_ECL_INPUT
void extractUnscaledSgof_(const Opm::SgofTable& sgofTable)
{
// minimum gas and oil-in-gas-oil saturation
Expand Down Expand Up @@ -645,7 +645,7 @@ struct EclEpsScalingPointsInfo
maxKrow = sof2Table.getKroColumn().back();
maxKrog = maxKrow;
}
#endif // HAVE_OPM_PARSER
#endif // HAVE_ECL_INPUT

void extractGridPropertyValue_(Scalar& targetValue,
const std::vector<double>* propData,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include "EclEpsConfig.hpp"
#include "EclEpsScalingPoints.hpp"

#if HAVE_OPM_PARSER
#if HAVE_ECL_INPUT
#include <opm/parser/eclipse/Deck/Deck.hpp>
#include <opm/parser/eclipse/EclipseState/EclipseState.hpp>
#endif
Expand Down
4 changes: 2 additions & 2 deletions opm/material/fluidmatrixinteractions/EclHysteresisConfig.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#ifndef OPM_ECL_HYSTERESIS_CONFIG_HPP
#define OPM_ECL_HYSTERESIS_CONFIG_HPP

#if HAVE_OPM_PARSER
#if HAVE_ECL_INPUT
#include <opm/parser/eclipse/Deck/Deck.hpp>
#include <opm/parser/eclipse/Deck/DeckKeyword.hpp>
#include <opm/parser/eclipse/Deck/DeckRecord.hpp>
Expand Down Expand Up @@ -104,7 +104,7 @@ class EclHysteresisConfig
int krHysteresisModel() const
{ return krHysteresisModel_; }

#if HAVE_OPM_PARSER
#if HAVE_ECL_INPUT
/*!
* \brief Reads all relevant material parameters form a cell of a parsed ECL deck.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include "EclHysteresisConfig.hpp"
#include "EclEpsScalingPoints.hpp"

#if HAVE_OPM_PARSER
#if HAVE_ECL_INPUT
#include <opm/parser/eclipse/Deck/Deck.hpp>
#include <opm/parser/eclipse/EclipseState/EclipseState.hpp>
#endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
* \file
* \copydoc Opm::EclMaterialLawManager
*/
#if ! HAVE_OPM_PARSER
#error "The opm-parser module is required to use the ECL material manager!"
#if ! HAVE_ECL_INPUT
#error "Eclipse input support in opm-common is required to use the ECL material manager!"
#endif

#ifndef OPM_ECL_MATERIAL_LAW_MANAGER_HPP
Expand Down
4 changes: 2 additions & 2 deletions opm/material/fluidsystems/BlackOilFluidSystem.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ class BlackOil : public BaseFluidSystem<Scalar, BlackOil<Scalar> >
/****************************************
* Initialization
****************************************/
#if HAVE_OPM_PARSER
#if HAVE_ECL_INPUT
/*!
* \brief Initialize the fluid system using an ECL deck object
*/
Expand Down Expand Up @@ -233,7 +233,7 @@ class BlackOil : public BaseFluidSystem<Scalar, BlackOil<Scalar> >

initEnd();
}
#endif // HAVE_OPM_PARSER
#endif // HAVE_ECL_INPUT

/*!
* \brief Begin the initialization of the black oil fluid system.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#include <opm/material/common/Tabulated1DFunction.hpp>
#include <opm/material/common/Spline.hpp>

#if HAVE_OPM_PARSER
#if HAVE_ECL_INPUT
#include <opm/parser/eclipse/Deck/Deck.hpp>
#include <opm/parser/eclipse/Deck/DeckItem.hpp>
#include <opm/parser/eclipse/Deck/DeckKeyword.hpp>
Expand All @@ -52,7 +52,7 @@ class ConstantCompressibilityOilPvt
typedef std::vector<std::pair<Scalar, Scalar> > SamplingPoints;

public:
#if HAVE_OPM_PARSER
#if HAVE_ECL_INPUT
/*!
* \brief Sets the pressure-dependent oil viscosity and density
* using the Eclipse PVCDO keyword.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

#include <opm/material/common/Tabulated1DFunction.hpp>

#if HAVE_OPM_PARSER
#if HAVE_ECL_INPUT
#include <opm/parser/eclipse/Deck/Deck.hpp>
#include <opm/parser/eclipse/Deck/DeckKeyword.hpp>
#include <opm/parser/eclipse/Deck/DeckRecord.hpp>
Expand All @@ -51,7 +51,7 @@ class ConstantCompressibilityWaterPvt
typedef std::vector<std::pair<Scalar, Scalar> > SamplingPoints;

public:
#if HAVE_OPM_PARSER
#if HAVE_ECL_INPUT
/*!
* \brief Sets the pressure-dependent water viscosity and density
* using a table stemming from the Eclipse PVTW keyword.
Expand Down
6 changes: 3 additions & 3 deletions opm/material/fluidsystems/blackoilpvt/DeadOilPvt.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#include <opm/material/common/Tabulated1DFunction.hpp>
#include <opm/material/common/Spline.hpp>

#if HAVE_OPM_PARSER
#if HAVE_ECL_INPUT
#include <opm/parser/eclipse/EclipseState/EclipseState.hpp>
#include <opm/parser/eclipse/EclipseState/Tables/PvdoTable.hpp>
#include <opm/parser/eclipse/EclipseState/Tables/TableManager.hpp>
Expand All @@ -49,7 +49,7 @@ class DeadOilPvt
typedef std::vector<std::pair<Scalar, Scalar> > SamplingPoints;

public:
#if HAVE_OPM_PARSER
#if HAVE_ECL_INPUT
/*!
* \brief Initialize the oil parameters via the data specified by the PVDO ECL keyword.
*/
Expand Down Expand Up @@ -87,7 +87,7 @@ class DeadOilPvt

initEnd();
}
#endif // HAVE_OPM_PARSER
#endif // HAVE_ECL_INPUT

void setNumRegions(size_t numRegions)
{
Expand Down
4 changes: 2 additions & 2 deletions opm/material/fluidsystems/blackoilpvt/DryGasPvt.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

#include <opm/material/common/Tabulated1DFunction.hpp>

#if HAVE_OPM_PARSER
#if HAVE_ECL_INPUT
#include <opm/parser/eclipse/Deck/Deck.hpp>
#include <opm/parser/eclipse/EclipseState/EclipseState.hpp>
#include <opm/parser/eclipse/EclipseState/Tables/TableManager.hpp>
Expand All @@ -54,7 +54,7 @@ class DryGasPvt
typedef std::vector<std::pair<Scalar, Scalar> > SamplingPoints;

public:
#if HAVE_OPM_PARSER
#if HAVE_ECL_INPUT
/*!
* \brief Initialize the parameters for dry gas using an ECL deck.
*
Expand Down
6 changes: 3 additions & 3 deletions opm/material/fluidsystems/blackoilpvt/GasPvtMultiplexer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#include "WetGasPvt.hpp"
#include "GasPvtThermal.hpp"

#if HAVE_OPM_PARSER
#if HAVE_ECL_INPUT
#include <opm/parser/eclipse/Deck/Deck.hpp>
#include <opm/parser/eclipse/EclipseState/EclipseState.hpp>
#include <opm/parser/eclipse/Deck/DeckKeyword.hpp>
Expand Down Expand Up @@ -109,7 +109,7 @@ class GasPvtMultiplexer
}
}

#if HAVE_OPM_PARSER
#if HAVE_ECL_INPUT
/*!
* \brief Initialize the parameters for gas using an ECL deck.
*
Expand All @@ -130,7 +130,7 @@ class GasPvtMultiplexer

OPM_GAS_PVT_MULTIPLEXER_CALL(pvtImpl.initFromDeck(deck, eclState));
}
#endif // HAVE_OPM_PARSER
#endif // HAVE_ECL_INPUT

void setApproach(GasPvtApproach gasPvtAppr)
{
Expand Down
6 changes: 3 additions & 3 deletions opm/material/fluidsystems/blackoilpvt/GasPvtThermal.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#include <opm/material/common/Tabulated1DFunction.hpp>
#include <opm/material/common/Spline.hpp>

#if HAVE_OPM_PARSER
#if HAVE_ECL_INPUT
#include <opm/parser/eclipse/Deck/Deck.hpp>
#include <opm/parser/eclipse/EclipseState/EclipseState.hpp>
#include <opm/parser/eclipse/EclipseState/Tables/SimpleTable.hpp>
Expand Down Expand Up @@ -68,7 +68,7 @@ class GasPvtThermal
~GasPvtThermal()
{ delete isothermalPvt_; }

#if HAVE_OPM_PARSER
#if HAVE_ECL_INPUT
/*!
* \brief Implement the temperature part of the gas PVT properties.
*/
Expand Down Expand Up @@ -160,7 +160,7 @@ class GasPvtThermal
}
}
}
#endif // HAVE_OPM_PARSER
#endif // HAVE_ECL_INPUT

/*!
* \brief Set the number of PVT-regions considered by this object.
Expand Down
6 changes: 3 additions & 3 deletions opm/material/fluidsystems/blackoilpvt/LiveOilPvt.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#include <opm/material/common/UniformXTabulated2DFunction.hpp>
#include <opm/material/common/Tabulated1DFunction.hpp>

#if HAVE_OPM_PARSER
#if HAVE_ECL_INPUT
#include <opm/parser/eclipse/Deck/Deck.hpp>
#include <opm/parser/eclipse/EclipseState/EclipseState.hpp>
#include <opm/parser/eclipse/EclipseState/Tables/SimpleTable.hpp>
Expand Down Expand Up @@ -62,7 +62,7 @@ class LiveOilPvt
vapPar2_ = 0.0;
}

#if HAVE_OPM_PARSER
#if HAVE_ECL_INPUT
/*!
* \brief Initialize the oil parameters via the data specified by the PVTO ECL keyword.
*/
Expand Down Expand Up @@ -232,7 +232,7 @@ class LiveOilPvt
}

public:
#endif // HAVE_OPM_PARSER
#endif // HAVE_ECL_INPUT

void setNumRegions(size_t numRegions)
{
Expand Down
4 changes: 2 additions & 2 deletions opm/material/fluidsystems/blackoilpvt/OilPvtMultiplexer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class OilPvtMultiplexer
}
}

#if HAVE_OPM_PARSER
#if HAVE_ECL_INPUT
/*!
* \brief Initialize the parameters for water using an ECL deck.
*
Expand All @@ -138,7 +138,7 @@ class OilPvtMultiplexer

OPM_OIL_PVT_MULTIPLEXER_CALL(pvtImpl.initFromDeck(deck, eclState));
}
#endif // HAVE_OPM_PARSER
#endif // HAVE_ECL_INPUT


void initEnd()
Expand Down
Loading

0 comments on commit 29a3083

Please sign in to comment.