forked from idaholab/moose
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMultiAppMFEMCopyTransfer.h
More file actions
40 lines (33 loc) · 1.28 KB
/
MultiAppMFEMCopyTransfer.h
File metadata and controls
40 lines (33 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//* This file is part of the MOOSE framework
//* https://mooseframework.inl.gov
//*
//* All rights reserved, see COPYRIGHT for full restrictions
//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
//*
//* Licensed under LGPL 2.1, please see LICENSE for details
//* https://www.gnu.org/licenses/lgpl-2.1.html
#ifdef MOOSE_MFEM_ENABLED
#pragma once
#include "MFEMMultiAppTransfer.h"
#include "MFEMProblem.h"
/**
* Transfer to copy MFEMVariables between multiapps.
* The variables must be of the same type and dimension
* and the MFEMMesh must be identical in both multiapps
*/
class MultiAppMFEMCopyTransfer : public MFEMMultiAppTransfer
{
public:
static InputParameters validParams();
MultiAppMFEMCopyTransfer(InputParameters const & params);
protected:
/// Transfer all variables from active source problem to active destination problem.
virtual void transferVariables(bool is_target_local) override;
/// Check number of source and target child apps match for sibling transfer
void checkSiblingsTransferSupported() const override;
/// Set current MFEM problem to fetch source variables from
virtual MFEMProblem & getActiveFromProblem() override;
/// Set current MFEM problem to fetch destination variables from
virtual MFEMProblem & getActiveToProblem() override;
};
#endif