Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
amdis
amdis-core
Commits
5d3b30c0
Commit
5d3b30c0
authored
Jan 21, 2018
by
Praetorius, Simon
Browse files
removed optional_delete
parent
6d6d8969
Changes
1
Hide whitespace changes
Inline
Side-by-side
dune/amdis/ProblemStat.hpp
View file @
5d3b30c0
...
...
@@ -91,10 +91,10 @@ namespace AMDiS
/// Constructor taking additionally a reference to a mesh that is used
/// instead of the default created mesh, \ref ProblemStat
ProblemStat
(
std
::
string
name
,
Grid
*
grid
Ptr
)
ProblemStat
(
std
::
string
name
,
Grid
&
grid
)
:
ProblemStat
(
name
)
{
this
->
grid
=
std
::
shared_ptr
<
Grid
>
(
gridPtr
,
optional_delete
(
false
)
);
this
->
grid
=
Dune
::
stackobject_to_shared_ptr
(
grid
);
componentGrids
.
resize
(
nComponents
,
this
->
grid
.
get
());
gridName
=
""
;
...
...
@@ -245,7 +245,7 @@ namespace AMDiS
/// matrices and vectors, as well as the file-writer.
void
setGrid
(
Grid
&
grid_
)
{
grid
=
std
::
shared_ptr
<
Grid
>
(
&
grid_
,
optional_delete
(
false
)
);
grid
=
Dune
::
stackobject_to_shared_ptr
(
grid_
);
std
::
fill
(
componentGrids
.
begin
(),
componentGrids
.
end
(),
this
->
grid
.
get
());
createGlobalBasis
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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