https://mooseframework.inl.gov
StochasticToolsTransfer.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 #pragma once
10 
11 // MOOSE includes
12 #include "MultiAppTransfer.h"
13 #include "SamplerInterface.h"
14 
15 class Sampler;
16 
22 {
23 public:
25 
27 
29 
32  virtual void initializeFromMultiapp();
33  virtual void executeFromMultiapp();
34  virtual void finalizeFromMultiapp();
36 
38 
41  virtual void initializeToMultiapp();
42  virtual void executeToMultiapp();
43  virtual void finalizeToMultiapp();
45 
52 
59 
65  void setCurrentRow(const std::vector<Real> & row) { _row_data = row; }
66 
67 protected:
73  std::vector<Real> _row_data;
74 
77 };
dof_id_type _global_index
Index for tracking the row index when using batch mode operation.
Sampler * _sampler_ptr
Pointer to the Sampler object used by the SamplerTransientMultiApp or SamplerFullSolveMultiApp.
virtual void initializeFromMultiapp()
Methods for transferring data from sub-applications to the master application.
void setCurrentRow(const std::vector< Real > &row)
Method for keeping track of the row data when running in batch mode.
The class creates an additional API to allow Transfers to work when running the StochasticTools<FullS...
void setGlobalMultiAppIndex(dof_id_type index)
Method for setting the app index when running in batch mode.
dof_id_type _app_index
Index for the sub-app that the batch-mode multiapp is working on.
static InputParameters validParams()
const InputParameters & parameters() const
void setGlobalRowIndex(dof_id_type row)
Method for keeping track of the global row index when running in batch mode.
std::vector< Real > _row_data
The current row of data (comes from multiapp)
StochasticToolsTransfer(const InputParameters &parameters)
virtual void initializeToMultiapp()
Methods for transferring data to sub-applications to the master application.
uint8_t dof_id_type