Skip to content
Snippets Groups Projects

use `weak_ptr`'s `lock()` method to allow case of no coarser level

1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -170,7 +170,7 @@ namespace Dune
/** @brief Move to the next coarser level */
void increment()
{
element_ = std::shared_ptr<Element>(element_->coarser_);
element_ = element_->coarser_.lock();
}
/** @brief Move to the next fine level */
Loading