Skip to content
Snippets Groups Projects
Commit 3adcbfa6 authored by Timo Koch's avatar Timo Koch
Browse files

[parallel] Add function to query whether the multithreading backend is serial

parent a5e40c98
No related branches found
No related tags found
1 merge request!2909Feature/multithreaded assembly using a coloring scheme
......@@ -46,4 +46,18 @@ using ExecutionBackend = ExecutionBackends::DUMUX_MULTITHREADING_BACKEND;
} // end namespace Dumux::Detail::Multithreading
namespace Dumux::Multithreading {
/*!
* \ingroup Parallel
* \brief Checking whether the backend is serial
*/
inline constexpr bool isSerial()
{
using namespace Dumux::Detail::Multithreading;
return std::is_same_v<ExecutionBackends::Serial, ExecutionBackend>;
};
} // end namespace Dumux
#endif
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