|
|
|||
File indexing completed on 2026-11-07 10:11:36
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/mucf/model/detail/InterpolatorHelper.hh 0006 //---------------------------------------------------------------------------// 0007 #pragma once 0008 0009 #include "corecel/data/Collection.hh" 0010 #include "corecel/grid/NonuniformGridData.hh" 0011 #include "corecel/inp/Grid.hh" 0012 0013 namespace celeritas 0014 { 0015 namespace detail 0016 { 0017 //---------------------------------------------------------------------------// 0018 /*! 0019 * Host-only interpolator wrapper class for muCF input data. 0020 * 0021 * \sa MucfMaterialInserter 0022 */ 0023 class InterpolatorHelper 0024 { 0025 public: 0026 // Construct with grid input data 0027 explicit InterpolatorHelper(inp::Grid const& input); 0028 0029 // Interpolate data at given point 0030 real_type operator()(real_type value) const; 0031 0032 private: 0033 using Items = Collection<real_type, Ownership::value, MemSpace::host>; 0034 0035 Items reals_; 0036 NonuniformGridRecord grid_record_; 0037 }; 0038 0039 //---------------------------------------------------------------------------// 0040 } // namespace detail 0041 } // 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 |
|