![]() |
|
|||
File indexing completed on 2025-09-18 09:09:04
0001 //------------------------------- -*- C++ -*- -------------------------------// 0002 // Copyright Celeritas contributors: see top-level COPYRIGHT file for details 0003 // SPDX-License-Identifier: (Apache-2.0 OR MIT) 0004 //---------------------------------------------------------------------------// 0005 //! \file celeritas/geo/detail/BoundaryAction.hh 0006 //---------------------------------------------------------------------------// 0007 #pragma once 0008 0009 #include "celeritas/global/ActionInterface.hh" 0010 0011 namespace celeritas 0012 { 0013 namespace detail 0014 { 0015 //---------------------------------------------------------------------------// 0016 /*! 0017 * Move a track across a boundary. 0018 */ 0019 class BoundaryAction final : public CoreStepActionInterface, 0020 public StaticConcreteAction 0021 { 0022 public: 0023 // Construct with ID 0024 explicit BoundaryAction(ActionId); 0025 0026 // Launch kernel with host data 0027 void step(CoreParams const&, CoreStateHost&) const final; 0028 0029 // Launch kernel with device data 0030 void step(CoreParams const&, CoreStateDevice&) const final; 0031 0032 //! Dependency ordering of the action 0033 StepActionOrder order() const final { return StepActionOrder::post; } 0034 }; 0035 0036 //---------------------------------------------------------------------------// 0037 } // namespace detail 0038 } // namespace celeritas
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
![]() ![]() |