aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortradke <tradke@4825ed28-b72c-4eae-9704-e50c059e567d>2002-05-27 08:17:01 +0000
committertradke <tradke@4825ed28-b72c-4eae-9704-e50c059e567d>2002-05-27 08:17:01 +0000
commit47c1bfa2be88af5f67b7d8f9764f6ac990909d6b (patch)
tree0e4fe2ebf7b66b699b25f299f26996e9f61b42b4
parent9c22c778d904644f9dd54ac2a0cf0bef66a0d464 (diff)
Make use of Tom's extensions to parameter declarations:
USE some_parameter AS alias. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGHIO/IOHDF5/trunk@137 4825ed28-b72c-4eae-9704-e50c059e567d
-rw-r--r--param.ccl4
-rw-r--r--src/Output.c4
-rw-r--r--src/Startup.c4
3 files changed, 4 insertions, 8 deletions
diff --git a/param.ccl b/param.ccl
index 2829d21..64721d4 100644
--- a/param.ccl
+++ b/param.ccl
@@ -78,8 +78,8 @@ BOOLEAN checkpoint_next "Checkpoint at next iteration" STEERABLE = ALWAYS
#############################################################################
shares: IO
-# FIXME: want USES STRING out_dir AS default_out_dir
-# FIXME: want USES INT out_every AS default_out_every
+USES STRING out_dir AS io_out_dir
+USES INT out_every AS io_out_every
USES KEYWORD verbose
USES BOOLEAN print_timing_info
diff --git a/src/Output.c b/src/Output.c
index fb0f0d9..d43d478 100644
--- a/src/Output.c
+++ b/src/Output.c
@@ -311,9 +311,7 @@ static void CheckSteerableParameters (const cGH *GH)
}
else
{
- myGH->out_every = *(const CCTK_INT *)
- CCTK_ParameterGet ("out_every",
- CCTK_ImplementationThorn ("IO"), NULL);
+ myGH->out_every = io_out_every;
}
/* re-parse the 'IOHDF5::out_vars' parameter if it was changed */
diff --git a/src/Startup.c b/src/Startup.c
index 15b7049..8913942 100644
--- a/src/Startup.c
+++ b/src/Startup.c
@@ -137,9 +137,7 @@ static void *SetupGH (tFleshConfig *config, int conv_level, cGH *GH)
/* get the name of IOHDF5's output directory */
if (*out_dir == 0)
{
- out_dir = *(const char **)
- CCTK_ParameterGet ("out_dir", CCTK_ImplementationThorn ("IO"),
- NULL);
+ out_dir = io_out_dir;
}
/* skip the directory pathname if output goes into current directory */