summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac>2003-09-02 12:28:44 +0000
committertradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac>2003-09-02 12:28:44 +0000
commitfa9c3dfd0a213e6391dfbbb8f85630ec11371232 (patch)
tree20d488bd3dff2cf1f603d277ed1757942f4189c4
parent1c35dccf6c7dea0d148f067c27dc554718d9654d (diff)
Relax the consistency check for identical inheriting. If thorns providing the
same implementation differ in their inherits, a warning will be issued rather than stopping the code with an error message. This now allows thorns PUGH and Carpet to be compiled in the same configuration. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3391 17b73243-c579-4c4c-a9d2-2d5706c11dac
-rw-r--r--lib/sbin/interface_parser.pl47
1 files changed, 16 insertions, 31 deletions
diff --git a/lib/sbin/interface_parser.pl b/lib/sbin/interface_parser.pl
index 34de9bcf..97268c29 100644
--- a/lib/sbin/interface_parser.pl
+++ b/lib/sbin/interface_parser.pl
@@ -1,11 +1,11 @@
#! /usr/bin/perl -w
#/*@@
-# @file interface_parser.pl
-# @date Wed Sep 16 15:07:11 1998
-# @author Tom Goodale
+# @file interface_parser.pl
+# @date Wed Sep 16 15:07:11 1998
+# @author Tom Goodale
# @desc
-# Parses interface.ccl files
+# Parses interface.ccl files
# @enddesc
# @version $Header: /cactusdevcvs/Cactus/lib/sbin/interface_parser.pl,v 1.55
#@@*/
@@ -17,11 +17,6 @@
# @desc
# Creates a database of all the interfaces
# @enddesc
-# @calls
-# @calledby
-# @history
-#
-# @endhistory
#@@*/
sub create_interface_database
@@ -390,13 +385,19 @@ sub check_implementation_consistency
# Check the consistency of the inheritance
foreach $thing (keys %inherits)
{
- if(split(" ", $inherits{$thing}) != $n_thorns)
+ if(split(' ', $inherits{$thing}) != $n_thorns)
{
- $message = "Inconsistent implementations of $implementation. ";
- $message .= "Implemented by thorns " . join(" ", @thorns) . "\n";
- $message .= "Not all inherit: $thing";
- &CST_error(0,$message,"",__LINE__,__FILE__);
- $n_errors++;
+### Thomas Radke, 2 Sep 2003
+### If this consistency check fails, only a warning should be issued
+### rather than stopping the CST with an error message.
+### This allows thorns providing the same implementation to have different
+### inherits.
+# $n_errors++;
+# &CST_error(0,
+ &CST_error(1,
+ "Inconsistent implementation of '$implementation' " .
+ "provided by thorns '@thorns': not all inherit '$thing'",
+ '', __LINE__, __FILE__);
}
}
@@ -618,11 +619,6 @@ sub check_implementation_consistency
# @desc
# Check consistency of the interfaces files
# @enddesc
-# @calls
-# @calledby
-# @history
-#
-# @endhistory
#@@*/
sub check_interface_consistency
@@ -665,11 +661,6 @@ sub check_interface_consistency
# @desc
# Parses an interface.ccl file and generates a database of the values.
# @enddesc
-# @calls
-# @calledby
-# @history
-#
-# @endhistory
#@@*/
sub parse_interface_ccl
@@ -1129,12 +1120,6 @@ sub print_interface_database
# @desc
# Prints out some statistics about a thorn's interface.ccl
# @enddesc
-# @calls
-# @calledby
-# @history
-#
-# @endhistory
-#
#@@*/
sub PrintInterfaceStatistics
{