--- /dev/null
+//---------------------------- config.h ---------------------------
+// $Id$
+// Version: $Name$
+//
+// Copyright (C) 2001 by the deal.II authors
+//
+// This file is subject to QPL and may not be distributed
+// without copyright and license information. Please refer
+// to the file deal.II/doc/license.html for the text and
+// further information on this license.
+//
+//---------------------------- config.h ---------------------------
+#ifndef __deal2__config_h
+#define __deal2__config_h
+
+// Note: you should not usually have to change this file, as it is
+// automatically generated from the ./configure file in the top level
+// directory. If there are problems with the contents of this file,
+// rather than changing it, try to modify the mechanisms in
+// configure.in that generated this output. The reason is that you
+// would have to make these changes each time you compile a new
+// version of the library, or on a different computer. Furthermore, it
+// is important not to build different parts of the library with
+// different versions of this file.
+//
+// In case of problems in autodetection of features of your build
+// environment, contact the authors of the library.
+
+@TOP@
+@BOTTOM@
+
+#endif
],
[
AC_MSG_RESULT(found)
- AC_DEFINE(HAVE_RAND_R)
+ AC_DEFINE(HAVE_RAND_R, 1,
+ [Define if you have the rand_r function])
],
[
AC_MSG_RESULT(no)
],
[
AC_MSG_RESULT(yes. trying to work around)
- AC_DEFINE(XLC_WORK_AROUND_STD_BUG)
+ AC_DEFINE(XLC_WORK_AROUND_STD_BUG, 1,
+ [Define if we have to work around a bug in IBM's xlC compiler])
])
)
[],
[
AC_MSG_RESULT(yes)
- AC_DEFINE(HAVE_STD_ITERATOR_CLASS)
+ AC_DEFINE(HAVE_STD_ITERATOR_CLASS, 1,
+ [Define if the compiler's library in use provides a
+ std::iterator class (early gcc versions did not)])
],
[
AC_MSG_RESULT(no)
],
[
AC_MSG_RESULT(yes)
- AC_DEFINE(HAVE_STD_STRINGSTREAM)
+ AC_DEFINE(HAVE_STD_STRINGSTREAM, 1,
+ [Define if the compiler's library in use provides
+ std::i/ostringstream classes (early gcc versions did not)])
],
[
AC_MSG_RESULT(no)
],
[
AC_MSG_RESULT(yes)
- AC_DEFINE(DEAL_II_DECLARE_LRAND48)
+ AC_DEFINE(DEAL_II_DECLARE_LRAND48, 1,
+ [Define if you have the rand_r function])
])
)
forward_declarations.h
+config.h
--- /dev/null
+/* base/include/base/config.h.in. Generated automatically from configure.in by autoheader. */
+//---------------------------- config.h ---------------------------
+// $Id$
+// Version: $Name$
+//
+// Copyright (C) 2001 by the deal.II authors
+//
+// This file is subject to QPL and may not be distributed
+// without copyright and license information. Please refer
+// to the file deal.II/doc/license.html for the text and
+// further information on this license.
+//
+//---------------------------- config.h ---------------------------
+#ifndef __deal2__config_h
+#define __deal2__config_h
+
+// Note: you should not usually have to change this file, as it is
+// automatically generated from the ./configure file in the top level
+// directory. If there are problems with the contents of this file,
+// rather than changing it, try to modify the mechanisms in
+// configure.in that generated this output. The reason is that you
+// would have to make these changes each time you compile a new
+// version of the library, or on a different computer. Furthermore, it
+// is important not to build different parts of the library with
+// different versions of this file.
+//
+// In case of problems in autodetection of features of your build
+// environment, contact the authors of the library.
+
+
+/* Define if you have the gethostname function. */
+#undef HAVE_GETHOSTNAME
+
+/* Major version number of deal.II */
+#undef DEAL_II_MAJOR
+
+/* Minor version number of deal.II */
+#undef DEAL_II_MINOR
+
+/* Flag indicating whether the library shall be compiler for
+ multithreaded applications */
+#undef DEAL_II_USE_MT
+
+/* Backward compatibility support for functions
+ and classes that do not take an explicit mapping
+ variable, but rather use a default Q1 mapping instead */
+#undef DEAL_II_COMPAT_MAPPING
+
+/* Define if we have to work around a bug in IBM's xlC compiler */
+#undef XLC_WORK_AROUND_STD_BUG
+
+/* Define if the compiler's library in use provides a
+ std::iterator class (early gcc versions did not) */
+#undef HAVE_STD_ITERATOR_CLASS
+
+/* Define if the compiler's library in use provides
+ std::i/ostringstream classese (early gcc versions did not) */
+#undef HAVE_STD_STRINGSTREAM
+
+/* Define if you have the rand_r function */
+#undef DEAL_II_DECLARE_LRAND48
+
+/* Define if you have the rand_r function */
+#undef HAVE_RAND_R
+
+/* Availability of the MA27 algorithm from HSL */
+#undef HAVE_HSL_MA27
+
+/* Availability of the MA47 algorithm from HSL */
+#undef HAVE_HSL_MA47
+
+/* Enable the multigrid components of the library */
+#undef ENABLE_MULTIGRID
+
+
+#endif
#define __deal2__convergence_table_h
+#include <base/config.h>
#include <base/table_handler.h>
#define __deal2__data_out_base_h
+#include <base/config.h>
#include <base/point.h>
#include <base/vector2d.h>
#include <grid/geometry_info.h>
#define __deal2__exceptions_h
+#include <base/config.h>
+
#include <exception>
#include <iostream>
#include <cstdlib>
#define __deal2__function_h
+#include <base/config.h>
#include <base/exceptions.h>
#include <base/function_time.h>
#include <base/subscriptor.h>
#ifndef __deal2__function_derivative_h
#define __deal2__function_derivative_h
+#include <base/config.h>
#include <base/exceptions.h>
#include <base/function.h>
#define __deal2__function_lib_h
+#include <base/config.h>
#include <base/function.h>
#define __deal2__function_time_h
+#include <base/config.h>
#include <base/exceptions.h>
/**
#define __deal2__job_identifier_h
+#include <base/config.h>
#include <string>
/**
#define __deal2__logstream_h
+#include <base/config.h>
#include <base/exceptions.h>
#include <string>
#define __deal2__memory_consumption_h
+#include <base/config.h>
#include <string>
#include <vector>
#include <utility>
//---------------------------- multithread_info.h ---------------------------
+#include <base/config.h>
#include <base/exceptions.h>
-// public classes; to be declared below
-class ParameterHandler;
-class MultipleParameterLoop;
-
-
+#include <base/config.h>
#include <map>
#include <vector>
#include <string>
#include <base/exceptions.h>
+// public classes; to be declared below
+class ParameterHandler;
+class MultipleParameterLoop;
+
+
+
// forward declaration
class LogStream;
#define __deal2__point_h
+#include <base/config.h>
#include <base/exceptions.h>
#include <base/tensor_base.h>
+#include <base/config.h>
#include <base/exceptions.h>
#include <base/subscriptor.h>
#define __deal2__quadrature_h
+#include <base/config.h>
#include <base/point.h>
#include <base/subscriptor.h>
#include <vector>
#define __deal2__quadrature_lib_h
+#include <base/config.h>
#include <base/quadrature.h>
#define __deal2__smartpointer_h
-#ifndef __subscriptor_H
+#include <base/config.h>
#include <base/subscriptor.h>
-#endif
+
/**
* Smart pointers avoid destruction of an object in use. They can be used just
#define __deal2__subscriptor_h
+#include <base/config.h>
#include <base/exceptions.h>
#include <typeinfo>
#define __deal2__table_handler_h
+#include <base/config.h>
#include <base/exceptions.h>
#include <map>
#define __deal2__tensor_h
+#include <base/config.h>
#include <base/tensor_base.h>
template <int rank_, int dim> class Tensor;
//TODO:[WB] (compiler) Change <iostream> to <ostream> when that becomes available
+#include <base/config.h>
#include <base/exceptions.h>
#include <iostream>
#include <vector>
#define __deal2__tensor_function_h
+#include <base/config.h>
#include <base/exceptions.h>
-#include <vector>
#include <base/subscriptor.h>
#include <base/smartpointer.h>
#include <base/function.h>
#include <base/point.h>
#include <base/function_time.h>
+#include <vector>
+
/**
* This class is a model for a tensor valued function. The interface
#define __deal2__tensor_product_polynomials_h
+#include <base/config.h>
#include <base/exceptions.h>
#include <base/tensor.h>
#include <base/point.h>
# include <ace/Synch.h>
#endif
+#include <base/config.h>
#include <base/exceptions.h>
#include <utility>
#ifndef __deal2__timer_h
#define __deal2__timer_h
+#include <base/config.h>
+
/**
* This is a very simple class which provides information about the time
#ifndef __deal2__vector2d_h
#define __deal2__vector2d_h
+#include <base/config.h>
#include <base/subscriptor.h>
#! /bin/sh
-# From configure.in Revision: 1.87
+# From configure.in Revision: 1.88
+
DEAL2_DIR=`pwd`
fi
echo $ac_n "checking host system type""... $ac_c" 1>&6
-echo "configure:653: checking host system type" >&5
+echo "configure:654: checking host system type" >&5
host_alias=$host
case "$host_alias" in
echo "$ac_t""$host" 1>&6
echo $ac_n "checking target system type""... $ac_c" 1>&6
-echo "configure:674: checking target system type" >&5
+echo "configure:675: checking target system type" >&5
target_alias=$target
case "$target_alias" in
echo "$ac_t""$target" 1>&6
echo $ac_n "checking build system type""... $ac_c" 1>&6
-echo "configure:692: checking build system type" >&5
+echo "configure:693: checking build system type" >&5
build_alias=$build
case "$build_alias" in
# Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:730: checking for $ac_word" >&5
+echo "configure:731: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
# Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:760: checking for $ac_word" >&5
+echo "configure:761: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
# Extract the first word of "cl", so it can be a program name with args.
set dummy cl; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:811: checking for $ac_word" >&5
+echo "configure:812: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
fi
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
-echo "configure:843: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
+echo "configure:844: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
cat > conftest.$ac_ext << EOF
-#line 854 "configure"
+#line 855 "configure"
#include "confdefs.h"
main(){return(0);}
EOF
-if { (eval echo configure:859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ac_cv_prog_cc_works=yes
# If we can't run a trivial program, we are probably using a cross compiler.
if (./conftest; exit) 2>/dev/null; then
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
fi
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
-echo "configure:885: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
+echo "configure:886: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
cross_compiling=$ac_cv_prog_cc_cross
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
-echo "configure:890: checking whether we are using GNU C" >&5
+echo "configure:891: checking whether we are using GNU C" >&5
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
yes;
#endif
EOF
-if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:899: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
+if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
ac_cv_prog_gcc=yes
else
ac_cv_prog_gcc=no
ac_save_CFLAGS="$CFLAGS"
CFLAGS=
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
-echo "configure:918: checking whether ${CC-cc} accepts -g" >&5
+echo "configure:919: checking whether ${CC-cc} accepts -g" >&5
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
# Extract the first word of "$CC", so it can be a program name with args.
set dummy $CC; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:952: checking for $ac_word" >&5
+echo "configure:953: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_CC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:993: checking for $ac_word" >&5
+echo "configure:994: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
-echo "configure:1025: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
+echo "configure:1026: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
ac_ext=C
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
cat > conftest.$ac_ext << EOF
-#line 1036 "configure"
+#line 1037 "configure"
#include "confdefs.h"
int main(){return(0);}
EOF
-if { (eval echo configure:1041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:1042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ac_cv_prog_cxx_works=yes
# If we can't run a trivial program, we are probably using a cross compiler.
if (./conftest; exit) 2>/dev/null; then
{ echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
fi
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
-echo "configure:1067: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
+echo "configure:1068: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
cross_compiling=$ac_cv_prog_cxx_cross
echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
-echo "configure:1072: checking whether we are using GNU C++" >&5
+echo "configure:1073: checking whether we are using GNU C++" >&5
if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
yes;
#endif
EOF
-if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
+if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1082: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
ac_cv_prog_gxx=yes
else
ac_cv_prog_gxx=no
ac_save_CXXFLAGS="$CXXFLAGS"
CXXFLAGS=
echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
-echo "configure:1100: checking whether ${CXX-g++} accepts -g" >&5
+echo "configure:1101: checking whether ${CXX-g++} accepts -g" >&5
if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
# Extract the first word of "$CXX", so it can be a program name with args.
set dummy $CXX; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:1135: checking for $ac_word" >&5
+echo "configure:1136: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_CXX'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
case "$GXX_VERSION" in
egcs1.1 | gcc2.95)
- CXXFLAGSG="$CXXFLAGSG -DDEBUG -Wmissing-declarations -Wbad-function-cast -Wtraditional -Wnested-externs"
+ CXXFLAGSG="$CXXFLAGSG -Wmissing-declarations -Wbad-function-cast -Wtraditional -Wnested-externs"
CXXFLAGSO="$CXXFLAGSO -fnonnull-objects"
;;
CXXFLAGS="$CXXFLAGSG -Werror"
echo $ac_n "checking for std::advance warning""... $ac_c" 1>&6
-echo "configure:1329: checking for std::advance warning" >&5
+echo "configure:1330: checking for std::advance warning" >&5
cat > conftest.$ac_ext <<EOF
-#line 1331 "configure"
+#line 1332 "configure"
#include "confdefs.h"
#include <map>
; return 0; }
EOF
-if { (eval echo configure:1345: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:1346: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t""no" 1>&6
if test "$GXX" = yes ; then
echo $ac_n "checking whether -ggdb works for long symbols""... $ac_c" 1>&6
-echo "configure:1428: checking whether -ggdb works for long symbols" >&5
+echo "configure:1429: checking whether -ggdb works for long symbols" >&5
case "$target" in
alpha*-osf*)
CXXFLAGS="-ggdb $CXXFLAGSG"
cat > conftest.$ac_ext <<EOF
-#line 1433 "configure"
+#line 1434 "configure"
#include "confdefs.h"
#include <string>
; return 0; }
EOF
-if { (eval echo configure:1454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:1455: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
CXXFLAGSG="-ggdb $CXXFLAGSG"
if test "$GXX" = yes ; then
echo $ac_n "checking for platform specific thread flags""... $ac_c" 1>&6
-echo "configure:1545: checking for platform specific thread flags" >&5
+echo "configure:1546: checking for platform specific thread flags" >&5
for i in threads mt pthread pthreads mthreads Kthread kthread invalid_last_entry; do
CXXFLAGS="$CXXFLAGSG -$i"
echo $ac_n "checking for platform specific multi-threading defines""... $ac_c" 1>&6
-echo "configure:1581: checking for platform specific multi-threading defines" >&5
+echo "configure:1582: checking for platform specific multi-threading defines" >&5
ac_ext=C
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CXXCPP $CPPFLAGS'
cross_compiling=$ac_cv_prog_cxx_cross
cat > conftest.$ac_ext <<EOF
-#line 1590 "configure"
+#line 1591 "configure"
#include "confdefs.h"
#if !defined (_REENTRANT) && !defined (_THREAD_SAFE)
; return 0; }
EOF
-if { (eval echo configure:1604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:1605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
echo "$ac_t"""not necessary"" 1>&6
rm -f conftest*
- cat >> confdefs.h <<\EOF
-#define __USE_MALLOC 1
-EOF
-
- cat >> confdefs.h <<\EOF
-#define _REENTRANT 1
-EOF
-
+ CXXFLAGSG="$CXXFLAGSG -D__USE_MALLOC -D_REENTRANT"
+ CXXFLAGSO="$CXXFLAGSO -D__USE_MALLOC -D_REENTRANT"
else
if test "x$GXX_VERSION" = "xibm_xlc" ; then
CXXFLAGSG = "$CXXFLAGSG -threaded"
if test "$withmultithreading" != no ; then
echo $ac_n "checking for ACE""... $ac_c" 1>&6
-echo "configure:1655: checking for ACE" >&5
+echo "configure:1650: checking for ACE" >&5
if test -d "$withmultithreading" ; then
echo "$ac_t""found" 1>&6
else
if test "$enablemultithreading" = yes ; then
if test "$GXX" = yes ; then
echo $ac_n "checking whether compilation with ACE disallows flags""... $ac_c" 1>&6
-echo "configure:1676: checking whether compilation with ACE disallows flags" >&5
+echo "configure:1671: checking whether compilation with ACE disallows flags" >&5
ac_ext=C
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
ac_cpp='$CXXCPP $CPPFLAGS'
CXXFLAGS="-ansi -I$withmultithreading"
cat > conftest.$ac_ext <<EOF
-#line 1686 "configure"
+#line 1681 "configure"
#include "confdefs.h"
# include <ace/Thread_Manager.h>
; return 0; }
EOF
-if { (eval echo configure:1696: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:1691: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
deal_II_ace_remove_ansi="no"
rm -f conftest*
CXXFLAGS="-pedantic -Werror -I$withmultithreading"
cat > conftest.$ac_ext <<EOF
-#line 1712 "configure"
+#line 1707 "configure"
#include "confdefs.h"
# include <ace/Thread_Manager.h>
; return 0; }
EOF
-if { (eval echo configure:1722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:1717: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
deal_II_ace_remove_pedantic="no"
done
for i in mapping ; do
uppercase=`echo $i | perl -pi -e 'tr/a-z/A-Z/;'`
- flag=DEAL_II_COMPAT_$uppercase
if test -n "`echo $disable_compat | grep $i`" ; then
- cat >> confdefs.h <<EOF
-#define $flag false
-EOF
-
+ compat_value=false
else
- cat >> confdefs.h <<EOF
-#define $flag true
+ compat_value=true
+ fi
+
+ case $i in
+ mapping)
+ cat >> confdefs.h <<EOF
+#define DEAL_II_COMPAT_MAPPING $compat_value
EOF
- fi
+ ;;
+ *)
+ { echo "configure: error: Backward compatibility feature "$i" unknown" 1>&2; exit 1; }
+ ;;
+ esac
done
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
-# Transform confdefs.h into DEFS.
-# Protect against shell expansion while executing Makefile rules.
-# Protect against Makefile macro expansion.
-cat > conftest.defs <<\EOF
-s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
-s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
-s%\[%\\&%g
-s%\]%\\&%g
-s%\$%$$%g
-EOF
-DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
-rm -f conftest.defs
-
+DEFS=-DHAVE_CONFIG_H
# Without the "./", some shells look in PATH for config.status.
: ${CONFIG_STATUS=./config.status}
ac_given_srcdir=$srcdir
-trap 'rm -fr `echo "common/Make.global_options common/Makefile.template doc/Makefile doc/auto/Makefile doc/auto/kdoc/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
+trap 'rm -fr `echo "common/Make.global_options common/Makefile.template doc/Makefile doc/auto/Makefile doc/auto/kdoc/Makefile base/include/base/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
EOF
cat >> $CONFIG_STATUS <<EOF
fi; done
rm -f conftest.s*
+# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
+# NAME is the cpp macro being defined and VALUE is the value it is being given.
+#
+# ac_d sets the value in "#define NAME VALUE" lines.
+ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
+ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
+ac_dC='\3'
+ac_dD='%g'
+# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
+ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
+ac_uB='\([ ]\)%\1#\2define\3'
+ac_uC=' '
+ac_uD='\4%g'
+# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
+ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
+ac_eB='$%\1#\2define\3'
+ac_eC=' '
+ac_eD='%g'
+
+if test "${CONFIG_HEADERS+set}" != set; then
+EOF
+cat >> $CONFIG_STATUS <<EOF
+ CONFIG_HEADERS="base/include/base/config.h"
+EOF
+cat >> $CONFIG_STATUS <<\EOF
+fi
+for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
+ # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
+ case "$ac_file" in
+ *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
+ ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
+ *) ac_file_in="${ac_file}.in" ;;
+ esac
+
+ echo creating $ac_file
+
+ rm -f conftest.frag conftest.in conftest.out
+ ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
+ cat $ac_file_inputs > conftest.in
+
+EOF
+
+# Transform confdefs.h into a sed script conftest.vals that substitutes
+# the proper values into config.h.in to produce config.h. And first:
+# Protect against being on the right side of a sed subst in config.status.
+# Protect against being in an unquoted here document in config.status.
+rm -f conftest.vals
+cat > conftest.hdr <<\EOF
+s/[\\&%]/\\&/g
+s%[\\$`]%\\&%g
+s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
+s%ac_d%ac_u%gp
+s%ac_u%ac_e%gp
+EOF
+sed -n -f conftest.hdr confdefs.h > conftest.vals
+rm -f conftest.hdr
+
+# This sed command replaces #undef with comments. This is necessary, for
+# example, in the case of _POSIX_SOURCE, which is predefined and required
+# on some systems where configure will not decide to define it.
+cat >> conftest.vals <<\EOF
+s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
+EOF
+
+# Break up conftest.vals because some shells have a limit on
+# the size of here documents, and old seds have small limits too.
+
+rm -f conftest.tail
+while :
+do
+ ac_lines=`grep -c . conftest.vals`
+ # grep -c gives empty output for an empty file on some AIX systems.
+ if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
+ # Write a limited-size here document to conftest.frag.
+ echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
+ sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
+ echo 'CEOF
+ sed -f conftest.frag conftest.in > conftest.out
+ rm -f conftest.in
+ mv conftest.out conftest.in
+' >> $CONFIG_STATUS
+ sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
+ rm -f conftest.vals
+ mv conftest.tail conftest.vals
+done
+rm -f conftest.vals
+
+cat >> $CONFIG_STATUS <<\EOF
+ rm -f conftest.frag conftest.h
+ echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
+ cat conftest.in >> conftest.h
+ rm -f conftest.in
+ if cmp -s $ac_file conftest.h 2>/dev/null; then
+ echo "$ac_file is unchanged"
+ rm -f conftest.h
+ else
+ # Remove last slash and all that follows it. Not all systems have dirname.
+ ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
+ if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
+ # The file is in a subdirectory.
+ test ! -d "$ac_dir" && mkdir "$ac_dir"
+ fi
+ rm -f $ac_file
+ mv conftest.h $ac_file
+ fi
+fi; done
+
EOF
cat >> $CONFIG_STATUS <<EOF
/*------------------------- dof_iterator.h ------------------------*/
+#include <base/config.h>
#include <grid/tria_accessor.h>
#include <vector>
#define __deal2__dof_accessor_templates_h
+#include <base/config.h>
#include <dofs/dof_accessor.h>
#include <dofs/dof_handler.h>
#include <dofs/dof_levels.h>
#define __deal2__dof_constraints_h
+#include <base/config.h>
#include <vector>
#include <utility>
#include <base/exceptions.h>
#define __deal2__dof_constraints_templates_h
+#include <base/config.h>
#include <dofs/dof_constraints.h>
+#include <base/config.h>
#include <base/exceptions.h>
#include <base/smartpointer.h>
#include <dofs/function_map.h>
#define __deal2__dof_levels_h
+#include <base/config.h>
#include <vector>
#define __deal2__dof_tools_h
+#include <base/config.h>
#include <base/exceptions.h>
#include <dofs/function_map.h>
extract_hanging_node_dofs (const DoFHandler<3> &dof_handler,
std::vector<bool> &selected_dofs);
+ /**
+ * Flag all those degrees of
+ * freedom which are on cells
+ * with the given subdomain
+ * id. Note that DoFs on faces
+ * can belong to cells with
+ * differing subdomain ids, so
+ * the sets of flagged degrees of
+ * freedom are not mutually
+ * exclusive for different
+ * subdomain ids.
+ */
+ template <int dim>
+ static void
+ extract_subdomain_dofs (const DoFHandler<dim> &dof_handler,
+ const unsigned int subdomain_id,
+ std::vector<bool> &selected_dofs);
+
/**
* Count how many degrees of
* freedom out of the total
#ifndef __deal2__function_map_h
#define __deal2__function_map_h
+#include <base/config.h>
#include <map>
template <int dim> class Function;
#ifndef __deal2__fe_h
#define __deal2__fe_h
+#include <base/config.h>
#include <fe/fe_base.h>
#include <dofs/dof_handler.h>
#ifndef __deal2__fe_base_h
#define __deal2__fe_base_h
+#include <base/config.h>
#include <base/exceptions.h>
#include <base/subscriptor.h>
#include <base/point.h>
#ifndef __deal2__fe_dgq_h
#define __deal2__fe_dgq_h
+#include <base/config.h>
#include <base/polynomial.h>
#include <fe/fe.h>
#define __deal2__fe_lib_dg_h
+#include <base/config.h>
#include<fe/fe_dgq.h>
#define __deal2__fe_lib_lagrange_h
+#include <base/config.h>
#include<fe/fe_q.h>
#ifndef __deal2__fe_q_h
#define __deal2__fe_q_h
+#include <base/config.h>
#include <base/polynomial.h>
#include <fe/fe.h>
/*---------------------------- fe_system.h ---------------------------*/
+#include <base/config.h>
#include <fe/fe.h>
#include <vector>
#include <utility>
template <typename number> class Vector;
template <int dim> class FE_Q;
+#include <base/config.h>
#include <base/exceptions.h>
/**
#define __deal2__fe_update_flags_h
+#include <base/config.h>
+
/**
* Provide a set of flags which tells the @p{FEValues<>::reinit}
#define __deal2__fe_values_h
+#include <base/config.h>
#include <base/exceptions.h>
#include <base/subscriptor.h>
#include <base/point.h>
#define __deal2__mapping_h
+#include <base/config.h>
#include <cmath>
#include <base/point.h>
#include <base/subscriptor.h>
#define __deal2__mapping_c1_h
+#include <base/config.h>
#include <fe/mapping_q.h>
#define __deal2__mapping_cartesian_h
+#include <base/config.h>
#include <cmath>
#include <fe/mapping.h>
#define __deal2__mapping_q_h
+#include <base/config.h>
#include <fe/mapping_q1.h>
#define __deal2__mapping_q1_h
+#include <base/config.h>
#include <cmath>
#include <fe/mapping.h>
#ifndef __deal2__mapping_q1_eulerian_h
#define __deal2__mapping_q1_eulerian_h
+#include <base/config.h>
#include <base/smartpointer.h>
#include <fe/mapping_q1.h>
#define __deal2__geometry_info_h
+#include <base/config.h>
#include <base/exceptions.h>
#define __deal2__grid_generator_h
+#include <base/config.h>
#include <base/exceptions.h>
#include <map>
#define __deal2__grid_in_h
+#include <base/config.h>
#include <base/exceptions.h>
#include <base/smartpointer.h>
#include <iostream>
+#include <base/config.h>
#include <base/exceptions.h>
#include <string>
#define __deal2__grid_refinement_h
+#include <base/config.h>
#include <lac/vector.h>
#include <vector>
#define __deal2__grid_reordering_h
+#include <base/config.h>
#include <map>
#include <vector>
#include <grid/tria.h>
#define __deal2__grid_tools_H
+#include <base/config.h>
+
template <int dim> class Triangulation;
#ifndef __deal2__intergrid_map_h
#define __deal2__intergrid_map_h
+#include <base/config.h>
#include <base/smartpointer.h>
#include <dofs/dof_accessor.h>
#include <grid/tria_accessor.h>
#ifndef __deal2__magic_numbers_h
#define __deal2__magic_numbers_h
+#include <base/config.h>
+
// This is a list of magic numbers used throughout the library.
// They are collected in one file to avoid double usage.
#define __deal2__persistent_tria_h
+#include <base/config.h>
#include <base/smartpointer.h>
#include <grid/tria.h>
#include <vector>
#define __deal2__tria_h
+#include <base/config.h>
#include <vector>
#include <base/point.h>
#include <grid/geometry_info.h>
/*---------------------------- boundary-function.h ---------------------------*/
+#include <base/config.h>
#include <base/subscriptor.h>
#include <base/point.h>
#include <grid/tria.h>
#define __deal2__tria_boundary_lib_h
+#include <base/config.h>
#include <grid/tria_boundary.h>
#define __deal2__tria_hex_h
+#include <base/config.h>
#include <base/exceptions.h>
/**
//TODO:[WB] (compiler) Change <iostream> to <ostream> when that becomes available
+#include <base/config.h>
#include <iterator>
#include <iostream>
#include <base/exceptions.h>
#define __deal2__tria_iterator_templates_h
+#include <base/config.h>
#include <grid/tria.h>
#include <grid/tria_iterator.h>
#define __deal2__tria_iterator_base_h
+#include <base/config.h>
+
/**
* The three states an iterator can be in: valid, past-the-end and
* invalid.
*/
-enum IteratorState {
+enum IteratorState
+{
valid,
past_the_end,
invalid
#define __deal2__tria_line_h
+#include <base/config.h>
#include <base/exceptions.h>
#define __deal2__tria_quad_h
+#include <base/config.h>
#include <base/exceptions.h>
/*---------------------------- mgbase.h ---------------------------*/
+#include <base/config.h>
#include <base/subscriptor.h>
#include <base/smartpointer.h>
#include <lac/vector.h>
#define __deal2__mg_dof_accessor_h
+#include <base/config.h>
#include <dofs/dof_accessor.h>
template <int dim> class MGDoFHandler;
/*---------------------------- mg_dof.h ---------------------------*/
+#include <base/config.h>
#include <dofs/dof_handler.h>
template <int dim> class MGDoFCellAccessor;
#define __deal2__mg_dof_tools_h
+#include <base/config.h>
+
/**
* This is a collection of functions operating on, and manipulating
#define __deal2__mg_smoother_h
+#include <base/config.h>
#include <lac/forward_declarations.h>
#include <multigrid/mg_base.h>
#include <base/smartpointer.h>
#define __deal2__multigrid_h
+#include <base/config.h>
#include <base/subscriptor.h>
#include <base/smartpointer.h>
#include <lac/sparse_matrix.h>
+#include <base/config.h>
#include <base/smartpointer.h>
#include <base/multithread_info.h>
#include <base/data_out_base.h>
#define __deal2__data_out_faces_h
+#include <base/config.h>
#include <numerics/data_out.h>
#include <string>
#define __deal2__data_out_rotation_h
+#include <base/config.h>
#include <numerics/data_out.h>
#include <string>
#define __deal2__data_out_stack_h
+#include <base/config.h>
#include <base/data_out_base.h>
#include <base/smartpointer.h>
#include <lac/vector.h>
#define __deal2__gradient_estimator_h
//TODO: Remove dependency on forward-declarations
+#include <base/config.h>
#include <lac/forward_declarations.h>
#include <grid/forward_declarations.h>
#include <base/exceptions.h>
#ifndef __deal2__dof_print_solver_step_h
#define __deal2__dof_print_solver_step_h
+#include <base/config.h>
#include <base/logstream.h>
#include <numerics/data_out.h>
#define __deal2__dof_renumbering_h
+#include <base/config.h>
#include <base/exceptions.h>
#define __deal2__error_estimator_h
+#include <base/config.h>
#include <base/exceptions.h>
#include <base/function.h>
#include <base/multithread_info.h>
#define __deal2__histogram_h
+#include <base/config.h>
#include <base/exceptions.h>
#include <lac/forward_declarations.h>
#include <vector>
#define __deal2__matrices_h
+#include <base/config.h>
#include <base/exceptions.h>
#include <base/thread_management.h>
#include <dofs/function_map.h>
/*---------------------------- solutiontransfer.h ----------------------*/
+#include <base/config.h>
#include <lac/forward_declarations.h>
#include <grid/forward_declarations.h>
/*---------------------------- time-dependent.h ---------------------------*/
+#include <base/config.h>
#include <base/exceptions.h>
#include <base/subscriptor.h>
#include <base/smartpointer.h>
#define __deal2__vectors_h
+#include <base/config.h>
#include <base/exceptions.h>
#include <dofs/function_map.h>
#include <map>
<h3>General</h3>
<ol>
+ <li> <p>
+ New: <acronym>deal.II</acronym> now uses a file
+ <code>config.h</code> for most global preprocessor defines,
+ instead of an overly long list of compiler flags given on the
+ command line.
+ <br>
+ (WB 2001/10/27)
+ </p>
+
<li> <p>
Changed: If available, the library now uses the C++ standard
classes <code class="class">istringstream</code> and <code
<h3>deal.II</h3>
<ol>
+ <li> <p>
+ New: <code>DoFTools::extract_subdomain_dofs</code> selects
+ those degrees of freedom which are located on cells with a
+ specified subdomain id.
+ <br>
+ (WB 2001/10/27)
+ </p>
+
+ <li> <p>
+ New: Cells now have an additional property
+ <em>subdomain_id</em> which can be used in parallel
+ computations to identify which cells are handled on which
+ processor. These flags are read and set using the functions
+ <code>cell->subdomain_id()</code> and
+ <code>cell->set_subdomain_id(new_id)</code>. The subdomain ids
+ are unsigned integers, so should be sufficiently large also for
+ larger numbers of subdomains.
+ <br>
+ (WB 2001/10/27)
+ </p>
+
<li> <p>
Fixed: the <code
class="member">GridGenerator::hyper_rectangle</code> function
#define __deal2__block_indices_h
+#include <base/config.h>
#include <vector>
#define __deal2__block_matrix_h
+#include <base/config.h>
#include <base/exceptions.h>
#include <base/smartpointer.h>
#include <lac/block_vector.h>
#ifndef __deal2__block_matrix_array_h
#define __deal2__block_matrix_array_h
+#include <base/config.h>
#include <base/subscriptor.h>
#include <base/smartpointer.h>
#include <vector>
#define __deal2__block_sparse_matrix_h
+#include <base/config.h>
#include <lac/sparse_matrix.h>
#include <lac/block_sparsity_pattern.h>
#include <cmath>
#define __deal2__block_sparse_matrix_templates_h
+#include <base/config.h>
#include <base/memory_consumption.h>
#include <lac/block_sparse_matrix.h>
#define __deal2__block_sparsity_pattern_h
+#include <base/config.h>
#include <base/exceptions.h>
#include <base/subscriptor.h>
#include <base/smartpointer.h>
#define __deal2__block_vector_h
+#include <base/config.h>
#include <lac/vector.h>
#include <lac/block_indices.h>
#include <base/exceptions.h>
#define __deal2__block_vector_templates_h
+#include <base/config.h>
#include <base/memory_consumption.h>
#include <lac/block_vector.h>
#include <cmath>
#define __deal2__compressed_sparsity_pattern_h
+#include <base/config.h>
#include <base/exceptions.h>
#include <base/subscriptor.h>
#define __deal2__eigen_h
+#include <base/config.h>
#include <lac/shifted_matrix.h>
#include <lac/solver.h>
#include <lac/solver_control.h>
+#include <base/config.h>
#include <base/smartpointer.h>
#include <base/thread_management.h>
#include <vector>
#define __deal2__filtered_matrix_templates_h
+#include <base/config.h>
#include <base/memory_consumption.h>
#include <lac/filtered_matrix.h>
#include <lac/sparse_matrix.h>
/*---------------------------- fullmatrix.h ---------------------------*/
+#include <base/config.h>
#include <base/exceptions.h>
#include <base/vector2d.h>
#define __deal2__full_matrix_templates_h
+#include <base/config.h>
#include <lac/vector.h>
#include <lac/full_matrix.h>
#ifndef __deal2__matrix_out_h
#define __deal2__matrix_out_h
+#include <base/config.h>
#include <base/data_out_base.h>
#include <lac/sparse_matrix.h>
#include <lac/block_sparse_matrix.h>
// This file contains simple preconditioners.
+#include <base/config.h>
#include <lac/vector_memory.h>
#include <base/smartpointer.h>
#define __deal2__precondition_block_h
+#include <base/config.h>
#include <base/exceptions.h>
#include <base/subscriptor.h>
#include <base/smartpointer.h>
#define __deal2__precondition_block_templates_h
+#include <base/config.h>
#include <base/exceptions.h>
#include <base/logstream.h>
#include <base/memory_consumption.h>
#define __deal2__precondition_selector_h
+#include <base/config.h>
#include <base/smartpointer.h>
#include <string>
#ifndef __deal2__schur_matrix_h
#define __deal2__schur_matrix_h
+#include <base/config.h>
#include <base/subscriptor.h>
#include <base/smartpointer.h>
#include <base/logstream.h>
#define __deal2__shifted_matrix_h
+#include <base/config.h>
#include <base/smartpointer.h>
/**
#ifndef __deal2__solver_h
#define __deal2__solver_h
+#include <base/config.h>
#include <base/subscriptor.h>
template <typename number> class Vector;
#define __deal2__solver_bicgstab_h
+#include <base/config.h>
#include <base/logstream.h>
#include <lac/solver.h>
#include <lac/solver_control.h>
#define __deal2__solver_cg_h
+#include <base/config.h>
#include <lac/solver.h>
#include <lac/solver_control.h>
#include <base/exceptions.h>
#define __deal2__solver_control_h
+#include <base/config.h>
#include <base/subscriptor.h>
+
class ParameterHandler;
/*---------------------------- solver_pgmres.h ---------------------------*/
+#include <base/config.h>
#include <base/subscriptor.h>
#include <base/logstream.h>
#include <lac/solver.h>
#define __deal2__solver_minres_h
+#include <base/config.h>
#include <lac/solver.h>
#include <lac/solver_control.h>
#include <base/logstream.h>
#ifndef __deal2__solver_qmrs_h
#define __deal2__solver_qmrs_h
+#include <base/config.h>
#include <lac/solver.h>
#include <lac/solver_control.h>
#include <base/logstream.h>
#define __deal2__solver_richardson_h
+#include <base/config.h>
#include <lac/solver.h>
#include <lac/solver_control.h>
#include <base/subscriptor.h>
#define __deal2__solver_selector_h
+#include <base/config.h>
#include <base/smartpointer.h>
#include <lac/solver.h>
#include <lac/vector.h>
+#include <base/config.h>
#include <base/exceptions.h>
#include <base/subscriptor.h>
#include <lac/vector.h>
#define __deal2__sparse_ilu_h
+#include <base/config.h>
#include <lac/sparse_matrix.h>
+#include <base/config.h>
#include <lac/vector.h>
#include <lac/sparse_ilu.h>
#define __deal2__sparse_matrix_h
-/*---------------------------- sparse_matrix.h ---------------------------*/
-
-
+#include <base/config.h>
#include <base/exceptions.h>
#include <base/subscriptor.h>
#include <base/smartpointer.h>
-
+#include <base/config.h>
#include <base/smartpointer.h>
#include <base/multithread_info.h>
#define __deal2__sparsity_pattern_h
+#include <base/config.h>
#include <base/exceptions.h>
#include <base/subscriptor.h>
+#include <vector>
+
+
template <typename number> class SparseMatrix;
class CompressedSparsityPattern;
-#include <vector>
-#include <iterator>
/**
#define __deal2__swappable_vector_h
-#include <lac/vector.h>
+#include <base/config.h>
#include <base/thread_management.h>
+#include <lac/vector.h>
#include <string>
#define __deal2__vector_h
+#include <base/config.h>
#include <base/exceptions.h>
+
#include <cstdio>
#define __deal2__vector_memory_h
+#include <base/config.h>
#include <base/subscriptor.h>
#include <base/logstream.h>
#include <base/thread_management.h>