Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
interact_crit_utils.hpp
Go to the documentation of this file.
1// -------------------------------------------------------//
2//
3// SHAMROCK code for hydrodynamics
4// Copyright (c) 2021-2026 Timothée David--Cléris <tim.shamrock@proton.me>
5// SPDX-License-Identifier: CeCILL Free Software License Agreement v2.1
6// Shamrock is licensed under the CeCILL 2.1 License, see LICENSE for more information
7//
8// -------------------------------------------------------//
9
10#pragma once
11
18namespace interact_crit::utils {
19
20 template<class InteractCd, class... Args>
21 inline bool interact_cd_cell_patch_domain(
22 const InteractCd &cd, const bool &in_domain, Args... args) {
23 bool int_crit;
24 if (in_domain) {
25 int_crit = InteractCd::interact_cd_cell_patch_outdomain(cd, args...);
26 } else {
27 int_crit = InteractCd::interact_cd_cell_patch(cd, args...);
28 }
29 return int_crit;
30 }
31
32} // namespace interact_crit::utils
std::vector< std::string_view > args
Executable argument list (mapped from argv)
Definition cmdopt.cpp:63