https://mooseframework.inl.gov
src
mfem
problem_operators
TimeDomainProblemOperator.C
Go to the documentation of this file.
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
#ifdef MFEM_ENABLED
11
12
#include "
TimeDomainProblemOperator.h
"
13
14
namespace
Moose::MFEM
15
{
16
std::vector<std::string>
17
GetTimeDerivativeNames
(std::vector<std::string> gridfunction_names)
18
{
19
std::vector<std::string> time_derivative_names;
20
for
(
auto
& gridfunction_name : gridfunction_names)
21
{
22
time_derivative_names.push_back(
GetTimeDerivativeName
(gridfunction_name));
23
}
24
return
time_derivative_names;
25
}
26
27
void
28
TimeDomainProblemOperator::SetGridFunctions
()
29
{
30
ProblemOperatorInterface::SetGridFunctions
();
31
width = height =
_block_true_offsets
[
_trial_variables
.size()];
32
}
33
34
}
// namespace Moose::MFEM
35
36
#endif
Moose::MFEM::GetTimeDerivativeNames
std::vector< std::string > GetTimeDerivativeNames(std::vector< std::string > gridfunction_names)
Definition:
TimeDomainProblemOperator.C:17
Moose::MFEM::ProblemOperatorInterface::_trial_variables
std::vector< mfem::ParGridFunction * > _trial_variables
Definition:
ProblemOperatorInterface.h:46
TimeDomainProblemOperator.h
Moose::MFEM::ProblemOperatorInterface::SetGridFunctions
virtual void SetGridFunctions()
Definition:
ProblemOperatorInterface.C:17
Moose::MFEM::ProblemOperatorInterface::_block_true_offsets
mfem::Array< int > _block_true_offsets
Definition:
ProblemOperatorInterface.h:29
Moose::MFEM::GetTimeDerivativeName
std::string GetTimeDerivativeName(std::string name)
Definition:
MFEMContainers.h:193
Moose::MFEM
Definition:
MFEMContainers.h:22
Moose::MFEM::TimeDomainProblemOperator::SetGridFunctions
void SetGridFunctions() override
Definition:
TimeDomainProblemOperator.C:28
Generated on Thu Jul 17 2025 01:32:14 for https://mooseframework.inl.gov by
1.8.14