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 ForceFree::fd { 14 : /// \cond 15 : class AdaptiveOrder; 16 : class MonotonisedCentral; 17 : class Wcns5z; 18 : /// \endcond 19 : 20 : /*! 21 : * \brief The base class from which all reconstruction schemes must inherit 22 : */ 23 1 : class Reconstructor : public PUP::able { 24 : public: 25 0 : Reconstructor() = default; 26 0 : Reconstructor(const Reconstructor&) = default; 27 0 : Reconstructor& operator=(const Reconstructor&) = default; 28 0 : Reconstructor(Reconstructor&&) = default; 29 0 : Reconstructor& operator=(Reconstructor&&) = default; 30 0 : ~Reconstructor() override = default; 31 : 32 0 : void pup(PUP::er& p) override; 33 : 34 : /// \cond 35 : explicit Reconstructor(CkMigrateMessage* msg); 36 : WRAPPED_PUPable_abstract(Reconstructor); // NOLINT 37 : /// \endcond 38 : 39 0 : using creatable_classes = 40 : tmpl::list<AdaptiveOrder, MonotonisedCentral, Wcns5z>; 41 : 42 0 : virtual std::unique_ptr<Reconstructor> get_clone() const = 0; 43 : 44 0 : virtual size_t ghost_zone_size() const = 0; 45 : 46 0 : virtual bool supports_adaptive_order() const { return false; } 47 : }; 48 : } // namespace ForceFree::fd