ReFRACtor
atmosphere_fixture.cc
Go to the documentation of this file.
1 #include "atmosphere_fixture.h"
2 #include "pressure_fixed_level.h"
3 using namespace FullPhysics;
4 using namespace blitz;
5 
7 {
8  atm = dynamic_cast<const AtmosphereOco&>(*config_atmosphere).clone();
9  press_level = config_pressure_level_input;
10 
11  // Create a new SV for our cloned Atmosphere to use
12  statev.reset(new StateVector);
13  statev->add_observer(*atm);
14 
15  // Need to reattach the cloned atmosphere components to the SV one by one as done in the Lua config and in the same order
16  atm->attach_children_to_sv(*statev);
17 
18  statev->update_state(config_initial_guess->initial_guess());
19 }
20 
23 {
24  atm->set_surface_pressure_for_testing(x);
25 }
26 
boost::shared_ptr< AtmosphereOco > clone() const
This clones a Atmosphere object.
Apply value function to a blitz array.
void set_surface_pressure(double x)
Set the surface pressure of the atmosphere.
This handles informing a set of interested objects when the state vector has updated.
Definition: state_vector.h:16
Contains classes to abstract away details in various Spurr Radiative Transfer software.
Definition: doxygen_python.h:1
This class maintains the atmosphere portion of the state, and uses this to set up the atmosphere and ...

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