.
This commit is contained in:
parent
8382ae887b
commit
f7c1e47d9c
5 changed files with 1913 additions and 0 deletions
54
Sheet5/Ex5_Second_Attempt/Makefile
Normal file
54
Sheet5/Ex5_Second_Attempt/Makefile
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
#
|
||||
# use GNU-Compiler tools
|
||||
COMPILER=GCC_
|
||||
# COMPILER=GCC_SEQ_
|
||||
# alternatively from the shell
|
||||
# export COMPILER=GCC_
|
||||
# or, alternatively from the shell
|
||||
# make COMPILER=GCC_
|
||||
|
||||
MAIN = main
|
||||
SOURCES = ${MAIN}.cpp vdop.cpp geom.cpp\
|
||||
getmatrix.cpp jacsolve.cpp userset.cpp
|
||||
# dexx.cpp debugd.cpp skalar.cpp vecaccu.cpp accudiag.cpp
|
||||
|
||||
OBJECTS = $(SOURCES:.cpp=.o)
|
||||
|
||||
PROGRAM = ${MAIN}.${COMPILER}
|
||||
|
||||
# uncomment the next to lines for debugging and detailed performance analysis
|
||||
CXXFLAGS += -g
|
||||
# -pg slows down the code on my laptop when using CLANG_
|
||||
#LINKFLAGS += -pg
|
||||
#CXXFLAGS += -Q --help=optimizers
|
||||
#CXXFLAGS += -fopt-info
|
||||
|
||||
include ../${COMPILER}default.mk
|
||||
|
||||
#############################################################################
|
||||
# additional specific cleaning in this directory
|
||||
clean_all::
|
||||
@rm -f t.dat*
|
||||
|
||||
|
||||
#############################################################################
|
||||
# special testing
|
||||
# NPROCS = 4
|
||||
#
|
||||
TFILE = t.dat
|
||||
# TTMP = t.tmp
|
||||
#
|
||||
graph: $(PROGRAM)
|
||||
# @rm -f $(TFILE).*
|
||||
# next two lines only sequentially
|
||||
./$(PROGRAM)
|
||||
@mv $(TFILE).000 $(TFILE)
|
||||
# $(MPIRUN) $(MPIFLAGS) -np $(NPROCS) $(PROGRAM)
|
||||
# @echo " "; echo "Manipulate data for graphics."; echo " "
|
||||
# @cat $(TFILE).* > $(TTMP)
|
||||
# @sort -b -k 2 $(TTMP) -o $(TTMP).1
|
||||
# @sort -b -k 1 $(TTMP).1 -o $(TTMP).2
|
||||
# @awk -f nl.awk $(TTMP).2 > $(TFILE)
|
||||
# @rm -f $(TTMP).* $(TTMP) $(TFILE).*
|
||||
#
|
||||
-gnuplot jac.dem
|
||||
4
Sheet5/Ex5_Second_Attempt/jacobi.layout
Normal file
4
Sheet5/Ex5_Second_Attempt/jacobi.layout
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
|
||||
<CodeBlocks_layout_file>
|
||||
<ActiveTarget name="Debug" />
|
||||
</CodeBlocks_layout_file>
|
||||
20
Sheet5/Ex5_Second_Attempt/nl.awk
Normal file
20
Sheet5/Ex5_Second_Attempt/nl.awk
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
#
|
||||
# Have to add a newline for a new row of coordinates
|
||||
#
|
||||
BEGIN { OFS=" "; YO=-1.23456789; X=YO; Y=YO; Z=YO }
|
||||
{
|
||||
if ($1!="")
|
||||
{
|
||||
if ($1!=YO) { print " "; YO=$1 }
|
||||
if ($1==X && $2==Y)
|
||||
{
|
||||
# print $1,$2,($3+Z)/2
|
||||
}
|
||||
else
|
||||
{
|
||||
print $1,$2,$3
|
||||
}
|
||||
X=$1; Y=$2; Z=$3;
|
||||
}
|
||||
}
|
||||
END {}
|
||||
9
Sheet5/Ex5_Second_Attempt/out_100_GCC.txt
Normal file
9
Sheet5/Ex5_Second_Attempt/out_100_GCC.txt
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
|
||||
There are 1 processes running.
|
||||
|
||||
Intervalls: 100 x 100
|
||||
|
||||
Start Jacobi solver for 10201 d.o.f.s
|
||||
aver. Jacobi rate : 0.997922 (1000 iter)
|
||||
final error: 0.124971 (rel) 0.000194029 (abs)
|
||||
JacobiSolve: timing in sec. : 0.155127
|
||||
1826
Sheet5/Ex5_Second_Attempt/small_Doxyfile
Normal file
1826
Sheet5/Ex5_Second_Attempt/small_Doxyfile
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue