summaryrefslogtreecommitdiff
path: root/lib/sbin/CST
diff options
context:
space:
mode:
authorallen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac>2001-02-24 17:31:09 +0000
committerallen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac>2001-02-24 17:31:09 +0000
commit1b62c7f62e4e80831abec3e615ed66d1d5a02219 (patch)
treea2d9577722af159a7de1e759875ea47facd08fe8 /lib/sbin/CST
parent3042fe913f3928e9e561e75d4c63c93baa7c9390 (diff)
Initial implementation of Function Aliasing for thorns.
This is described on a Spec on the web pages at the moment, and will move to the documentation once it is tested and extended a bit more. If you want to have a look at it in action, checkout the thorns TestFunctions1A, TestFunctions1B and TestFunctions2 which will be in AlphaThorns in a few minutes time. At the moment it is only possible to use Function Aliasing for C functions which use and return Cactus data types. You will need to rebuild your configurations once you update, but apart from that these changes shouldn't affect anyone ... if you see any problems please let us know. Gabrielle git-svn-id: http://svn.cactuscode.org/flesh/trunk@2060 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/sbin/CST')
-rw-r--r--lib/sbin/CST7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/sbin/CST b/lib/sbin/CST
index e18e0617..bbff1bb6 100644
--- a/lib/sbin/CST
+++ b/lib/sbin/CST
@@ -6,7 +6,7 @@
# @desc
# Parses the the configuration files for thorns.
# @enddesc
-# @version $Header: /mnt/data2/cvs2svn/cvs-repositories/Cactus/lib/sbin/CST,v 1.39 2000-09-17 09:45:45 allen Exp $
+# @version $Header: /mnt/data2/cvs2svn/cvs-repositories/Cactus/lib/sbin/CST,v 1.40 2001-02-24 17:31:08 allen Exp $
#@@*/
# Global parameter to track the number of errors from the CST
@@ -76,6 +76,7 @@ require "$sbin_dir/CSTUtils.pl";
require "$sbin_dir/CreateParameterBindings.pl";
require "$sbin_dir/CreateImplementationBindings.pl";
require "$sbin_dir/CreateScheduleBindings.pl";
+require "$sbin_dir/CreateFunctionBindings.pl";
require "$sbin_dir/BuildHeaders.pl";
#######################################################################
@@ -538,12 +539,14 @@ sub CreateBindings
&CreateVariableBindings($bindings_dir, $rhinterface_db);
print " Creating schedule bindings...\n";
&CreateScheduleBindings($bindings_dir, $rhinterface_db, $rhschedule_db);
+ print " Creating function bindings...\n";
+ &CreateFunctionBindings($bindings_dir, $rhinterface_db);
# Place an appropriate make.code.defn in the bindings directory.
chdir $bindings_dir;
$dataout = "SRCS = \n";
- $dataout .= "SUBDIRS = Implementations Parameters Variables Schedule\n";
+ $dataout .= "SUBDIRS = Functions Implementations Parameters Variables Schedule\n";
&WriteFile("make.code.defn",\$dataout);
# Go back to where we started.