From 5f883935f39bf23de7d19068f6f053bee4a9c9ae Mon Sep 17 00:00:00 2001
From: mattijs <mattijs>
Date: Tue, 22 Feb 2011 12:15:10 +0000
Subject: [PATCH] ENH: codeStream.org: updated with system/codeDict

---
 doc/changes/codeStream.org | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/doc/changes/codeStream.org b/doc/changes/codeStream.org
index 92f60198b37..57bd7f46cdf 100644
--- a/doc/changes/codeStream.org
+++ b/doc/changes/codeStream.org
@@ -76,6 +76,21 @@
   It by default always includes =fvCFD.H= and adds the =finiteVolume= library to
   the include search path.
 
+  A special form is where the code is not supplied in-line but instead comes
+  from the =codeDict= dictionary in the =system= directory. It should contain
+  a =fixedValue10= entry:
+  #+BEGIN_SRC c++
+  fixedValue10
+  {
+      code
+      #{
+          operator==(min(10, 0.1*this->db().time().value()));
+      #};
+  }
+  #+END_SRC
+  The advantage of using this indirect way is that it supports
+  runTimeModifiable so any change of the code will be picked up next iteration.
+
 * Security
   Allowing the case to execute C++ code does introduce security risks.  A
   third-party case might have a =#codeStream{#code system("rm -rf .");};= hidden
-- 
GitLab