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 "TwoMaterialPropertyInterface.h" 11 : #include "MaterialData.h" 12 : #include "InputParameters.h" 13 : #include "FEProblemBase.h" 14 : 15 : InputParameters 16 1380425 : TwoMaterialPropertyInterface::validParams() 17 : { 18 : 19 : // Objects inheriting from TwoMaterialPropertyInterface rely on Boundary MaterialData 20 1380425 : InputParameters params = MaterialPropertyInterface::validParams(); 21 1380425 : params.set<Moose::MaterialDataType>("_material_data_type") = Moose::BOUNDARY_MATERIAL_DATA; 22 1380425 : return params; 23 0 : } 24 : 25 14098 : TwoMaterialPropertyInterface::TwoMaterialPropertyInterface( 26 : const MooseObject * moose_object, 27 : const std::set<SubdomainID> & blocks_ids, 28 14098 : const std::set<BoundaryID> & boundary_ids) 29 : : MaterialPropertyInterface(moose_object, blocks_ids, boundary_ids), 30 42294 : _neighbor_material_data(_mi_feproblem.getMaterialData(Moose::NEIGHBOR_MATERIAL_DATA, 31 14098 : _mi_params.get<THREAD_ID>("_tid"))) 32 : { 33 14098 : }