Commit a9603c09 authored by Nils Kohl's avatar Nils Kohl 🌝
Browse files

Fixed wrong usage of optional

parent a4c0837b
......@@ -103,7 +103,7 @@ inline void walberla::mesh::RefinementSelection<DistanceObject>::operator()( blo
continue;
walberla::optional< bool > intersects = intersectsSurface( *distanceObject_, blocks[ shuffle[ii] ]->getAABB(), maxError_, distance_ );
if( intersects.value_or( true ) )
if( !intersects || intersects.value() )
refine[ shuffle[ ii ] ] = uint8_t( 1 );
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment