tGet CWD modifications - 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 a748a4672165f93a544a89f716782c325deb5c3a
(DIR) parent 46fe3e5726678846b72692a15f0c2abea5ff1bf9
(HTM) Author: Anders Damsgaard <adc@geo.au.dk>
Date: Thu, 23 Aug 2012 10:20:07 +0200
Get CWD modifications
Diffstat:
M src/main.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
(DIR) diff --git a/src/main.cpp b/src/main.cpp
t@@ -57,9 +57,9 @@ int main(int argc, char *argv[])
// Read path to current working directory
char *cwd;
- cwd = getcwd (0, 0);
- if (! cwd) { // Terminate program execution if path is not obtained
- fprintf (stderr, "getcwd failed: %s\n", strerror (errno));
+ cwd = getcwd(0, 0);
+ if (!cwd) { // Terminate program execution if path is not obtained
+ cerr << "Error: getcwd failed: " << strerror(errno) << '\n';
return 1; // Return unsuccessful exit status
}