bda: use forwarding for WellContributions

This commit is contained in:
Arne Morten Kvarving 2021-11-11 13:28:59 +01:00
parent 4a1fb0b86a
commit be6c857b16
4 changed files with 10 additions and 8 deletions

View File

@ -27,7 +27,6 @@
#include <opm/simulators/linalg/bda/BdaSolver.hpp>
#include <opm/simulators/linalg/bda/ILUReorder.hpp>
#include <opm/simulators/linalg/bda/WellContributions.hpp>
#if HAVE_FPGA
@ -37,6 +36,8 @@
namespace Opm
{
class WellContributions;
typedef Dune::InverseOperatorResult InverseOperatorResult;
using Opm::Accelerator::ILUReorder;

View File

@ -22,15 +22,14 @@
#include <opm/simulators/linalg/bda/BdaResult.hpp>
#include <opm/simulators/linalg/bda/WellContributions.hpp>
namespace Opm
{
namespace Accelerator
{
#include <string>
using Opm::WellContributions;
namespace Opm {
class WellContributions;
namespace Accelerator {
enum class SolverStatus {
BDA_SOLVER_SUCCESS,
BDA_SOLVER_ANALYSIS_FAILED,
@ -57,7 +56,7 @@ namespace Accelerator
int maxit = 200;
double tolerance = 1e-2;
std::string bitstream = "";
std::string bitstream;
int N; // number of rows
int Nb; // number of blocked rows (Nb*block_size == N)

View File

@ -30,6 +30,7 @@
BOOST_VERSION / 100 % 1000 > 48
#include <opm/simulators/linalg/bda/BdaBridge.hpp>
#include <opm/simulators/linalg/bda/WellContributions.hpp>
#include <dune/common/fvector.hh>
#include <dune/istl/bvector.hh>

View File

@ -30,6 +30,7 @@
BOOST_VERSION / 100 % 1000 > 48
#include <opm/simulators/linalg/bda/BdaBridge.hpp>
#include <opm/simulators/linalg/bda/WellContributions.hpp>
#include <dune/common/fvector.hh>
#include <dune/istl/bvector.hh>