Skip to content
Snippets Groups Projects
Commit eb1626bd authored by Ravi Ayyala's avatar Ravi Ayyala
Browse files

modernize type traits

parent 986f7dd4
No related merge requests found
Pipeline #75268 failed with stages
in 14 minutes and 53 seconds
...@@ -61,7 +61,7 @@ using PdfCommunication_T = blockforest::SimpleCommunication< LatticeModelSten ...@@ -61,7 +61,7 @@ using PdfCommunication_T = blockforest::SimpleCommunication< LatticeModelSten
// the geometry computations in SurfaceGeometryHandler require meaningful values in the ghost layers in corner // the geometry computations in SurfaceGeometryHandler require meaningful values in the ghost layers in corner
// directions (flag field and fill level field); this holds, even if the lattice model uses a D3Q19 stencil // directions (flag field and fill level field); this holds, even if the lattice model uses a D3Q19 stencil
using CommunicationStencil_T = using CommunicationStencil_T =
typename std::conditional< LatticeModel_T::Stencil::D == uint_t(2), stencil::D2Q9, stencil::D3Q27 >::type; std::conditional_t< LatticeModel_T::Stencil::D == uint_t(2), stencil::D2Q9, stencil::D3Q27 >;
using Communication_T = blockforest::SimpleCommunication< CommunicationStencil_T >; using Communication_T = blockforest::SimpleCommunication< CommunicationStencil_T >;
using flag_t = uint32_t; using flag_t = uint32_t;
......
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