Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Backofen, Rainer
amdis
Commits
6c052dc3
Commit
6c052dc3
authored
Mar 19, 2008
by
Peter Gottschling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
abs -> fabs.
parent
2dc6711d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
11 deletions
+7
-11
AMDiS/libtool
AMDiS/libtool
+5
-5
AMDiS/src/VtkWriter.cc
AMDiS/src/VtkWriter.cc
+2
-6
No files found.
AMDiS/libtool
View file @
6c052dc3
...
...
@@ -44,7 +44,7 @@ available_tags=" CXX F77"
# ### BEGIN LIBTOOL CONFIG
# Libtool was configured on host NWRW
15
:
# Libtool was configured on host NWRW
20
:
# 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 NWRW
15
:
# Libtool was configured on host NWRW
20
:
# 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 NWRW
15
:
# Libtool was configured on host NWRW
20
:
# 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 "
...
...
AMDiS/src/VtkWriter.cc
View file @
6c052dc3
#include <stdio.h>
#include <string>
#include <fstream>
#include <c
stdlib
>
#include <c
math
>
#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
"
;
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment