ReFRACtor
|
This is a test fixture that creates an Atmosphere and related Statevector based on the unit test data set up in ConfigurationFixture. More...
#include <atmosphere_fixture.h>
Public Member Functions | |
AtmosphereFixture () | |
virtual | ~AtmosphereFixture () |
std::string | absco_4d_dir () const |
Location of absco 4d table. More... | |
std::string | absco_data_dir () const |
Location of absco table. More... | |
void | add_file_to_cleanup (const std::string &Fname) |
SpectralDomain | highres_grid (int Spec_index) const |
DoubleWithUnit | ils_half_width (int Spec_index) const |
Useful function that appears in a few tests, so collect here. More... | |
std::string | input_dir () const |
Directory where input data such as static input files and default Lua configuration files are located. More... | |
SpectralDomain | lowres_grid (int Spec_index) const |
std::string | merra_data_dir () const |
Location of merra data. More... | |
void | set_surface_pressure (double x) |
Set the surface pressure of the atmosphere. More... | |
int | state_vector_size () const |
std::string | test_data_dir () const |
Directory where test data is. More... | |
void | turn_on_logger () const |
Normally log messages don't go anywhere, so we don't clutter our unit test output. More... | |
This is a test fixture that creates an Atmosphere and related Statevector based on the unit test data set up in ConfigurationFixture.
This is pretty similar to ConfigurationFixture, but we have created a state vector that just has a clone of the Atmosphere. The Atmsosphere clone gets created each time this Fixture is created, so we have a clean Atmosphere for testing (a previous test might have purposely put the Atmosphere in an error state). If you don't need a clean new Atmosphere each time, you might just want to use ConfigurationFixture.
Definition at line 22 of file atmosphere_fixture.h.
AtmosphereFixture::AtmosphereFixture | ( | ) |
Definition at line 6 of file atmosphere_fixture.cc.
|
inlinevirtual |
Definition at line 25 of file atmosphere_fixture.h.
|
inherited |
Location of absco 4d table.
Note that all of the Absco is going to be 4d in the future, so this can eventually go away. But for now most of the unit tests are 3d except for the few depending on the newer 4d tables.
Definition at line 140 of file global_fixture.cc.
|
inherited |
Location of absco table.
Definition at line 101 of file global_fixture.cc.
|
inlineinherited |
Definition at line 23 of file global_fixture.h.
|
inlineinherited |
Definition at line 67 of file configuration_fixture.h.
|
inlineinherited |
Useful function that appears in a few tests, so collect here.
Definition at line 62 of file configuration_fixture.h.
|
inherited |
Directory where input data such as static input files and default Lua configuration files are located.
Definition at line 63 of file global_fixture.cc.
|
inlineinherited |
Definition at line 64 of file configuration_fixture.h.
|
inherited |
Location of merra data.
Definition at line 119 of file global_fixture.cc.
void AtmosphereFixture::set_surface_pressure | ( | double | x | ) |
Set the surface pressure of the atmosphere.
Definition at line 22 of file atmosphere_fixture.cc.
|
inline |
Definition at line 38 of file atmosphere_fixture.h.
|
inherited |
Directory where test data is.
This already includes the trailing slash, so you can just do test_data_data() + "foo.txt" in your unit tests.
Definition at line 83 of file global_fixture.cc.
|
inherited |
Normally log messages don't go anywhere, so we don't clutter our unit test output.
But in some cases you may want to the logger turned on. This automatically gets turned off again at the end of the unit test.
Definition at line 52 of file global_fixture.cc.
boost::shared_ptr<AtmosphereOco> FullPhysics::AtmosphereFixture::atm |
Atmosphere read from ConfigurationFixture.
Definition at line 28 of file atmosphere_fixture.h.
|
inherited |
Definition at line 41 of file configuration_fixture.h.
|
inherited |
Definition at line 42 of file configuration_fixture.h.
|
inherited |
Definition at line 43 of file configuration_fixture.h.
|
inherited |
Definition at line 46 of file configuration_fixture.h.
|
inherited |
Definition at line 57 of file configuration_fixture.h.
|
inherited |
Definition at line 56 of file configuration_fixture.h.
|
inherited |
Definition at line 49 of file configuration_fixture.h.
|
inherited |
Definition at line 51 of file configuration_fixture.h.
|
inherited |
Definition at line 55 of file configuration_fixture.h.
|
inherited |
Definition at line 58 of file configuration_fixture.h.
|
inherited |
Definition at line 52 of file configuration_fixture.h.
|
inherited |
Definition at line 45 of file configuration_fixture.h.
|
inherited |
Definition at line 50 of file configuration_fixture.h.
|
inherited |
Definition at line 59 of file configuration_fixture.h.
|
inherited |
Definition at line 47 of file configuration_fixture.h.
|
inherited |
Definition at line 48 of file configuration_fixture.h.
|
inherited |
Definition at line 54 of file configuration_fixture.h.
|
inherited |
Definition at line 44 of file configuration_fixture.h.
|
inherited |
Definition at line 53 of file configuration_fixture.h.
|
inherited |
This is an epsilon that can be used to generate finite difference Jacobians for unit tests.
Definition at line 73 of file configuration_fixture.h.
|
inherited |
Definition at line 75 of file configuration_fixture.h.
boost::shared_ptr<PressureLevelInput> FullPhysics::AtmosphereFixture::press_level |
Pressure levels we have input data on.
Definition at line 31 of file atmosphere_fixture.h.
boost::shared_ptr<StateVector> FullPhysics::AtmosphereFixture::statev |
Statevector that atm is attached as an observer.
Definition at line 36 of file atmosphere_fixture.h.