aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschnetter <schnetter@936e0995-0e4f-0410-aade-aa24bf7baf3d>2003-11-05 19:54:16 +0000
committerschnetter <schnetter@936e0995-0e4f-0410-aade-aa24bf7baf3d>2003-11-05 19:54:16 +0000
commit50b4714a8ae88ec9dcf7fdd0c24b28eceb0878f3 (patch)
tree670deef129b8385232b594f8cca1ffa6d45505ed
parentfc0758578cc6f07ab45fb79163b6e4d573374530 (diff)
Add noise to boundary condition.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/Noise/trunk@14 936e0995-0e4f-0410-aade-aa24bf7baf3d
-rw-r--r--param.ccl9
-rw-r--r--schedule.ccl7
2 files changed, 15 insertions, 1 deletions
diff --git a/param.ccl b/param.ccl
index 121a38c..ec6a27c 100644
--- a/param.ccl
+++ b/param.ccl
@@ -24,6 +24,15 @@ STRING bc_vars "Variables to modify with noise at boundary"
.* :: "A regex which matches everything"
} ""
+BOOLEAN noise_boundaries[6] "At which boundaries to apply noise"
+{
+} "yes"
+
+INT noise_stencil[3] "Number of boundary points"
+{
+ 0:* :: "0:*"
+} 1
+
REAL amplitude "Maximum absolute value of random data"
{
0: :: "Positive number"
diff --git a/schedule.ccl b/schedule.ccl
index 6418191..c29205d 100644
--- a/schedule.ccl
+++ b/schedule.ccl
@@ -13,4 +13,9 @@ if (apply_bc_noise) {
{
LANG: C
} "Add noise to boundary condition"
-} \ No newline at end of file
+
+ SCHEDULE bc_noise AT POSTRESTRICT
+ {
+ LANG: C
+ } "Add noise to boundary condition"
+}