Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RadioObservatory
LOFAR
Commits
f413ca44
Commit
f413ca44
authored
6 years ago
by
Andre Offringa
Browse files
Options
Downloads
Patches
Plain Diff
Task #11550: Making smoothness constraint work with multiple pol, clean-up of SetWeights method
parent
a5b18bfe
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CEP/DP3/DPPP_DDECal/src/SmoothnessConstraint.cc
+6
-7
6 additions, 7 deletions
CEP/DP3/DPPP_DDECal/src/SmoothnessConstraint.cc
with
6 additions
and
7 deletions
CEP/DP3/DPPP_DDECal/src/SmoothnessConstraint.cc
+
6
−
7
View file @
f413ca44
...
...
@@ -37,21 +37,20 @@ std::vector<Constraint::Result> SmoothnessConstraint::Apply(
std
::
vector
<
std
::
vector
<
dcomplex
>
>&
solutions
,
double
,
std
::
ostream
*
)
{
std
::
vector
<
dcomplex
>
data
(
solutions
.
size
());
const
size_t
thread
=
#ifdef AOPROJECT
omp_get_thread_num
();
#else
LOFAR
::
OpenMP
::
threadNum
();
#endif
const
size_t
nPol
=
solutions
.
size
()
/
(
_nAntennas
*
_nDirections
);
#pragma omp parallel for
for
(
size_t
antDirIndex
=
0
;
antDirIndex
<
_nAntennas
*
_nDirections
;
++
antDirIndex
)
{
#ifdef AOPROJECT
const
size_t
thread
=
omp_get_thread_num
();
#else
const
size_t
thread
=
LOFAR
::
OpenMP
::
threadNum
();
#endif
size_t
antIndex
=
antDirIndex
/
_nDirections
;
for
(
size_t
pol
=
0
;
pol
!=
nPol
;
++
pol
)
{
size_t
solutionIndex
=
antDirIndex
*
4
+
pol
;
size_t
solutionIndex
=
antDirIndex
*
nPol
+
pol
;
for
(
size_t
ch
=
0
;
ch
!=
_nChannelBlocks
;
++
ch
)
{
// Flag channels where calibration yielded inf or nan
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment