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
75
Issues
75
List
Boards
Labels
Service Desk
Milestones
Merge Requests
7
Merge Requests
7
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
6eb60cca
Commit
6eb60cca
authored
Nov 25, 2020
by
ext-calvo_p
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix hasTime condition
parent
9170b265
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
src/Classic/Structure/LossDataSink.cpp
src/Classic/Structure/LossDataSink.cpp
+7
-4
No files found.
src/Classic/Structure/LossDataSink.cpp
View file @
6eb60cca
...
...
@@ -241,11 +241,14 @@ void LossDataSink::writeHeaderH5() {
void
LossDataSink
::
writeHeaderASCII
()
{
os_m
<<
"# Element "
<<
element_m
<<
" x (m), y (m), z (m), px ( ), py ( ), pz ( ), id"
;
if
(
hasTimeAttribute
())
{
os_m
<<
", turn, bunchNumber, time (ns) "
;
bool
hasTime
=
hasTimeAttribute
();
if
(
Ippl
::
myNode
()
==
0
)
{
os_m
<<
"# Element "
<<
element_m
<<
" x (m), y (m), z (m), px ( ), py ( ), pz ( ), id"
;
if
(
hasTime
)
{
os_m
<<
", turn, bunchNumber, time (ns) "
;
}
os_m
<<
std
::
endl
;
}
os_m
<<
std
::
endl
;
}
...
...
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