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
800eb621
Commit
800eb621
authored
14 years ago
by
Robert Klöfkorn
Browse files
Options
Downloads
Patches
Plain Diff
do set time as first action
parent
b6dd2c86
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/threadpass.hh
+11
-3
11 additions, 3 deletions
dune/fem-dg/pass/threadpass.hh
with
11 additions
and
3 deletions
dune/fem-dg/pass/threadpass.hh
+
11
−
3
View file @
800eb621
...
...
@@ -172,6 +172,8 @@ namespace Dune {
return
*
(
passes_
[
thread
]
);
}
using
BaseType
::
time
;
public
:
//! switch upwind direction
void
switchUpwind
()
...
...
@@ -190,6 +192,15 @@ namespace Dune {
// clear destination
dest
.
clear
();
// set time for all passes, this is used in prepare of pass
// and therefore has to be done before prepare is called
const
int
maxThreads
=
Fem
::
ThreadManager
::
maxThreads
();
for
(
int
i
=
0
;
i
<
maxThreads
;
++
i
)
{
// set time to each pass
pass
(
i
).
setTime
(
time
()
);
}
// for the first call we only run on one thread to avoid
// clashes with the singleton storages for quadratures
// and base function caches etc.
...
...
@@ -243,9 +254,6 @@ namespace Dune {
// create NB checker
NBChecker
nbChecker
(
iterators_
);
// set current time to my pass
myPass
.
setTime
(
this
->
time
()
);
// Iterator is of same type as the space iterator
typedef
typename
ThreadIteratorType
::
IteratorType
Iterator
;
const
Iterator
endit
=
iterators_
.
end
();
...
...
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