https://mooseframework.inl.gov
OptimizationReporterTest.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 #include "GeneralUserObject.h"
13 #include "libmesh/petsc_vector.h"
14 
21 {
22 public:
24 
26 
27  void initialSetup() override;
28  void initialize() override{};
29  void execute() override;
30  void finalize() override{};
31 
32 private:
36  std::unique_ptr<libMesh::PetscVector<Number>> _optSolverParameters;
37 };
static InputParameters validParams()
Base class for optimization objects, implements routines for calculating misfit.
std::unique_ptr< libMesh::PetscVector< Number > > _optSolverParameters
const libMesh::Parallel::Communicator _my_comm
Communicator used for operations.
OptimizationReporterBase * _optReporter
A UserObject that tests the requesting of Reporter values that are actually correct.
OptimizationReporterTest(const InputParameters &params)