Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-tectonic
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
podlesny
dune-tectonic
Commits
4c7dee8d
Commit
4c7dee8d
authored
13 years ago
by
Elias Pipping
Committed by
Elias Pipping
13 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Use make_shared
parent
198d48f4
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/tectonic/globalruinanonlinearity.hh
+6
-6
6 additions, 6 deletions
dune/tectonic/globalruinanonlinearity.hh
with
6 additions
and
6 deletions
dune/tectonic/globalruinanonlinearity.hh
+
6
−
6
View file @
4c7dee8d
...
...
@@ -29,8 +29,8 @@ class GlobalRuinaNonlinearity
mu
(
mu
),
eta
(
eta
),
normalStress
(
normalStress
),
trivialNonlinearity
(
new
LocalNonlinearity
<
dim
>
(
shared_ptr
<
NiceFunction
const
>
(
new
TrivialFunction
)))
{}
trivialNonlinearity
(
new
LocalNonlinearity
<
dim
>
(
make_shared
<
TrivialFunction
const
>
(
)))
{}
/*
Return a restriction of the outer function to the i'th node.
...
...
@@ -40,10 +40,10 @@ class GlobalRuinaNonlinearity
return
trivialNonlinearity
;
// TODO: cache functions
shared_ptr
<
Nice
Function
const
>
const
func
(
new
RuinaFunction
(
(
*
nodalIntegrals
)[
i
][
0
],
(
*
a
)[
i
][
0
],
(
*
mu
)[
i
][
0
],
(
*
eta
)[
i
][
0
],
(
*
normalStress
)[
i
][
0
])
)
;
return
shared
_ptr
<
LocalNonlinearity
<
dim
>
>
(
new
LocalNonlinearity
<
dim
>
(
func
)
)
;
auto
const
func
=
make_shared
<
Ruina
Function
const
>
(
(
*
nodalIntegrals
)[
i
][
0
],
(
*
a
)[
i
][
0
],
(
*
mu
)[
i
][
0
],
(
*
eta
)[
i
][
0
],
(
*
normalStress
)[
i
][
0
]);
return
make_
shared
<
LocalNonlinearity
<
dim
>
const
>
(
func
);
}
private
:
...
...
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