Skip to content
Snippets Groups Projects
Commit a9603c09 authored by Nils Kohl's avatar Nils Kohl :full_moon_with_face:
Browse files

Fixed wrong usage of optional

parent a4c0837b
Branches
Tags
No related merge requests found
......@@ -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 );
}
......
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