ReFRACtor
solver_iteration_log.h
Go to the documentation of this file.
1 #ifndef SOLVER_ITER_LOG_H
2 #define SOLVER_ITER_LOG_H
3 #include "iterative_solver.h"
4 #include "state_vector.h"
5 #include "logger.h"
6 
7 namespace FullPhysics {
8  /****************************************************************/
18  class SolverIterationLog : public Printable<SolverIterationLog>, public Observer<IterativeSolver> {
19  public:
20  static const int SV_PRINT_WIDTH = 17;
21 
23 
24  void notify_update(const IterativeSolver& solver);
25 
26  virtual void print(std::ostream& Os) const { Os << "SolverIterationLog";}
27  private:
29 };
30 }
31 #endif
This is an observer of IterativeSolver that writes out the state vector values in a nicely formated w...
This is a Mixin for classes that can be printed.
Definition: printable.h:24
virtual void print(std::ostream &Os) const
void notify_update(const IterativeSolver &solver)
Called when the Observed object is updated.
SolverIterationLog(const boost::shared_ptr< StateVector > &Sv)
Contains classes to abstract away details in various Spurr Radiative Transfer software.
Definition: doxygen_python.h:1
The base class for all iterative optimizers.
Simple Mixin to be and Observer of another object of class T.
Definition: observer.h:29

Copyright © 2017, California Institute of Technology.
ALL RIGHTS RESERVED.
U.S. Government Sponsorship acknowledged.
Generated Fri Aug 24 2018 15:44:10