Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
ce81b44d
Commit
ce81b44d
authored
Mar 22, 2016
by
Henry Weller
Browse files
VectorSpaces, MatrixSpaces: Allow automatic conversion from zero
parent
03865517
Changes
11
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/primitives/MatrixSpace/MatrixSpace.H
View file @
ce81b44d
...
...
@@ -202,7 +202,7 @@ public:
inline
MatrixSpace
();
//- Construct initialized to zero
inline
explicit
MatrixSpace
(
const
Foam
::
zero
);
inline
MatrixSpace
(
const
Foam
::
zero
);
//- Construct as copy of a VectorSpace with the same size
template
<
class
Form2
,
class
Cmpt2
>
...
...
src/OpenFOAM/primitives/RowVector/RowVector.H
View file @
ce81b44d
...
...
@@ -70,7 +70,7 @@ public:
inline
RowVector
();
//- Construct initialized to zero
inline
explicit
RowVector
(
const
Foam
::
zero
);
inline
RowVector
(
const
Foam
::
zero
);
//- Construct given VectorSpace of the same rank
template
<
class
Cmpt2
>
...
...
src/OpenFOAM/primitives/SphericalTensor/SphericalTensor.H
View file @
ce81b44d
...
...
@@ -83,7 +83,7 @@ public:
inline
SphericalTensor
();
//- Construct initialized to zero
inline
explicit
SphericalTensor
(
const
Foam
::
zero
);
inline
SphericalTensor
(
const
Foam
::
zero
);
//- Construct given VectorSpace
template
<
class
Cmpt2
>
...
...
src/OpenFOAM/primitives/SphericalTensor2D/SphericalTensor2D.H
View file @
ce81b44d
...
...
@@ -79,7 +79,7 @@ public:
inline
SphericalTensor2D
();
//- Construct initialized to zero
inline
explicit
SphericalTensor2D
(
const
Foam
::
zero
);
inline
SphericalTensor2D
(
const
Foam
::
zero
);
//- Construct given VectorSpace
inline
SphericalTensor2D
...
...
src/OpenFOAM/primitives/SymmTensor/SymmTensor.H
View file @
ce81b44d
...
...
@@ -83,7 +83,7 @@ public:
inline
SymmTensor
();
//- Construct initialized to zero
inline
explicit
SymmTensor
(
const
Foam
::
zero
);
inline
SymmTensor
(
const
Foam
::
zero
);
//- Construct given VectorSpace of the same rank
template
<
class
Cmpt2
>
...
...
src/OpenFOAM/primitives/SymmTensor2D/SymmTensor2D.H
View file @
ce81b44d
...
...
@@ -83,7 +83,7 @@ public:
inline
SymmTensor2D
();
//- Construct initialized to zero
inline
explicit
SymmTensor2D
(
const
Foam
::
zero
);
inline
SymmTensor2D
(
const
Foam
::
zero
);
//- Construct given VectorSpace
inline
SymmTensor2D
(
const
VectorSpace
<
SymmTensor2D
<
Cmpt
>
,
Cmpt
,
3
>&
);
...
...
src/OpenFOAM/primitives/Tensor/Tensor.H
View file @
ce81b44d
...
...
@@ -91,7 +91,7 @@ public:
inline
Tensor
();
//- Construct initialized to zero
inline
explicit
Tensor
(
const
Foam
::
zero
);
inline
Tensor
(
const
Foam
::
zero
);
//- Construct given MatrixSpace of the same rank
template
<
class
Cmpt2
>
...
...
src/OpenFOAM/primitives/Tensor2D/Tensor2D.H
View file @
ce81b44d
...
...
@@ -86,7 +86,7 @@ public:
inline
Tensor2D
();
//- Construct initialized to zero
inline
explicit
Tensor2D
(
const
Foam
::
zero
);
inline
Tensor2D
(
const
Foam
::
zero
);
//- Construct given VectorSpace
inline
Tensor2D
(
const
VectorSpace
<
Tensor2D
<
Cmpt
>
,
Cmpt
,
4
>&
);
...
...
src/OpenFOAM/primitives/Vector/Vector.H
View file @
ce81b44d
...
...
@@ -82,7 +82,7 @@ public:
inline
Vector
();
//- Construct initialized to zero
inline
explicit
Vector
(
const
Foam
::
zero
);
inline
Vector
(
const
Foam
::
zero
);
//- Construct given VectorSpace of the same rank
template
<
class
Cmpt2
>
...
...
src/OpenFOAM/primitives/Vector2D/Vector2D.H
View file @
ce81b44d
...
...
@@ -76,7 +76,7 @@ public:
inline
Vector2D
();
//- Construct initialized to zero
inline
explicit
Vector2D
(
const
Foam
::
zero
);
inline
Vector2D
(
const
Foam
::
zero
);
//- Construct given VectorSpace
inline
Vector2D
(
const
VectorSpace
<
Vector2D
<
Cmpt
>
,
Cmpt
,
2
>&
);
...
...
src/OpenFOAM/primitives/VectorSpace/VectorSpace.H
View file @
ce81b44d
...
...
@@ -154,7 +154,7 @@ public:
inline
VectorSpace
();
//- Construct initialized to zero
inline
explicit
VectorSpace
(
const
Foam
::
zero
);
inline
VectorSpace
(
const
Foam
::
zero
);
//- Construct from Istream
VectorSpace
(
Istream
&
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment