aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortradke <tradke@7236b19d-d43a-4f1d-b1ef-ed1e307d4fe7>2004-12-20 10:57:46 +0000
committertradke <tradke@7236b19d-d43a-4f1d-b1ef-ed1e307d4fe7>2004-12-20 10:57:46 +0000
commitd6918fcad0be1e001ccdab5683db4370f52d34d7 (patch)
tree7b1a01790ad69fb65199ee9c2fcc2694ccacb912
parente00e07df9ba05a117d17be1d863e2ab064852f5b (diff)
Thorn SDF searches for an external SDF installation and - if one was found -
provides the capability SDF. git-svn-id: http://svn.cactuscode.org/arrangements/CactusExternal/SDF/trunk@2 7236b19d-d43a-4f1d-b1ef-ed1e307d4fe7
-rw-r--r--README10
-rw-r--r--configuration.ccl11
-rw-r--r--interface.ccl4
-rw-r--r--param.ccl2
-rw-r--r--schedule.ccl2
-rw-r--r--sdf.pl33
-rw-r--r--src/make.code.defn2
7 files changed, 64 insertions, 0 deletions
diff --git a/README b/README
new file mode 100644
index 0000000..4445016
--- /dev/null
+++ b/README
@@ -0,0 +1,10 @@
+Cactus Code Thorn SDF
+Thorn Author(s) : Thomas Radke <tradke@aei.mpg.de>
+Thorn Maintainer(s) : Thomas Radke <tradke@aei.mpg.de>
+CVS info : $Header$
+--------------------------------------------------------------------------
+
+Purpose of the thorn:
+
+This thorns checks for an external SDF installation and, if one was found,
+provides the capability SDF.
diff --git a/configuration.ccl b/configuration.ccl
new file mode 100644
index 0000000..c40e0f7
--- /dev/null
+++ b/configuration.ccl
@@ -0,0 +1,11 @@
+# Configuration definitions for thorn SDF
+# $Header$
+
+# NO_SOURCE
+
+PROVIDES SDF
+{
+ SCRIPT sdf.pl
+ LANG perl
+ OPTIONS SDF_DIR
+}
diff --git a/interface.ccl b/interface.ccl
new file mode 100644
index 0000000..ec86c84
--- /dev/null
+++ b/interface.ccl
@@ -0,0 +1,4 @@
+# Interface definition for thorn SDF
+# $Header$
+
+implements: SDF
diff --git a/param.ccl b/param.ccl
new file mode 100644
index 0000000..1fd7fc8
--- /dev/null
+++ b/param.ccl
@@ -0,0 +1,2 @@
+# Parameter definitions for thorn SDF
+# $Header$
diff --git a/schedule.ccl b/schedule.ccl
new file mode 100644
index 0000000..86eb08a
--- /dev/null
+++ b/schedule.ccl
@@ -0,0 +1,2 @@
+# Schedule definitions for thorn SDF
+# $Header$
diff --git a/sdf.pl b/sdf.pl
new file mode 100644
index 0000000..2cef366
--- /dev/null
+++ b/sdf.pl
@@ -0,0 +1,33 @@
+#! /usr/bin/perl -w
+#/*@@
+# @file sdf.pl
+# @date Sat 12 June 2004
+# @author Thomas Radke
+# @desc
+# Finds an external SDF installation
+# @enddesc
+# @version $Header$
+#@@*/
+
+# SDF_DIR must be given be the user
+my $bbhutil_dir = $ENV{'SDF_DIR'};
+if (! $bbhutil_dir)
+{
+ print "BEGIN ERROR\n";
+ print "SDF requires an external SDF installation. Please specify " .
+ "SDF_DIR to point to this installation or remove thorn SDF " .
+ "from your ThornList !\n";
+ print "END ERROR\n";
+ exit (-1);
+}
+
+print <<EOF;
+BEGIN MAKE_DEFINITION
+HAVE_SDF = 1
+END MAKE_DEFINITION
+INCLUDE_DIRECTORY $bbhutil_dir/include
+LIBRARY bbhutil sv
+LIBRARY_DIRECTORY $bbhutil_dir/lib
+EOF
+
+exit (0);
diff --git a/src/make.code.defn b/src/make.code.defn
new file mode 100644
index 0000000..023393a
--- /dev/null
+++ b/src/make.code.defn
@@ -0,0 +1,2 @@
+# Main make.code.defn file for thorn SDF
+# $Header$