mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
MatrixSpace: Add support for block conversion into VectorSpace
This commit is contained in:
@ -388,7 +388,17 @@ Foam::MatrixSpace<Form, Cmpt, Mrows, Ncols>::
|
||||
Block<SubTensor, BRowStart, BColStart>::
|
||||
operator()() const
|
||||
{
|
||||
return *this;
|
||||
SubTensor st;
|
||||
|
||||
for (direction i=0; i<SubTensor::mRows; ++i)
|
||||
{
|
||||
for (direction j=0; j<SubTensor::nCols; ++j)
|
||||
{
|
||||
st[i*SubTensor::nCols + j] = operator()(i, j);
|
||||
}
|
||||
}
|
||||
|
||||
return st;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user