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 : #include "QuadInterWrapperBaseIC.h" 11 : #include "QuadInterWrapperMesh.h" 12 : #include "FEProblemBase.h" 13 : 14 : InputParameters 15 136 : QuadInterWrapperBaseIC::validParams() 16 : { 17 136 : return InitialCondition::validParams(); 18 : } 19 : 20 105 : QuadInterWrapperBaseIC::QuadInterWrapperBaseIC(const InputParameters & params) 21 105 : : InitialCondition(params), _mesh(getMesh(_fe_problem.mesh())) 22 : { 23 105 : } 24 : 25 : const QuadInterWrapperMesh & 26 105 : QuadInterWrapperBaseIC::getMesh(const MooseMesh & mesh) 27 : { 28 105 : const QuadInterWrapperMesh * m = dynamic_cast<const QuadInterWrapperMesh *>(&mesh); 29 105 : if (m) 30 105 : return static_cast<const QuadInterWrapperMesh &>(mesh); 31 : else 32 0 : mooseError(name(), 33 : ": This initial condition works only with quadrilateral mesh. Update your input " 34 : "file to use [QuadInterWrapperMesh] block for mesh."); 35 : }