tChanged format for writing, and contact model value report - sphere - GPU-base… | |
git clone git://src.adamsgaard.dk/sphere | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit 842f88c6dc91a14bf7d8fea33f5f6eb16f06b652 | |
parent 73fc6c1a3ca9364ec5a963d5ccaaa6a0975b5742 | |
Author: Anders Damsgaard <[email protected]> | |
Date: Thu, 8 Nov 2012 12:25:18 +0100 | |
Changed format for writing, and contact model value report | |
Diffstat: | |
M src/sphere.cpp | 4 ++-- | |
1 file changed, 2 insertions(+), 2 deletions(-) | |
--- | |
diff --git a/src/sphere.cpp b/src/sphere.cpp | |
t@@ -40,7 +40,7 @@ DEM::DEM(const std::string inputbin, | |
reportValues(); | |
// Write initial data to output/<sid>.output0.bin | |
- writebin(("output/" + sid + ".output0.bin").c_str()); | |
+ writebin(("output/" + sid + ".output0000.bin").c_str()); | |
// Initialize CUDA | |
initializeGPU(); | |
t@@ -214,7 +214,7 @@ void DEM::reportValues() | |
else if (params.contactmodel == 3) | |
cout << " - Contact model: Nonlinear-elastic-visco-frictional\n"; | |
else { | |
- cerr << "Error: Contact model value not understood.\n"; | |
+ cerr << "Error: Contact model value (" << params.contactmodel << ") not un… | |
exit(1); | |
} | |