Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-11-07 10:11:33

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/global/CoreSizesIO.json.hh
0006 //---------------------------------------------------------------------------//
0007 #pragma once
0008 
0009 #include <nlohmann/json.hpp>
0010 
0011 #include "corecel/io/JsonUtils.json.hh"
0012 
0013 #include "CoreSizes.hh"
0014 
0015 namespace celeritas
0016 {
0017 //---------------------------------------------------------------------------//
0018 void to_json(nlohmann::json& j, CoreSizes const& v)
0019 {
0020     j = {
0021         CELER_JSON_PAIR(v, primaries),
0022         CELER_JSON_PAIR(v, tracks),
0023         CELER_JSON_PAIR(v, initializers),
0024         CELER_JSON_PAIR(v, secondaries),
0025         CELER_JSON_PAIR(v, events),
0026         CELER_JSON_PAIR(v, streams),
0027         CELER_JSON_PAIR(v, processes),
0028     };
0029 }
0030 
0031 //---------------------------------------------------------------------------//
0032 }  // namespace celeritas