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
27cfb3d4
Unverified
Commit
27cfb3d4
authored
10 months ago
by
Lars Kaiser
Browse files
Options
Downloads
Patches
Plain Diff
[NewtonConvergenceWriter] Fix access on moved object
parent
88a75981
No related branches found
No related tags found
1 merge request
!3784
[NewtonConvergenceWriter] Fix access on moved object
Pipeline
#43542
passed with warnings
10 months ago
Stage: check-status
Stage: trigger dumux pipelines
+3
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dumux/multidomain/newtonconvergencewriter.hh
+6
-6
6 additions, 6 deletions
dumux/multidomain/newtonconvergencewriter.hh
with
6 additions
and
6 deletions
dumux/multidomain/newtonconvergencewriter.hh
+
6
−
6
View file @
27cfb3d4
...
@@ -36,7 +36,7 @@ class MultiDomainNewtonConvergenceWriter : public ConvergenceWriterInterface<typ
...
@@ -36,7 +36,7 @@ class MultiDomainNewtonConvergenceWriter : public ConvergenceWriterInterface<typ
template
<
std
::
size_t
id
>
template
<
std
::
size_t
id
>
using
SubDomainGridGeometry
=
typename
MDTraits
::
template
SubDomain
<
id
>
::
GridGeometry
;
using
SubDomainGridGeometry
=
typename
MDTraits
::
template
SubDomain
<
id
>
::
GridGeometry
;
using
GridGeometryTuple
=
typename
MDTraits
::
template
TupleOfSharedPtrConst
<
SubDomainGridGeometry
>;
using
GridGeometry
Ptr
Tuple
=
typename
MDTraits
::
template
TupleOfSharedPtrConst
<
SubDomainGridGeometry
>;
using
SolutionVector
=
typename
MDTraits
::
SolutionVector
;
using
SolutionVector
=
typename
MDTraits
::
SolutionVector
;
using
ResidualVector
=
typename
MDTraits
::
ResidualVector
;
using
ResidualVector
=
typename
MDTraits
::
ResidualVector
;
...
@@ -54,18 +54,18 @@ class MultiDomainNewtonConvergenceWriter : public ConvergenceWriterInterface<typ
...
@@ -54,18 +54,18 @@ class MultiDomainNewtonConvergenceWriter : public ConvergenceWriterInterface<typ
public:
public:
/*!
/*!
* \brief Constructor
* \brief Constructor
* \param gridGeometryTuple A tuple of grid geometries
* \param gridGeometry
Ptr
Tuple A tuple of
shared pointers to const
grid geometries
* \param name Base name of the vtk output
* \param name Base name of the vtk output
*/
*/
MultiDomainNewtonConvergenceWriter
(
GridGeometryTuple
gridGeometryTuple
,
MultiDomainNewtonConvergenceWriter
(
GridGeometry
Ptr
Tuple
gridGeometry
Ptr
Tuple
,
const
std
::
string
&
name
=
"newton_convergence"
)
const
std
::
string
&
name
=
"newton_convergence"
)
:
gridGeometryTuple_
(
std
::
move
(
gridGeometryTuple
))
:
gridGeometry
Ptr
Tuple_
(
std
::
move
(
gridGeometry
Ptr
Tuple
))
{
{
using
namespace
Dune
::
Hybrid
;
using
namespace
Dune
::
Hybrid
;
forEach
(
std
::
make_index_sequence
<
MDTraits
::
numSubDomains
>
{},
[
&
](
auto
&&
id
)
forEach
(
std
::
make_index_sequence
<
MDTraits
::
numSubDomains
>
{},
[
&
](
auto
&&
id
)
{
{
using
ConvWriter
=
SubDomainNewtonConvergenceWriter
<
std
::
decay_t
<
decltype
(
id
)
>::
value
>
;
using
ConvWriter
=
SubDomainNewtonConvergenceWriter
<
std
::
decay_t
<
decltype
(
id
)
>::
value
>
;
elementAt
(
convergenceWriterPtrTuple_
,
id
)
=
std
::
make_shared
<
ConvWriter
>
(
*
elementAt
(
gridGeometryTuple
,
id
),
name
+
"_domain_"
+
std
::
to_string
(
id
));
elementAt
(
convergenceWriterPtrTuple_
,
id
)
=
std
::
make_shared
<
ConvWriter
>
(
*
elementAt
(
gridGeometry
Ptr
Tuple
_
,
id
),
name
+
"_domain_"
+
std
::
to_string
(
id
));
});
});
}
}
...
@@ -103,7 +103,7 @@ public:
...
@@ -103,7 +103,7 @@ public:
}
}
private
:
private
:
GridGeometryTuple
gridGeometryTuple_
;
GridGeometry
Ptr
Tuple
gridGeometry
Ptr
Tuple_
;
ConvergenceWriterPtrTuple
convergenceWriterPtrTuple_
;
ConvergenceWriterPtrTuple
convergenceWriterPtrTuple_
;
};
};
...
...
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