From d6918fcad0be1e001ccdab5683db4370f52d34d7 Mon Sep 17 00:00:00 2001 From: tradke Date: Mon, 20 Dec 2004 10:57:46 +0000 Subject: 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 --- README | 10 ++++++++++ configuration.ccl | 11 +++++++++++ interface.ccl | 4 ++++ param.ccl | 2 ++ schedule.ccl | 2 ++ sdf.pl | 33 +++++++++++++++++++++++++++++++++ src/make.code.defn | 2 ++ 7 files changed, 64 insertions(+) create mode 100644 README create mode 100644 configuration.ccl create mode 100644 interface.ccl create mode 100644 param.ccl create mode 100644 schedule.ccl create mode 100644 sdf.pl create mode 100644 src/make.code.defn 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 +Thorn Maintainer(s) : Thomas Radke +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 <