diff --git a/include/MaskApp.h b/include/MaskApp.h index 7a58502..2fb3ecd 100644 --- a/include/MaskApp.h +++ b/include/MaskApp.h @@ -33,7 +33,7 @@ namespace Mask { std::string m_outfile_name; RxnType m_rxn_type; - uint64_t m_nsamples; + uint32_t m_nsamples; }; diff --git a/include/MaskFile.h b/include/MaskFile.h index a085f7b..0f82c81 100644 --- a/include/MaskFile.h +++ b/include/MaskFile.h @@ -49,26 +49,26 @@ namespace Mask { FileType file_type; std::string filename; - unsigned int buffer_position; - unsigned int buffer_end; - unsigned int data_size; + uint32_t buffer_position; + uint32_t buffer_end; + uint32_t data_size; RxnType m_rxn_type; - int buffersize_bytes; + uint32_t buffersize_bytes; std::fstream file; std::vector data_buffer; - static constexpr int onestep_rxn_n = 2; - static constexpr int twostep_rxn_n = 4; - static constexpr int threestep_rxn_n = 6; + static constexpr uint32_t onestep_rxn_n = 2; + static constexpr uint32_t twostep_rxn_n = 4; + static constexpr uint32_t threestep_rxn_n = 6; - static constexpr int buffersize = 10000; //number of events + static constexpr uint64_t buffersize = 10000; //number of events static constexpr int width = 0; static constexpr int precision = 3; static constexpr std::size_t double_size = sizeof(double); - static constexpr std::size_t int_size = sizeof(int); + static constexpr std::size_t int_size = sizeof(uint32_t); static constexpr std::size_t bool_size = sizeof(bool); }; diff --git a/src/MaskApp.cpp b/src/MaskApp.cpp index aa4ba38..d75f78e 100644 --- a/src/MaskApp.cpp +++ b/src/MaskApp.cpp @@ -226,11 +226,11 @@ namespace Mask { //For progress tracking - uint64_t percent5 = 0.05*m_nsamples; - uint64_t count = 0; - uint64_t npercent = 0; + uint32_t percent5 = 0.05*m_nsamples; + uint32_t count = 0; + uint32_t npercent = 0; - for(uint64_t i=0; i