Line data Source code
1 0 : // Distributed under the MIT License. 2 : // See LICENSE.txt for details. 3 : 4 : #pragma once 5 : 6 : #include <cstddef> 7 : #include <memory> 8 : #include <pup.h> 9 : 10 : #include "Utilities/Serialization/CharmPupable.hpp" 11 : #include "Utilities/TMPL.hpp" 12 : 13 : namespace Burgers::fd { 14 : /// \cond 15 : class MonotonisedCentral; 16 : /// \endcond 17 : 18 : /*! 19 : * \brief The base class from which all reconstruction schemes must inherit 20 : */ 21 1 : class Reconstructor : public PUP::able { 22 : public: 23 0 : Reconstructor() = default; 24 0 : Reconstructor(const Reconstructor&) = default; 25 0 : Reconstructor& operator=(const Reconstructor&) = default; 26 0 : Reconstructor(Reconstructor&&) = default; 27 0 : Reconstructor& operator=(Reconstructor&&) = default; 28 0 : ~Reconstructor() override = default; 29 : 30 : // NOLINTNEXTLINE(google-runtime-references) 31 0 : void pup(PUP::er& p) override; 32 : 33 : /// \cond 34 : explicit Reconstructor(CkMigrateMessage* msg); 35 : WRAPPED_PUPable_abstract(Reconstructor); // NOLINT 36 : /// \endcond 37 : 38 0 : using creatable_classes = tmpl::list<MonotonisedCentral>; 39 : 40 0 : virtual std::unique_ptr<Reconstructor> get_clone() const = 0; 41 : 42 0 : virtual size_t ghost_zone_size() const = 0; 43 : }; 44 : } // namespace Burgers::fd