https://mooseframework.inl.gov
AdjointSolutionUserObject.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 "SolutionUserObjectBase.h"
13 
15 {
16 public:
18 
20 
21  virtual Real solutionSampleTime() override;
22 
26  virtual void initialSetup() override {}
27 
31  virtual void timestepSetup() override;
32 
33 protected:
36 
38  std::time_t _file_mod_time;
39 };
static InputParameters validParams()
const Real & _reverse_time_end
Mapping between adjoint simulation time and adjoint simulation time.
AdjointSolutionUserObject(const InputParameters &parameters)
std::time_t _file_mod_time
The system time of the last instance the file was loaded.
virtual Real solutionSampleTime() override
virtual void timestepSetup() override
This will read a the files again if they have been re-written from optimization iteration.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const InputParameters & parameters() const
virtual void initialSetup() override
Skipping parent class initialSetup since it will be called in timestepSetup.