From 6c052dc34449aaa23afcf0b32968e871b3d8e7c0 Mon Sep 17 00:00:00 2001 From: Peter Gottschling <peter.gottschling@simunova.com> Date: Wed, 19 Mar 2008 16:38:16 +0000 Subject: [PATCH] abs -> fabs. --- AMDiS/libtool | 10 +++++----- AMDiS/src/VtkWriter.cc | 8 ++------ 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/AMDiS/libtool b/AMDiS/libtool index 315f21f9..21b737c9 100755 --- a/AMDiS/libtool +++ b/AMDiS/libtool @@ -44,7 +44,7 @@ available_tags=" CXX F77" # ### BEGIN LIBTOOL CONFIG -# Libtool was configured on host NWRW15: +# Libtool was configured on host NWRW20: # Shell to use when invoking shell scripts. SHELL="/bin/sh" @@ -7266,7 +7266,7 @@ disable_libs=static # End: # ### BEGIN LIBTOOL TAG CONFIG: CXX -# Libtool was configured on host NWRW15: +# Libtool was configured on host NWRW20: # Shell to use when invoking shell scripts. SHELL="/bin/sh" @@ -7574,7 +7574,7 @@ include_expsyms="" # ### BEGIN LIBTOOL TAG CONFIG: F77 -# Libtool was configured on host NWRW15: +# Libtool was configured on host NWRW20: # Shell to use when invoking shell scripts. SHELL="/bin/sh" @@ -7618,7 +7618,7 @@ LTCC="gcc" LTCFLAGS="-g -O2" # A language-specific compiler. -CC="g77" +CC="f95" # Is the compiler the GNU C compiler? with_gcc=yes @@ -7858,7 +7858,7 @@ variables_saved_for_relink="PATH LD_LIBRARY_PATH LD_RUN_PATH GCC_EXEC_PREFIX COM link_all_deplibs=unknown # Compile-time system search path for libraries -sys_lib_search_path_spec=`echo " /usr/lib/gcc/i386-redhat-linux/3.4.6/ /usr/lib/gcc/i386-redhat-linux/3.4.6/ /usr/lib/gcc/i386-redhat-linux/3.4.6/../../../../i386-redhat-linux/lib/i386-redhat-linux/3.4.6/ /usr/lib/gcc/i386-redhat-linux/3.4.6/../../../../i386-redhat-linux/lib/ /usr/lib/gcc/i386-redhat-linux/3.4.6/../../../i386-redhat-linux/3.4.6/ /usr/lib/gcc/i386-redhat-linux/3.4.6/../../../ /lib/i386-redhat-linux/3.4.6/ /lib/ /usr/lib/i386-redhat-linux/3.4.6/ /usr/lib/" | $SED -e "s@${gcc_dir}@\${gcc_dir}@g;s@${gcc_ver}@\${gcc_ver}@g"` +sys_lib_search_path_spec=`echo " /usr/lib/gcc/i386-redhat-linux/4.1.2/ /usr/lib/gcc/i386-redhat-linux/4.1.2/ /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../i386-redhat-linux/lib/i386-redhat-linux/4.1.2/ /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../i386-redhat-linux/lib/ /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../i386-redhat-linux/4.1.2/ /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../ /lib/i386-redhat-linux/4.1.2/ /lib/ /usr/lib/i386-redhat-linux/4.1.2/ /usr/lib/" | $SED -e "s@${gcc_dir}@\${gcc_dir}@g;s@${gcc_ver}@\${gcc_ver}@g"` # Run-time system search path for libraries sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/lib/qt-3.3/lib " diff --git a/AMDiS/src/VtkWriter.cc b/AMDiS/src/VtkWriter.cc index d6007ee5..01181788 100644 --- a/AMDiS/src/VtkWriter.cc +++ b/AMDiS/src/VtkWriter.cc @@ -1,7 +1,7 @@ #include <stdio.h> #include <string> #include <fstream> -#include <cstdlib> +#include <cmath> #include "VtkWriter.h" #include "DataCollector.h" @@ -113,11 +113,7 @@ namespace AMDiS { { if (*intPointIt == -2) { for (int j = 0; j < static_cast<int>(coordIt->size()); j++) { - if (std::abs(*valueIt) < 1e-40) { - file << " " << 0.0 << ::std::endl; - } else { - file << " " << *valueIt << ::std::endl; - } + file << " " << (fabs(*valueIt) < 1e-40 ? 0.0 : *valueIt) << "\n"; } } } -- GitLab