LCOV - code coverage report
Current view: top level - include/mfem/transfers - MultiAppMFEMCopyTransfer.h (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 2bf808 Lines: 4 4 100.0 %
Date: 2025-07-17 01:28:37 Functions: 4 4 100.0 %
Legend: Lines: hit not hit

          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             : #ifdef MFEM_ENABLED
      11             : 
      12             : #pragma once
      13             : #include <vector>
      14             : 
      15             : #include "MultiAppTransfer.h"
      16             : #include "MultiApp.h"
      17             : #include "MooseAppCoordTransform.h"
      18             : #include "MFEMProblem.h"
      19             : 
      20             : class MooseMesh;
      21             : 
      22             : //*
      23             : // Copy MFEMVariables between multiapps
      24             : // The variables must be of the same type and dimension
      25             : // and the MFEMMesh must be identical in both multiapps
      26             : // */
      27             : 
      28             : class MultiAppMFEMCopyTransfer : public MultiAppTransfer
      29             : {
      30             : public:
      31             :   static InputParameters validParams();
      32             :   MultiAppMFEMCopyTransfer(InputParameters const & params);
      33             :   void execute() override;
      34          24 :   auto const & getFromVarName(int i) { return _from_var_names.at(i); };
      35          24 :   auto const & getToVarName(int i) { return _to_var_names.at(i); };
      36          24 :   auto numFromVar() { return _from_var_names.size(); }
      37          96 :   auto numToVar() { return _to_var_names.size(); }
      38             : 
      39             : protected:
      40             :   std::vector<VariableName> _from_var_names;
      41             :   std::vector<AuxVariableName> _to_var_names;
      42             : 
      43             :   void transfer(MFEMProblem & to_problem, MFEMProblem & from_problem);
      44             : 
      45             :   void checkSiblingsTransferSupported() const override;
      46             : };
      47             : 
      48             : #endif

Generated by: LCOV version 1.14