6. Have `source_component_common::source_component_common` call `primary_beam_cuda::run_hyperbeam_cuda` with the correct number of antennas, and handle the results. #42
Will need to make source_component_common act upon the woden_settings->use_dipamps flag as it does malloc-ing for beam gains, so need to update that dependent on how many primary beams are being calculated.
Testing:
Write a new test, cmake_testing/CUDA_code/source_components/test_source_component_common_multi_antennas.c (based on test_source_component_common.c). For now, just run using three antennas and checking that the output beam values make sense
Need to update test_source_components_common.c to specify we only have one antenna. Nothing else should change in that test, so we can ensure we have broken anything.
Tested as working in 72ffa7911d3f6e81048df9924b8a4e56f6e2a077 via the cmake_testing/CUDA_code/source_components/test_source_component_common_multiants.c test
Will need to make
source_component_common
act upon thewoden_settings->use_dipamps
flag as it does malloc-ing for beam gains, so need to update that dependent on how many primary beams are being calculated.Testing:
cmake_testing/CUDA_code/source_components/test_source_component_common_multi_antennas.c
(based ontest_source_component_common.c
). For now, just run using three antennas and checking that the output beam values make sensetest_source_components_common.c
to specify we only have one antenna. Nothing else should change in that test, so we can ensure we have broken anything.