Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dumux
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Show more breadcrumbs
dumux-repositories
dumux
Commits
3ecec290
Commit
3ecec290
authored
7 years ago
by
Kilian Weishaupt
Committed by
Timo Koch
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[discretization] Introduce resize method in elementsolution
parent
ef86abd9
No related branches found
No related tags found
2 merge requests
!621
Feature/1pnc next
,
!617
[WIP] Next
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dumux/discretization/box/elementsolution.hh
+6
-0
6 additions, 0 deletions
dumux/discretization/box/elementsolution.hh
dumux/discretization/cellcentered/elementsolution.hh
+6
-0
6 additions, 0 deletions
dumux/discretization/cellcentered/elementsolution.hh
with
12 additions
and
0 deletions
dumux/discretization/box/elementsolution.hh
+
6
−
0
View file @
3ecec290
...
@@ -82,6 +82,12 @@ public:
...
@@ -82,6 +82,12 @@ public:
priVars_
[
scv
.
indexInElement
()]
=
sol
[
scv
.
dofIndex
()];
priVars_
[
scv
.
indexInElement
()]
=
sol
[
scv
.
dofIndex
()];
}
}
//! resize method
void
resize
(
std
::
size_t
size
)
{
priVars_
.
resize
(
size
);
}
//! bracket operator const access
//! bracket operator const access
template
<
typename
IndexType
>
template
<
typename
IndexType
>
const
PrimaryVariables
&
operator
[](
IndexType
i
)
const
const
PrimaryVariables
&
operator
[](
IndexType
i
)
const
...
...
This diff is collapsed.
Click to expand it.
dumux/discretization/cellcentered/elementsolution.hh
+
6
−
0
View file @
3ecec290
...
@@ -84,6 +84,12 @@ public:
...
@@ -84,6 +84,12 @@ public:
return
priVars_
;
return
priVars_
;
}
}
//! resize method
void
resize
(
std
::
size_t
size
)
{
assert
(
size
==
1
&&
"Cell-centered element solution can only have one entry."
);
}
private
:
private
:
PrimaryVariables
priVars_
;
PrimaryVariables
priVars_
;
};
};
...
...
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