ReFRACtor
FullPhysics::AerosolConsolidatedOutput Class Reference

This registers the portions of the Aerosol class that should be written as output. More...

#include <aerosol_consolidated_output.h>

+ Inheritance diagram for FullPhysics::AerosolConsolidatedOutput:
+ Collaboration diagram for FullPhysics::AerosolConsolidatedOutput:

Public Member Functions

 AerosolConsolidatedOutput (const boost::shared_ptr< Aerosol > &Aerosol, const std::vector< std::string > &All_aer_names)
 Constructor. More...
 
virtual ~AerosolConsolidatedOutput ()
 
virtual std::string desc () const
 Description of object, to be printed to stream. More...
 
virtual void print (std::ostream &Os) const
 Print to stream. More...
 
std::string print_to_string () const
 Print to string. More...
 
virtual void register_output (const boost::shared_ptr< Output > &out) const
 Register portions of class that will be written to output. More...
 
virtual void register_output_apriori (const boost::shared_ptr< Output > &out) const
 Register apriori portions of class. More...
 

Static Public Attributes

static const double high_boundary
 
static const double low_boundary
 

Detailed Description

This registers the portions of the Aerosol class that should be written as output.

Creates consolidated matrices with fill values for aerosol types not used.

Creates: aerosol_gaussian_log_param - num_all_aer * 3 aerosol_gaussian_log_param_apriori - num_all_aer * 3 aerosol_gaussian_log_param_uncert - num_all_aer * 3 aerosol_aod - num_all_aer * num_aod

Where num_aod = 4 : [total, low, mid, high]

See the discussion in RegisterOutputBase why this isn't just part of the Aerosol class.

Definition at line 26 of file aerosol_consolidated_output.h.

Constructor & Destructor Documentation

◆ AerosolConsolidatedOutput()

AerosolConsolidatedOutput::AerosolConsolidatedOutput ( const boost::shared_ptr< Aerosol > &  Aerosol,
const std::vector< std::string > &  All_aer_names 
)

Constructor.

All_aer_names defines the aerosol type index of the output matrix

Definition at line 153 of file aerosol_consolidated_output.cc.

◆ ~AerosolConsolidatedOutput()

virtual FullPhysics::AerosolConsolidatedOutput::~AerosolConsolidatedOutput ( )
inlinevirtual

Definition at line 35 of file aerosol_consolidated_output.h.

Member Function Documentation

◆ desc()

virtual std::string FullPhysics::RegisterOutputBase::desc ( ) const
inlinevirtualinherited

Description of object, to be printed to stream.

This gives a cleaner interface for deriving from python.

Reimplemented in FullPhysics::HighResSpectrumOutput.

Definition at line 83 of file register_output_base.h.

◆ print()

virtual void FullPhysics::RegisterOutputBase::print ( std::ostream &  Os) const
inlinevirtualinherited

Print to stream.

The default calls the function "desc" that returns a string. This gives cleaner interface for deriving from this class in python, but most C++ classes will want to override this function rather than using desc.

Definition at line 76 of file register_output_base.h.

◆ print_to_string()

std::string FullPhysics::Printable< RegisterOutputBase >::print_to_string ( ) const
inlineinherited

Print to string.

This is primarily useful for SWIG wrappers to this class, e.g. a to_s method in ruby.

Definition at line 31 of file printable.h.

◆ register_output()

void AerosolConsolidatedOutput::register_output ( const boost::shared_ptr< Output > &  out) const
virtual

Register portions of class that will be written to output.

This is for the final statevector, for classes where apriori and final are written out different.

Implements FullPhysics::RegisterOutputBase.

Definition at line 179 of file aerosol_consolidated_output.cc.

◆ register_output_apriori()

void AerosolConsolidatedOutput::register_output_apriori ( const boost::shared_ptr< Output > &  out) const
virtual

Register apriori portions of class.

The default is not to have anything written out, but derived classes can override this.

Note that by convention that we "freeze" the state of the class when we register the apriori_output. This allows for things like the StateVector to be changed after wards without changing the apriori state.

Reimplemented from FullPhysics::RegisterOutputBase.

Definition at line 169 of file aerosol_consolidated_output.cc.

Member Data Documentation

◆ high_boundary

const double FullPhysics::AerosolConsolidatedOutput::high_boundary
static

Definition at line 39 of file aerosol_consolidated_output.h.

◆ low_boundary

const double FullPhysics::AerosolConsolidatedOutput::low_boundary
static

Definition at line 38 of file aerosol_consolidated_output.h.


The documentation for this class was generated from the following files:

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