7 #ifndef cf3_Math_LSS_BlockAccumulator_hpp
8 #define cf3_Math_LSS_BlockAccumulator_hpp
34 const Uint size=numnodes*numeqs;
35 mat.resize(size,size);
38 indices.resize(numnodes);
44 mat.setConstant(reset_to);
45 sol.setConstant(reset_to);
46 rhs.setConstant(reset_to);
53 for (
Uint i=0; i<(
const Uint)indices.size(); i++)
54 indices[i]=idx_vector[i];
61 Uint block_size()
const {
return indices.size(); };
65 Eigen::Matrix<Real, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor> mat;
86 #endif // cf3_Math_LSS_BlockAccumulator_hpp
void resize(Uint numnodes, Uint numeqs)
setting up sizes
void neighbour_indices(const T &idx_vector)
entering the indices where the local matrix is lying
#define LSS_API
Define the macro LSS_API.
std::vector< Uint > indices
local numbering of the unknowns
Uint size() const
how many rows/columns
Eigen::Matrix< Real, Eigen::Dynamic, 1 > RealVector
Dynamic sized column vector.
Top-level namespace for coolfluid.
RealVector sol
accessor to blockaccumulator's solution vector
void reset(Real reset_to=0.)
reset the values to the value of reset_to
unsigned int Uint
typedef for unsigned int
RealVector rhs
accessor to blockaccumulator's right hand side vector