Commit 7887b7ff authored by adelmann's avatar adelmann 🎗

proper type and init of phase space dump counter

parent 7bf1d6ba
......@@ -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
}
......@@ -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.
......
......@@ -240,7 +240,7 @@ private:
h5_file_t *H5fileS_m;
/// Current record, or time step, of H5 file.
h5_int64_t H5call_m;
int 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
***************************************************************************/
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment