Line data Source code
1 0 : // Distributed under the MIT License. 2 : // See LICENSE.txt for details. 3 : 4 : #pragma once 5 : 6 : #include <memory> 7 : #include <pup.h> 8 : 9 : #include "Utilities/Serialization/CharmPupable.hpp" 10 : #include "Utilities/TMPL.hpp" 11 : 12 : /// Boundary corrections/numerical fluxes 13 1 : namespace Burgers::BoundaryCorrections { 14 : /// \cond 15 : class Hll; 16 : class Rusanov; 17 : /// \endcond 18 : 19 : /*! 20 : * \brief The base class used to create boundary corrections from input files 21 : * and store them in the global cache. 22 : */ 23 1 : class BoundaryCorrection : public PUP::able { 24 : public: 25 0 : BoundaryCorrection() = default; 26 0 : BoundaryCorrection(const BoundaryCorrection&) = default; 27 0 : BoundaryCorrection& operator=(const BoundaryCorrection&) = default; 28 0 : BoundaryCorrection(BoundaryCorrection&&) = default; 29 0 : BoundaryCorrection& operator=(BoundaryCorrection&&) = default; 30 0 : ~BoundaryCorrection() override = default; 31 : 32 0 : explicit BoundaryCorrection(CkMigrateMessage* msg) : PUP::able(msg) {} 33 : 34 : /// \cond 35 : WRAPPED_PUPable_abstract(BoundaryCorrection); // NOLINT 36 : /// \endcond 37 : 38 0 : using creatable_classes = tmpl::list<Hll, Rusanov>; 39 : 40 0 : virtual std::unique_ptr<BoundaryCorrection> get_clone() const = 0; 41 : }; 42 : } // namespace Burgers::BoundaryCorrections