aboutsummaryrefslogtreecommitdiff
path: root/src/utils.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils.cc')
-rw-r--r--src/utils.cc9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/utils.cc b/src/utils.cc
index 01a6b15..168acc2 100644
--- a/src/utils.cc
+++ b/src/utils.cc
@@ -24,15 +24,8 @@ FILE *Multipole_OpenOutputFile(CCTK_ARGUMENTS, const string &name)
bool first_time = cctk_iteration == 0;
const char *mode = first_time ? "w" : "a";
- CCTK_STRING *out_dir = (CCTK_STRING *) CCTK_ParameterGet("out_dir", "IOUtil", NULL);
- if (*out_dir == 0)
- {
- CCTK_WARN(1,"Parameter IOUtil::out_dir not found");
- return 0;
- }
-
- string output_name(string(*out_dir) + "/" + name);
+ string output_name(string(out_dir) + "/" + name);
FILE *fp = fopen(output_name.c_str(), mode);