Skip to content

Commit

Permalink
Parallelize the calculation for the deconvolved beam model image
Browse files Browse the repository at this point in the history
  • Loading branch information
markccchiang committed Apr 11, 2024
1 parent d9f4cec commit 42ac0fe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ImageFitter/ImageFitter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ bool ImageFitter::GetDeconvolvedResults(casacore::ImageInterface<float>* image,
double sigma_y = gauss.minor.getValue() / 2.355;
double theta = std::cos((casacore::C::pi * 90 / 180) - gauss.pa.getValue());

#pragma omp parallel for
for (int i = 0; i < data_size; ++i) {
size_t row = i % width;
size_t col = i / width;
Expand Down

0 comments on commit 42ac0fe

Please sign in to comment.