Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-xt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ag-ohlberger
dune-community
dune-xt
Commits
2747376f
Commit
2747376f
authored
9 years ago
by
René Fritze
Browse files
Options
Downloads
Patches
Plain Diff
[common] adds FieldVector variant that's initialized with compile-time constant
parent
882fe5e7
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/stuff/common/fvector.hh
+15
-0
15 additions, 0 deletions
dune/stuff/common/fvector.hh
with
15 additions
and
0 deletions
dune/stuff/common/fvector.hh
+
15
−
0
View file @
2747376f
...
@@ -107,6 +107,21 @@ public:
...
@@ -107,6 +107,21 @@ public:
}
}
};
// class FieldVector
};
// class FieldVector
template
<
class
K
,
int
SIZE
,
K
value
>
class
ValueInitFieldVector
:
public
Dune
::
Stuff
::
Common
::
FieldVector
<
K
,
SIZE
>
{
static_assert
(
SIZE
>=
0
,
"Really?"
);
typedef
Dune
::
Stuff
::
Common
::
FieldVector
<
K
,
SIZE
>
BaseType
;
typedef
ValueInitFieldVector
<
K
,
SIZE
,
value
>
ThisType
;
public:
ValueInitFieldVector
()
:
BaseType
(
value
)
{
}
};
// class FieldVector
}
// namespace Common
}
// namespace Common
}
// namespace Stuff
}
// namespace Stuff
...
...
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