some cleanups

This commit is contained in:
Andreas Lauser
2018-11-12 12:40:04 +01:00
parent cfcf04ed00
commit 781825121d

View File

@@ -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;