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
7887b7ff
Commit
7887b7ff
authored
Jun 16, 2015
by
adelmann
🎗
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
proper type and init of phase space dump counter
parent
7bf1d6ba
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
8 deletions
+13
-8
src/Algorithms/ParallelCyclotronTracker.cpp
src/Algorithms/ParallelCyclotronTracker.cpp
+5
-3
src/Structure/DataSink.cpp
src/Structure/DataSink.cpp
+6
-3
src/Structure/DataSink.h
src/Structure/DataSink.h
+2
-2
No files found.
src/Algorithms/ParallelCyclotronTracker.cpp
View file @
7887b7ff
...
...
@@ -117,7 +117,8 @@ ParallelCyclotronTracker::ParallelCyclotronTracker(const Beamline &beamline,
myNode_m
(
Ippl
::
myNode
()),
initialLocalNum_m
(
0
),
initialTotalNum_m
(
0
),
opalRing_m
(
NULL
)
{
opalRing_m
(
NULL
),
lastDumpedStep_m
(
0
)
{
itsBeamline
=
dynamic_cast
<
Beamline
*>
(
beamline
.
clone
());
}
...
...
@@ -146,7 +147,8 @@ ParallelCyclotronTracker::ParallelCyclotronTracker(const Beamline &beamline,
myNode_m
(
Ippl
::
myNode
()),
initialLocalNum_m
(
bunch
.
getLocalNum
()),
initialTotalNum_m
(
bunch
.
getTotalNum
()),
opalRing_m
(
NULL
)
{
opalRing_m
(
NULL
),
lastDumpedStep_m
(
0
)
{
itsBeamline
=
dynamic_cast
<
Beamline
*>
(
beamline
.
clone
());
itsBunch
=
&
bunch
;
itsDataSink
=
&
ds
;
...
...
@@ -5621,4 +5623,4 @@ void ParallelCyclotronTracker::evaluateSpaceChargeField() {
localToGlobal
(
itsBunch
->
Bf
,
phi
);
localToGlobal
(
itsBunch
->
R
,
phi
,
meanR
);
}
}
\ No newline at end of file
}
src/Structure/DataSink.cpp
View file @
7887b7ff
...
...
@@ -37,12 +37,14 @@ using namespace std;
DataSink
::
DataSink
()
:
lossWrCounter_m
(
0
),
doHDF5_m
(
true
),
h5wrapper_m
(
NULL
)
h5wrapper_m
(
NULL
),
H5call_m
(
0
)
{
}
DataSink
::
DataSink
(
H5PartWrapper
*
h5wrapper
,
int
restartStep
)
:
lossWrCounter_m
(
0
),
h5wrapper_m
(
h5wrapper
)
h5wrapper_m
(
h5wrapper
),
H5call_m
(
0
)
{
namespace
fs
=
boost
::
filesystem
;
...
...
@@ -83,7 +85,8 @@ DataSink::DataSink(H5PartWrapper *h5wrapper, int restartStep):
DataSink
::
DataSink
(
H5PartWrapper
*
h5wrapper
)
:
lossWrCounter_m
(
0
),
h5wrapper_m
(
h5wrapper
)
h5wrapper_m
(
h5wrapper
),
H5call_m
(
0
)
{
/// Constructor steps:
/// Get timers from IPPL.
...
...
src/Structure/DataSink.h
View file @
7887b7ff
...
...
@@ -240,7 +240,7 @@ private:
h5_file_t
*
H5fileS_m
;
/// Current record, or time step, of H5 file.
h5_int64_
t
H5call_m
;
in
t
H5call_m
;
/// Timer to track statistics write time.
IpplTimings
::
TimerRef
StatMarkerTimer_m
;
...
...
@@ -311,4 +311,4 @@ std::string DataSink::convertToString(int number) {
/***************************************************************************
* $RCSfile: DataSink.h,v $ $Author: adelmann $
* $Revision: 1.1.1.1 $ $Date: 2003/01/23 13:29:44 $
***************************************************************************/
\ No newline at end of file
***************************************************************************/
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