Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenFOAM-plus
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Development
OpenFOAM-plus
Commits
f3ca3603
Commit
f3ca3603
authored
9 years ago
by
Henry Weller
Browse files
Options
Downloads
Patches
Plain Diff
Vector: Add constructor from Foam::zero
parent
f2b111e2
No related branches found
No related tags found
1 merge request
!33
Merge foundation
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/OpenFOAM/primitives/Vector/Vector.H
+3
-0
3 additions, 0 deletions
src/OpenFOAM/primitives/Vector/Vector.H
src/OpenFOAM/primitives/Vector/VectorI.H
+7
-0
7 additions, 0 deletions
src/OpenFOAM/primitives/Vector/VectorI.H
with
10 additions
and
0 deletions
src/OpenFOAM/primitives/Vector/Vector.H
+
3
−
0
View file @
f3ca3603
...
...
@@ -81,6 +81,9 @@ public:
//- Construct null
inline
Vector
();
//- Construct initialized to zero
inline
explicit
Vector
(
const
Foam
::
zero
);
//- Construct given VectorSpace of the same rank
template
<
class
Cmpt2
>
inline
Vector
(
const
VectorSpace
<
Vector
<
Cmpt2
>
,
Cmpt2
,
3
>&
);
...
...
This diff is collapsed.
Click to expand it.
src/OpenFOAM/primitives/Vector/VectorI.H
+
7
−
0
View file @
f3ca3603
...
...
@@ -30,6 +30,13 @@ inline Foam::Vector<Cmpt>::Vector()
{}
template
<
class
Cmpt
>
inline
Foam
::
Vector
<
Cmpt
>::
Vector
(
const
Foam
::
zero
z
)
:
Vector
::
vsType
(
z
)
{}
template
<
class
Cmpt
>
template
<
class
Cmpt2
>
inline
Foam
::
Vector
<
Cmpt
>::
Vector
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment