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