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
9a820bf3
Commit
9a820bf3
authored
11 years ago
by
Robert Kloefkorn
Browse files
Options
Downloads
Patches
Plain Diff
use FlopCounter singleton.
parent
40b5b770
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/main/main_pol.cc
+8
-11
8 additions, 11 deletions
dune/fem-dg/main/main_pol.cc
with
8 additions
and
11 deletions
dune/fem-dg/main/main_pol.cc
+
8
−
11
View file @
9a820bf3
...
...
@@ -87,13 +87,12 @@ namespace LOOPSPACE {
{
Dune
::
Fem
::
FemEoc
::
clear
();
// create Flop counter, needs PAPI
Dune
::
Fem
::
FlopCounter
flopCounter
;
const
bool
countFlops
=
Dune
::
Fem
::
Parameter
::
getValue
<
bool
>
(
"femdg.flopcounter"
,
false
);
// if flop count is enabled count floating point operations
if
(
countFlops
)
f
lopCounter
.
start
();
// Flop counter needs PAPI
Dune
::
Fem
::
F
lopCounter
::
start
(
countFlops
);
typedef
Dune
::
GridSelector
::
GridType
GridType
;
typedef
ProblemGenerator
<
GridType
>
ProblemTraits
;
...
...
@@ -122,15 +121,13 @@ namespace LOOPSPACE {
StepperType
*
stepper
=
new
StepperType
(
grid
);
assert
(
stepper
);
compute
(
*
stepper
);
// stop flop counter of started before
Dune
::
Fem
::
FlopCounter
::
stop
();
// delete data
delete
stepper
;
delete
gridptr
;
// print floating point results
if
(
countFlops
)
{
flopCounter
.
stop
();
flopCounter
.
print
(
std
::
cout
);
}
}
}
// end namespace LOOPSPACE
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