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
c3006ba9
Commit
c3006ba9
authored
14 years ago
by
Jan David Mol
Browse files
Options
Downloads
Patches
Plain Diff
bug 1362: forward PLC connection info into the Parset class
parent
44e88855
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
MAC/APL/Appl_Controller/startBGL.sh
+7
-0
7 additions, 0 deletions
MAC/APL/Appl_Controller/startBGL.sh
RTCP/Interface/include/Interface/Parset.h
+30
-0
30 additions, 0 deletions
RTCP/Interface/include/Interface/Parset.h
with
37 additions
and
0 deletions
MAC/APL/Appl_Controller/startBGL.sh
+
7
−
0
View file @
c3006ba9
...
@@ -11,6 +11,8 @@
...
@@ -11,6 +11,8 @@
#
#
# all ACC processes expect to be started with "ACC" as first parameter
# all ACC processes expect to be started with "ACC" as first parameter
JOBNAME
=
$1
.
/opt/lofar/etc/BlueGeneControl.conf
.
/opt/lofar/etc/BlueGeneControl.conf
# Select the newest parset in the list. Multiple file names are supported
# Select the newest parset in the list. Multiple file names are supported
...
@@ -30,5 +32,10 @@ done
...
@@ -30,5 +32,10 @@ done
sed
-i
's/.*OLAP.CNProc.integrationSteps.*//'
$PARSET
sed
-i
's/.*OLAP.CNProc.integrationSteps.*//'
$PARSET
sed
-i
's/.*OLAP.IONProc.integrationSteps.*//'
$PARSET
sed
-i
's/.*OLAP.IONProc.integrationSteps.*//'
$PARSET
(
echo
"OLAP.IONProc.PLC_ProcID =
$JOBNAME
"
echo
"OLAP.IONProc.PLC_controlled = T"
)
>>
$PARSET
# Inject the parset into the correlator
# Inject the parset into the correlator
$BINPATH
/runParset.py
-P
$PARTITION
parset
=
$PARSET
>>
/opt/lofar/log/run.runParset.py.log 2>&1 &
$BINPATH
/runParset.py
-P
$PARTITION
parset
=
$PARSET
>>
/opt/lofar/log/run.runParset.py.log 2>&1 &
This diff is collapsed.
Click to expand it.
RTCP/Interface/include/Interface/Parset.h
+
30
−
0
View file @
c3006ba9
...
@@ -191,6 +191,11 @@ public:
...
@@ -191,6 +191,11 @@ public:
string
constructSubbandFilename
(
const
string
&
mask
,
unsigned
subband
)
const
;
string
constructSubbandFilename
(
const
string
&
mask
,
unsigned
subband
)
const
;
string
constructBeamFormedFilename
(
const
string
&
mask
,
unsigned
beam
,
unsigned
stokes
,
unsigned
file
)
const
;
string
constructBeamFormedFilename
(
const
string
&
mask
,
unsigned
beam
,
unsigned
stokes
,
unsigned
file
)
const
;
bool
PLC_controlled
()
const
;
string
PLC_ProcID
()
const
;
string
PLC_Host
()
const
;
uint32
PLC_Port
()
const
;
private
:
private
:
const
std
::
string
itsName
;
const
std
::
string
itsName
;
...
@@ -726,6 +731,31 @@ inline string Parset::targetHost(const string &prefix, const string &filename) c
...
@@ -726,6 +731,31 @@ inline string Parset::targetHost(const string &prefix, const string &filename) c
return
""
;
return
""
;
}
}
inline
bool
Parset
::
PLC_controlled
()
const
{
return
getBool
(
"OLAP.IONProc.PLC_controlled"
,
false
);
}
inline
string
Parset
::
PLC_ApplID
()
const
{
return
getString
(
"ApplCtrl.application"
,
"CorrAppl"
);
}
inline
string
Parset
::
PLC_ProcID
()
const
{
return
getString
(
"OLAP.IONProc.PLC_ProcID"
,
"CorrProc"
);
}
inline
string
Parset
::
PLC_Host
()
const
{
return
getString
(
str
(
format
(
"%s.%s._ACnode"
)
%
PLC_ApplID
()
%
PLC_ProcID
()));
}
inline
uint32
Parset
::
PLC_Port
()
const
{
return
getUint32
(
str
(
format
(
"%s.%s._ACport"
)
%
PLC_ApplID
()
%
PLC_ProcID
()));
}
}
// namespace RTCP
}
// namespace RTCP
}
// namespace LOFAR
}
// namespace LOFAR
...
...
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