Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
dune-fem-dg
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
Service Desk
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
dune-fem
dune-fem-dg
Commits
1b92b362
Commit
1b92b362
authored
7 years ago
by
Robert K
Browse files
Options
Downloads
Patches
Plain Diff
[cleanup] remove warning.
parent
f41906df
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/fem-dg/pass/dgpass.hh
+8
-16
8 additions, 16 deletions
dune/fem-dg/pass/dgpass.hh
with
8 additions
and
16 deletions
dune/fem-dg/pass/dgpass.hh
+
8
−
16
View file @
1b92b362
...
...
@@ -137,7 +137,7 @@ namespace Fem
const
int
volumeQuadOrd
=
-
1
,
const
int
faceQuadOrd
=
-
1
)
:
BaseType
(
pass
,
spc
),
caller_
(
0
),
caller_
(),
discreteModel_
(
discreteModel
),
arg_
(
0
),
dest_
(
0
),
...
...
@@ -179,10 +179,6 @@ namespace Fem
valJacNb_
.
setMemoryFactor
(
1.1
);
}
//! Destructor
virtual
~
LocalCDGPass
()
{}
//! print tex info
void
printTexInfo
(
std
::
ostream
&
out
)
const
{
BaseType
::
printTexInfo
(
out
);
...
...
@@ -292,7 +288,7 @@ namespace Fem
caller
.
numericalFlux
(
intersection
,
faceQuadInner
,
faceQuadOuter
,
l
,
fluxEn
,
fluxNb
,
diffFluxEn
,
diffFluxNb
);
arg_
=
0
;
arg_
=
nullptr
;
}
//! In the preparations, store pointers to the actual arguments and
...
...
@@ -320,7 +316,7 @@ namespace Fem
assert
(
!
caller_
);
// set arguments to caller
caller_
=
new
DiscreteModelCallerType
(
*
arg_
,
discreteModel_
);
caller_
.
reset
(
new
DiscreteModelCallerType
(
*
arg_
,
discreteModel_
)
);
caller_
->
setTime
(
this
->
time
()
);
// resize indicator function
...
...
@@ -336,21 +332,17 @@ namespace Fem
//! Some timestep size management.
void
doFinalize
(
DestinationType
&
dest
,
const
bool
doCommunicate
)
const
{
if
(
doCommunicate
&&
(
&
dest
)
)
if
(
doCommunicate
)
{
// communicate calculated function (not in thread parallel version)
dest
.
communicate
();
}
// call finalize
if
(
caller_
)
{
delete
caller_
;
caller_
=
0
;
}
caller_
.
reset
();
arg_
=
0
;
dest_
=
0
;
arg_
=
nullptr
;
dest_
=
nullptr
;
}
//! Some timestep size management.
...
...
@@ -952,7 +944,7 @@ namespace Fem
return
*
caller_
;
}
mutable
DiscreteModelCallerType
*
caller_
;
mutable
std
::
unique_ptr
<
DiscreteModelCallerType
>
caller_
;
DiscreteModelType
&
discreteModel_
;
mutable
ArgumentType
*
arg_
;
...
...
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