Line data Source code
1 : //* This file is part of the MOOSE framework 2 : //* https://mooseframework.inl.gov 3 : //* 4 : //* All rights reserved, see COPYRIGHT for full restrictions 5 : //* https://github.com/idaholab/moose/blob/master/COPYRIGHT 6 : //* 7 : //* Licensed under LGPL 2.1, please see LICENSE for details 8 : //* https://www.gnu.org/licenses/lgpl-2.1.html 9 : 10 : #pragma once 11 : 12 : #include "MooseTypes.h" 13 : 14 : // Forward declarations 15 : class FEProblemBase; 16 : class InputParameters; 17 : 18 : /** 19 : * Interface for notifications that the mesh has changed. 20 : */ 21 : class MeshChangedInterface 22 : { 23 : public: 24 : static InputParameters validParams(); 25 : 26 : MeshChangedInterface(const InputParameters & params); 27 : 28 : #ifdef MOOSE_KOKKOS_ENABLED 29 : /** 30 : * Special constructor used for Kokkos functor copy during parallel dispatch 31 : */ 32 : MeshChangedInterface(const MeshChangedInterface & object, const Moose::Kokkos::FunctorCopy & key); 33 : #endif 34 : 35 1122167 : virtual ~MeshChangedInterface() = default; 36 : 37 : /** 38 : * Called on this object when the mesh changes 39 : */ 40 107086 : virtual void meshChanged() {} 41 : 42 : protected: 43 : /// Reference to FEProblemBase instance 44 : FEProblemBase & _mci_feproblem; 45 : };