Skip to content
Snippets Groups Projects
Commit 08b74f50 authored by Mark Olesen's avatar Mark Olesen
Browse files

fixes to simpleMatrix ... really need to get a copy from work

parent d5ffabcd
Branches
Tags
No related merge requests found
......@@ -31,11 +31,24 @@ License
template<class Type>
Foam::simpleMatrix<Type>::simpleMatrix(const label mSize)
:
scalarSquareMatrix(mSize),
scalarSquareMatrix(mSize, mSize, pTraits<scalar>::zero),
source_(mSize, pTraits<Type>::zero)
{}
template<class Type>
Foam::simpleMatrix<Type>::simpleMatrix
(
const label mSize,
const scalar t,
const Field<Type>& source
)
:
scalarSquareMatrix(mSize, mSize, t),
source_(mSize, source)
{}
template<class Type>
Foam::simpleMatrix<Type>::simpleMatrix
(
......
......@@ -74,9 +74,12 @@ public:
// Constructors
//- Construct given size
//- Construct given size, initialize coefficients to zero.
simpleMatrix(const label);
//- Construct given size and initial coefficient value
simpleMatrix(const label, const scalar, const Field<Type>&);
//- Construct from components
simpleMatrix(const scalarSquareMatrix&, const Field<Type>&);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment