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 objects acting when the mesh has been displaced 20 : */ 21 : class MeshDisplacedInterface 22 : { 23 : public: 24 : static InputParameters validParams(); 25 : 26 : MeshDisplacedInterface(const InputParameters & params); 27 79920 : virtual ~MeshDisplacedInterface() = default; 28 : 29 : #ifdef MOOSE_KOKKOS_ENABLED 30 : /** 31 : * Special constructor used for Kokkos functor copy during parallel dispatch 32 : */ 33 : MeshDisplacedInterface(const MeshDisplacedInterface & object, 34 : const Moose::Kokkos::FunctorCopy & key); 35 : #endif 36 : 37 : /** 38 : * Called on this object when the displaced mesh gets updated 39 : */ 40 28665 : virtual void meshDisplaced() {} 41 : 42 : protected: 43 : /// Reference to FEProblemBase instance 44 : FEProblemBase & _mdi_feproblem; 45 : };