tfile_io.cpp: fix error message, thanks Simon - sphere - GPU-based 3D discrete element method algorithm with optional fluid coupling
(HTM) git clone git://src.adamsgaard.dk/sphere
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
(DIR) commit feec5954462d3a34b0a2aa9e142373e9a85e0f9f
(DIR) parent 04f7aa6ff1ec5eb78167e8b40fb399ed3f63a093
(HTM) Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Thu, 9 Feb 2023 13:13:37 +0100
file_io.cpp: fix error message, thanks Simon
Diffstat:
M src/file_io.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
(DIR) diff --git a/src/file_io.cpp b/src/file_io.cpp
t@@ -58,7 +58,7 @@ void DEM::readbin(const char *target)
if (nd != ND) {
cerr << "Dimensionality mismatch between dataset and this SPHERE "
- "program.\nThe dataset is " << nd
+ "program.\nThe dataset is " << nd
<< "D, this SPHERE binary is " << ND << "D.\n"
<< "This execution is terminating." << endl;
exit(-1); // Return unsuccessful exit status
t@@ -229,7 +229,7 @@ void DEM::readbin(const char *target)
ifs.read(as_bytes(params.nb0), sizeof(params.nb0));
ifs.read(as_bytes(params.sigma_b), sizeof(params.sigma_b));
ifs.read(as_bytes(params.tau_b), sizeof(params.tau_b));
- if (params.nb0 > 0)
+ if (params.nb0 > 0)
k.bonds = new uint2[params.nb0];
k.bonds_delta = new Float4[np];
k.bonds_omega = new Float4[np];
t@@ -424,7 +424,7 @@ void DEM::writebin(const char *target)
// Open output file
std::ofstream ofs(target, std::ios_base::binary);
if (!ofs) {
- std::cerr << "could create output binary file '"
+ std::cerr << "could not create output binary file '"
<< target << "'" << std::endl;
exit(1);
}