Skip to content
Snippets Groups Projects
Commit 800eb621 authored by Robert Klöfkorn's avatar Robert Klöfkorn
Browse files

do set time as first action

parent b6dd2c86
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment