13 #include <boost/scoped_ptr.hpp> 14 #include <boost/test/unit_test.hpp> 17 #include "eckit/config/LocalConfiguration.h" 32 nobias_.reset(
new eckit::LocalConfiguration());
35 boost::scoped_ptr<lorenz95::Resolution>
resol_;
36 boost::scoped_ptr<const eckit::LocalConfiguration>
covconf_;
37 boost::scoped_ptr<const eckit::LocalConfiguration>
nobias_;
46 BOOST_CHECK_EQUAL(bcovar.
active(),
true);
51 BOOST_CHECK_EQUAL(bcovar.
active(),
false);
67 double stdev = covconf_->getDouble(
"standard_deviation");
68 BOOST_CHECK_EQUAL(dbias2.
bias(), dbias1.
bias() * stdev * stdev);
81 BOOST_CHECK_EQUAL(dbias2.
bias(), 0.0);
93 double stdev = covconf_->getDouble(
"standard_deviation");
94 BOOST_CHECK_EQUAL(dbias2.
bias(), dbias1.
bias() *1.0 / (stdev * stdev));
107 BOOST_CHECK_EQUAL(dbias2.
bias(), 0.0);
112 BOOST_CHECK_EQUAL(bcovar.
active(),
true);
116 BOOST_AUTO_TEST_SUITE_END()
void inverseMultiply(const ModelBiasCorrection &, ModelBiasCorrection &) const
boost::scoped_ptr< lorenz95::Resolution > resol_
boost::scoped_ptr< const eckit::LocalConfiguration > covconf_
boost::scoped_ptr< const eckit::LocalConfiguration > nobias_
BOOST_AUTO_TEST_CASE(test_GomL95_constructor)
static const eckit::Configuration & config()
void multiply(const ModelBiasCorrection &, ModelBiasCorrection &) const