[Commits] [svn:einsteintoolkit] Multipole/trunk/ (Rev. 73)
ian.hinder at aei.mpg.de
ian.hinder at aei.mpg.de
Mon Jan 3 12:50:32 CST 2011
User: hinder
Date: 2011/01/03 12:50 PM
Modified:
/trunk/
param.ccl
/trunk/src/
utils.cc
Log:
Use IO::out_dir parameter by sharing from implementation rather than via CCTK_ParameterGet
File Changes:
Directory: /trunk/src/
======================
File [modified]: utils.cc
Delta lines: +1 -8
===================================================================
--- trunk/src/utils.cc 2011-01-03 18:50:17 UTC (rev 72)
+++ trunk/src/utils.cc 2011-01-03 18:50:31 UTC (rev 73)
@@ -24,16 +24,9 @@
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);
if (fp == 0)
Directory: /trunk/
==================
File [modified]: param.ccl
Delta lines: +4 -0
===================================================================
--- trunk/param.ccl 2011-01-03 18:50:17 UTC (rev 72)
+++ trunk/param.ccl 2011-01-03 18:50:31 UTC (rev 73)
@@ -1,5 +1,9 @@
#param.ccl for thorn Multipole
+shares: IO
+
+USES STRING out_dir
+
restricted:
#Interpolator params:
CCTK_STRING interpolator_name "Which interpolator should I use"
More information about the Commits
mailing list