mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
wellhelpers: remove indentation for namespaces
This commit is contained in:
parent
69db0dd175
commit
18d8914ef1
@ -32,65 +32,65 @@ namespace Opm {
|
|||||||
|
|
||||||
class ParallelWellInfo;
|
class ParallelWellInfo;
|
||||||
|
|
||||||
namespace wellhelpers
|
namespace wellhelpers {
|
||||||
{
|
|
||||||
|
|
||||||
/// \brief A wrapper around the B matrix for distributed wells
|
/// \brief A wrapper around the B matrix for distributed wells
|
||||||
///
|
///
|
||||||
/// For standard wells the B matrix, is basically a multiplication
|
/// For standard wells the B matrix, is basically a multiplication
|
||||||
/// of the equation of the perforated cells followed by a reduction
|
/// of the equation of the perforated cells followed by a reduction
|
||||||
/// (summation) of these to the well equations.
|
/// (summation) of these to the well equations.
|
||||||
///
|
///
|
||||||
/// This class does that in the functions mv and mmv (from the DUNE
|
/// This class does that in the functions mv and mmv (from the DUNE
|
||||||
/// matrix interface.
|
/// matrix interface.
|
||||||
///
|
///
|
||||||
/// \tparam Scalar The scalar used for the computation.
|
/// \tparam Scalar The scalar used for the computation.
|
||||||
template<typename Scalar>
|
template<typename Scalar>
|
||||||
class ParallelStandardWellB
|
class ParallelStandardWellB
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
using Block = Dune::DynamicMatrix<Scalar>;
|
using Block = Dune::DynamicMatrix<Scalar>;
|
||||||
using Matrix = Dune::BCRSMatrix<Block>;
|
using Matrix = Dune::BCRSMatrix<Block>;
|
||||||
|
|
||||||
ParallelStandardWellB(const Matrix& B, const ParallelWellInfo& parallel_well_info);
|
ParallelStandardWellB(const Matrix& B, const ParallelWellInfo& parallel_well_info);
|
||||||
|
|
||||||
//! y = A x
|
//! y = A x
|
||||||
template<class X, class Y>
|
template<class X, class Y>
|
||||||
void mv (const X& x, Y& y) const;
|
void mv (const X& x, Y& y) const;
|
||||||
|
|
||||||
//! y = A x
|
//! y = A x
|
||||||
template<class X, class Y>
|
template<class X, class Y>
|
||||||
void mmv (const X& x, Y& y) const;
|
void mmv (const X& x, Y& y) const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
const Matrix* B_;
|
const Matrix* B_;
|
||||||
const ParallelWellInfo* parallel_well_info_;
|
const ParallelWellInfo* parallel_well_info_;
|
||||||
};
|
};
|
||||||
|
|
||||||
double computeHydrostaticCorrection(const double well_ref_depth,
|
double computeHydrostaticCorrection(const double well_ref_depth,
|
||||||
const double vfp_ref_depth,
|
const double vfp_ref_depth,
|
||||||
const double rho, const double gravity);
|
const double rho, const double gravity);
|
||||||
|
|
||||||
|
|
||||||
/// \brief Sums entries of the diagonal Matrix for distributed wells
|
/// \brief Sums entries of the diagonal Matrix for distributed wells
|
||||||
template<typename Scalar, typename Comm>
|
template<typename Scalar, typename Comm>
|
||||||
void sumDistributedWellEntries(Dune::DynamicMatrix<Scalar>& mat, Dune::DynamicVector<Scalar>& vec,
|
void sumDistributedWellEntries(Dune::DynamicMatrix<Scalar>& mat,
|
||||||
const Comm& comm);
|
Dune::DynamicVector<Scalar>& vec,
|
||||||
|
const Comm& comm);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
template <int dim, class C2F, class FC>
|
template <int dim, class C2F, class FC>
|
||||||
std::array<double, dim>
|
std::array<double, dim>
|
||||||
getCubeDim(const C2F& c2f,
|
getCubeDim(const C2F& c2f,
|
||||||
FC begin_face_centroids,
|
FC begin_face_centroids,
|
||||||
int cell);
|
int cell);
|
||||||
|
|
||||||
// explicit transpose of a dense matrix due to compilation problems
|
// explicit transpose of a dense matrix due to compilation problems
|
||||||
// used for calculating quasiimpes well weights
|
// used for calculating quasiimpes well weights
|
||||||
template <class DenseMatrix>
|
template <class DenseMatrix>
|
||||||
DenseMatrix transposeDenseDynMatrix(const DenseMatrix& M);
|
DenseMatrix transposeDenseDynMatrix(const DenseMatrix& M);
|
||||||
|
|
||||||
} // namespace wellhelpers
|
} // namespace wellhelpers
|
||||||
}
|
} // namespace Opm
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user