LCOV - code coverage report
Current view: top level - src/multiapps - SamplerMultiApp.C (source / functions) Hit Total Coverage
Test: stochastic_tools Test Coverage Lines: 16 16 100.0 %
Date: 2017-11-18 13:35:36 Functions: 4 4 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             : // StochasticTools includes
       9             : #include "SamplerMultiApp.h"
      10             : 
      11             : template <>
      12             : InputParameters
      13          13 : validParams<SamplerMultiApp>()
      14             : {
      15          13 :   InputParameters params = validParams<TransientMultiApp>();
      16          26 :   params.addClassDescription("Creates a sub-application for each row of each Sampler matrix.");
      17          39 :   params.addParam<SamplerName>("sampler", "The Sampler object to utilize for creating MultiApps.");
      18          26 :   params.suppressParameter<std::vector<Point>>("positions");
      19          26 :   params.suppressParameter<bool>("output_in_position");
      20          26 :   params.suppressParameter<std::vector<FileName>>("positions_file");
      21          26 :   params.suppressParameter<Real>("move_time");
      22          26 :   params.suppressParameter<std::vector<Point>>("move_positions");
      23          26 :   params.suppressParameter<std::vector<unsigned int>>("move_apps");
      24          26 :   params.set<bool>("use_positions") = false;
      25          13 :   return params;
      26             : }
      27             : 
      28          13 : SamplerMultiApp::SamplerMultiApp(const InputParameters & parameters)
      29             :   : TransientMultiApp(parameters),
      30             :     SamplerInterface(this),
      31          26 :     _sampler(SamplerInterface::getSampler("sampler"))
      32             : {
      33          13 :   init(_sampler.getTotalNumberOfRows());
      34        1825 : }

Generated by: LCOV version 1.11