mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
some cleanups
This commit is contained in:
@@ -76,7 +76,7 @@ class EclPeacemanWell : public BaseAuxiliaryModule<TypeTag>
|
|||||||
typedef BaseAuxiliaryModule<TypeTag> AuxModule;
|
typedef BaseAuxiliaryModule<TypeTag> AuxModule;
|
||||||
|
|
||||||
typedef typename AuxModule::NeighborSet NeighborSet;
|
typedef typename AuxModule::NeighborSet NeighborSet;
|
||||||
typedef typename GET_PROP_TYPE(TypeTag, JacobianMatrix) JacobianMatrix;
|
typedef typename GET_PROP_TYPE(TypeTag, SparseMatrixAdapter) SparseMatrixAdapter;
|
||||||
typedef typename GET_PROP_TYPE(TypeTag, SolutionVector) SolutionVector;
|
typedef typename GET_PROP_TYPE(TypeTag, SolutionVector) SolutionVector;
|
||||||
typedef typename GET_PROP_TYPE(TypeTag, GlobalEqVector) GlobalEqVector;
|
typedef typename GET_PROP_TYPE(TypeTag, GlobalEqVector) GlobalEqVector;
|
||||||
|
|
||||||
@@ -339,11 +339,11 @@ public:
|
|||||||
/*!
|
/*!
|
||||||
* \copydoc Ewoms::BaseAuxiliaryModule::linearize()
|
* \copydoc Ewoms::BaseAuxiliaryModule::linearize()
|
||||||
*/
|
*/
|
||||||
virtual void linearize(JacobianMatrix& matrix, GlobalEqVector& residual)
|
virtual void linearize(SparseMatrixAdapter& matrix, GlobalEqVector& residual)
|
||||||
{
|
{
|
||||||
const SolutionVector& curSol = simulator_.model().solution(/*timeIdx=*/0);
|
const SolutionVector& curSol = simulator_.model().solution(/*timeIdx=*/0);
|
||||||
|
|
||||||
typedef typename JacobianMatrix::block_type MatrixBlock;
|
typedef typename SparseMatrixAdapter::MatrixBlock MatrixBlock;
|
||||||
|
|
||||||
unsigned wellGlobalDofIdx = AuxModule::localToGlobalDof(/*localDofIdx=*/0);
|
unsigned wellGlobalDofIdx = AuxModule::localToGlobalDof(/*localDofIdx=*/0);
|
||||||
residual[wellGlobalDofIdx] = 0.0;
|
residual[wellGlobalDofIdx] = 0.0;
|
||||||
|
|||||||
Reference in New Issue
Block a user