https://mooseframework.inl.gov
PODResidualTransfer.h
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 #pragma once
11 
12 // MOOSE includes
14 
20 {
21 public:
24 
26 
29  virtual void initializeFromMultiapp() override{};
30  virtual void executeFromMultiapp() override;
31  virtual void finalizeFromMultiapp() override{};
33 
34 protected:
39  virtual void execute() override;
40 
41 private:
45  void transferResidual(dof_id_type base_i, dof_id_type multi_app_i);
46 };
const InputParameters & parameters() const
Transfer solutions from sub-applications to a container in a Trainer.
virtual void finalizeFromMultiapp() override
virtual void executeFromMultiapp() override
PODResidualTransfer(const InputParameters &parameters)
Transfers residuals for given variables and vector tags from a sub-subapplication to a PODReducedBasi...
static InputParameters validParams()
void transferResidual(dof_id_type base_i, dof_id_type multi_app_i)
Adds the variable-residuals to the trainer.
virtual void initializeFromMultiapp() override
Methods used when running in batch mode (see SamplerFullSolveMultiApp)
virtual void execute() override
Transfer callback that will transfer residuals with given tags from the subapplication.
uint8_t dof_id_type