LCOV - code coverage report
Current view: top level - include/transfers - SamplerTransfer.h (source / functions) Hit Total Coverage
Test: stochastic_tools Test Coverage Lines: 1 1 100.0 %
Date: 2017-11-21 14:52:30 Functions: 2 2 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /****************************************************************/
       2             : /* MOOSE - Multiphysics Object Oriented Simulation Environment  */
       3             : /*                                                              */
       4             : /*          All contents are licensed under LGPL V2.1           */
       5             : /*             See LICENSE for full restrictions                */
       6             : /****************************************************************/
       7             : 
       8             : #ifndef SAMPLERTRANSFER_H
       9             : #define SAMPLERTRANSFER_H
      10             : 
      11             : // MOOSE includes
      12             : #include "MultiAppTransfer.h"
      13             : #include "Sampler.h"
      14             : 
      15             : // Forward declarations
      16             : class SamplerTransfer;
      17             : class SamplerReceiver;
      18             : 
      19             : template <>
      20             : InputParameters validParams<SamplerTransfer>();
      21             : 
      22             : /**
      23             :  * Copy each row from each DenseMatrix to the sub-applications SamplerReceiver object.
      24             :  */
      25          15 : class SamplerTransfer : public MultiAppTransfer
      26             : {
      27             : public:
      28             :   SamplerTransfer(const InputParameters & parameters);
      29             :   virtual void execute() override;
      30             : 
      31             : protected:
      32             :   /**
      33             :    * Return the SamplerReceiver object and perform error checking.
      34             :    * @param app_index The global sup-app index
      35             :    */
      36             :   SamplerReceiver * getReceiver(unsigned int app_index,
      37             :                                 const std::vector<DenseMatrix<Real>> & samples);
      38             : 
      39             :   /// Storage for the list of parameters to control
      40             :   const std::vector<std::string> & _parameter_names;
      41             : 
      42             :   /// Pointer to the Sampler object used by the SamplerMultiApp
      43             :   Sampler * _sampler_ptr;
      44             : 
      45             :   /// The name of the SamplerReceiver Control object on the sub-application
      46             :   const std::string & _receiver_name;
      47             : 
      48             :   /// The matrix and row for each MultiApp
      49             :   std::vector<std::pair<unsigned int, unsigned int>> _multi_app_matrix_row;
      50             : };
      51             : 
      52             : #endif

Generated by: LCOV version 1.11