Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
S
src
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
71
Issues
71
List
Boards
Labels
Service Desk
Milestones
Merge Requests
5
Merge Requests
5
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Code Review
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OPAL
src
Commits
44eb0770
Commit
44eb0770
authored
Jul 14, 2015
by
kraus
Committed by
kraus
Jul 14, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixing H5Part output of simulation with follow-up tracks
parent
8835961b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
src/Track/TrackRun.cpp
src/Track/TrackRun.cpp
+17
-1
No files found.
src/Track/TrackRun.cpp
View file @
44eb0770
...
...
@@ -226,11 +226,12 @@ void TrackRun::execute() {
void
TrackRun
::
setupSliceTracker
()
{
OpalData
::
getInstance
()
->
setInOPALEnvMode
();
bool
isFollowupTrack
=
OPAL
->
hasSLBunchAllocated
()
&&
!
Options
::
scan
;
if
(
!
OPAL
->
hasSLBunchAllocated
())
{
*
gmsg
<<
"* ********************************************************************************** "
<<
endl
;
*
gmsg
<<
"* Selected Tracking Method == PARALLEL-SLICE, NEW TRACK"
<<
endl
;
*
gmsg
<<
"* ********************************************************************************** "
<<
endl
;
}
else
if
(
OPAL
->
hasSLBunchAllocated
()
&&
!
Options
::
scan
)
{
}
else
if
(
isFollowupTrack
)
{
*
gmsg
<<
"* ********************************************************************************** "
<<
endl
;
*
gmsg
<<
"* Selected Tracking Method == PARALLEL-SLICE, FOLLOWUP TRACK"
<<
endl
;
*
gmsg
<<
"* ********************************************************************************** "
<<
endl
;
...
...
@@ -247,6 +248,11 @@ void TrackRun::setupSliceTracker() {
OPAL
->
getRestartStep
(),
OpalData
::
getInstance
()
->
getRestartFileName
(),
H5_O_WRONLY
);
}
else
if
(
isFollowupTrack
)
{
phaseSpaceSink_m
=
new
H5PartWrapperForPS
(
OPAL
->
getInputBasename
()
+
std
::
string
(
".h5"
),
-
1
,
OPAL
->
getInputBasename
()
+
std
::
string
(
".h5"
),
H5_O_WRONLY
);
}
else
{
phaseSpaceSink_m
=
new
H5PartWrapperForPS
(
OPAL
->
getInputBasename
()
+
std
::
string
(
".h5"
),
H5_O_WRONLY
);
...
...
@@ -385,6 +391,11 @@ void TrackRun::setupTTracker(){
OPAL
->
getRestartStep
(),
OpalData
::
getInstance
()
->
getRestartFileName
(),
H5_O_WRONLY
);
}
else
if
(
isFollowupTrack
)
{
phaseSpaceSink_m
=
new
H5PartWrapperForPT
(
OPAL
->
getInputBasename
()
+
std
::
string
(
".h5"
),
-
1
,
OPAL
->
getInputBasename
()
+
std
::
string
(
".h5"
),
H5_O_WRONLY
);
}
else
{
phaseSpaceSink_m
=
new
H5PartWrapperForPT
(
OPAL
->
getInputBasename
()
+
std
::
string
(
".h5"
),
H5_O_WRONLY
);
...
...
@@ -508,6 +519,11 @@ void TrackRun::setupCyclotronTracker(){
OPAL
->
getRestartStep
(),
OpalData
::
getInstance
()
->
getRestartFileName
(),
H5_O_WRONLY
);
}
else
if
(
OPAL
->
hasBunchAllocated
()
&&
!
Options
::
scan
)
{
phaseSpaceSink_m
=
new
H5PartWrapperForPC
(
OPAL
->
getInputBasename
()
+
std
::
string
(
".h5"
),
-
1
,
OPAL
->
getInputBasename
()
+
std
::
string
(
".h5"
),
H5_O_WRONLY
);
}
else
{
phaseSpaceSink_m
=
new
H5PartWrapperForPC
(
OPAL
->
getInputBasename
()
+
std
::
string
(
".h5"
),
H5_O_WRONLY
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment