diff options
author | tradke <tradke@b589c3ab-70e8-4b4d-a09f-cba2dd200880> | 2001-08-10 23:39:33 +0000 |
---|---|---|
committer | tradke <tradke@b589c3ab-70e8-4b4d-a09f-cba2dd200880> | 2001-08-10 23:39:33 +0000 |
commit | c289f0870e4ff928b3528879ad12d6ef3705f840 (patch) | |
tree | 5ceb864786f462985dece47ab59e7e48e447729a | |
parent | 1e96877a7699b070030f9ec7215af56c1eedaeba (diff) |
Use IOUtil_CreateDirectory() to create output directories.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOBasic/trunk@99 b589c3ab-70e8-4b4d-a09f-cba2dd200880
-rw-r--r-- | src/Startup.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Startup.c b/src/Startup.c index b6b6068..c6eed2d 100644 --- a/src/Startup.c +++ b/src/Startup.c @@ -14,6 +14,7 @@ #include "cctk.h" #include "cctk_Parameters.h" +#include "CactusBase/IOUtil/src/ioutil_Utils.h" #include "iobasicGH.h" static const char *rcsid = "$Header$"; @@ -174,16 +175,16 @@ static void *IOBasic_SetupGH (tFleshConfig *config, /* create the output dir */ if (*newGH->outdirScalar && CCTK_MyProc (GH) == 0) { - i = CCTK_CreateDirectory (0755, newGH->outdirScalar); + i = IOUtil_CreateDirectory (GH, newGH->outdirScalar, 0, 0); if (i < 0) { CCTK_VWarn (1, __LINE__, __FILE__, CCTK_THORNSTRING, "IOBasic_SetupGH: Couldn't create Scalar output directory " "'%s'", newGH->outdirScalar); } - else if (i > 0) + else if (i > 0 && CCTK_Equals (newverbose, "full")) { - CCTK_VWarn (2, __LINE__, __FILE__, CCTK_THORNSTRING, + CCTK_VInfo (CCTK_THORNSTRING, "IOBasic_InitGH: Scalar output directory '%s' already " "exists", newGH->outdirScalar); } |