mirror of
https://github.com/OPM/opm-upscaling.git
synced 2025-02-25 18:45:23 -06:00
Address PR Review Comments
This commit is contained in:
parent
7ea8743943
commit
2e6a3ae79b
@ -110,7 +110,12 @@ class ASMHandler {
|
||||
const Dune::FieldVector<double,esize>* S,
|
||||
const LeafIterator& cell,
|
||||
Vector* b=NULL);
|
||||
void addMatElement(int i,int j,double val){ A[i][j] += val;}
|
||||
|
||||
void addMatElement(const int i, const int j, const double val)
|
||||
{
|
||||
A[i][j] += val;
|
||||
}
|
||||
|
||||
//! \brief Extract values corresponding to cell
|
||||
//! \param[in] u The global load vector
|
||||
//! \param[in] it An iterator to the cell we want to extract values for
|
||||
|
@ -81,7 +81,7 @@ void Elasticity<GridType>::getBVector(Dune::FieldVector<ctype,funcdims>& Bvector
|
||||
= P1ShapeFunctionSet<ctype,ctype,dim>::instance();
|
||||
|
||||
Dune::FieldMatrix<ctype,funcdims,dim> N;
|
||||
for (int i=0;i < funcdims; i++){
|
||||
for (int i = 0; i < funcdims; i++) {
|
||||
Bvector[i] = basis[i].evaluateFunction(point);
|
||||
}
|
||||
}
|
||||
|
@ -44,14 +44,16 @@ class MeshColorizer {
|
||||
}
|
||||
|
||||
//! \brief Calculate the coloring
|
||||
void calcGroups(){
|
||||
tg[0].resize(1);
|
||||
tg[0].reserve(grid.size(0));
|
||||
for (int i = 0; i < grid.size(0); ++i)
|
||||
tg[0][0].push_back(i);
|
||||
tg[1].clear();
|
||||
|
||||
void calcGroups()
|
||||
{
|
||||
tg[0].resize(1);
|
||||
tg[0].reserve(grid.size(0));
|
||||
for (int i = 0; i < grid.size(0); ++i) {
|
||||
tg[0][0].push_back(i);
|
||||
}
|
||||
tg[1].clear();
|
||||
}
|
||||
|
||||
private:
|
||||
IntMat tg[2]; //!< The color groups
|
||||
const GridType& grid; //!< Reference to grid being colored
|
||||
|
Loading…
Reference in New Issue
Block a user