4#include "../../../catch2/catch.hpp"
6#define MX_NO_ERROR_REPORTS
15namespace unitTest::ao_sim_turbAtmosphere_test
25TEST_CASE(
"turbAtmosphere generates a one-layer subharmonic screen",
"[ao::sim::turbAtmosphere]" )
36 atmosphereT atmosphere;
37 atmosphere.setup( 64, 0, &aosys, 1 );
38 atmosphere.retain(
true );
39 atmosphere.setLayers( 192 );
40 atmosphere.normVar().seed( 67890 );
41 atmosphere.genLayers();
43 REQUIRE( atmosphere.nLayers() == 1 );
44 REQUIRE( atmosphere.layer( 0 ).m_phase.isFinite().all() );
45 REQUIRE( atmosphere.layer( 0 ).m_phase.square().sum() > 0 );
Declares and defines an analytical AO system.
void setSingleLayer(realT r0, realT lam0, realT L0, realT l0, realT lz, realT vw, realT dir)
Set a single layer model.
Describes an analytic adaptive optics (AO) system.
void D(realT nD)
Set the value of the primary mirror diameter.
void lam_sci(realT nlam)
Set the science wavelength.
TEST_CASE("turbAtmosphere generates a one-layer subharmonic screen", "[ao::sim::turbAtmosphere]")
Verifies a configured one-layer atmosphere produces a finite phase screen.
AO-system test type that forces local template instantiation under sanitizers.
A turbulent atmosphere simulator.
Declaration and definition of a turbulent atmosphere.