Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Karsa Zoltán István
/
politopok
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
8c0233d5
authored
Jan 19, 2023
by
Zoltan Karsa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix
parent
b2a76014
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
9 deletions
+17
-9
genax.py
+2
-2
stress.sh
+13
-0
tetrarun.py
+0
-6
utils.py
+2
-1
No files found.
genax.py
View file @
8c0233d5
...
...
@@ -29,7 +29,7 @@ void parosit(const double* x1, const double* x2, double* a, double* b, const int
float alpha = x1[tid];
for (int i = 0; i < m; i++) {
float betha = x2[i];
if ((alpha + betha) < PI && betha > alpha && alpha > 0.0) {
if ((alpha + betha) < PI && betha >
=
alpha && alpha > 0.0) {
a[tid*m+i] = alpha;
b[tid*m+i] = betha;
} else {
...
...
@@ -131,7 +131,7 @@ def angles_ratet(anglestopick, plot = False):
cos
=
cp
.
cos
(
anglestopick
)
sin
=
cp
.
sin
(
anglestopick
)
Dx
=
cp
.
outer
(
cp
.
full
(
anglestopick
.
size
,
1.0
),
Ex
)
.
flatten
()
Dx
=
cp
.
outer
(
cp
.
full
(
anglestopick
.
size
,
1.0
,
dtype
=
cp
.
float64
),
Ex
)
.
flatten
()
Dy
=
cp
.
outer
(
cos
,
Ey
)
.
flatten
()
Dz
=
cp
.
outer
(
sin
,
Ey
)
.
flatten
()
...
...
stress.sh
0 → 100755
View file @
8c0233d5
#bin/bash
time
python tetrarun.py
-n
321
-v
100
-w
100
time
python tetrarun.py
-n
321
-v
100
-w
100
time
python tetrarun.py
-n
321
-v
100
-w
100
time
python tetrarun.py
-n
321
-v
100
-w
100
time
python tetrarun.py
-n
321
-v
100
-w
100
time
python tetrarun.py
-n
321
-v
100
-w
100
time
python tetrarun.py
-n
321
-v
100
-w
100
time
python tetrarun.py
-n
321
-v
100
-w
100
time
python tetrarun.py
-n
321
-v
100
-w
100
time
python tetrarun.py
-n
321
-v
100
-w
100
\ No newline at end of file
tetrarun.py
View file @
8c0233d5
...
...
@@ -32,15 +32,9 @@ def main(argv):
outputfile
=
arg
elif
opt
in
(
"-p"
,
"--plot"
):
PLOT
=
True
print
(
'Output file is: '
,
outputfile
)
print
(
'Conf: '
,
[
n
,
v
,
w
])
space
=
gen_angels_to_pick
(
n
,
PLOT
)
Cx
,
Cy
=
angles_alap
(
space
,
PLOT
)
print
(
Cx
)
print
(
Cy
)
Dx
,
Dy
,
Dz
=
angles_ratet
(
space
)
res
=
start_kernel
(
Cx
,
Cy
,
Dx
,
Dy
,
Dz
,
v
,
w
)
...
...
utils.py
View file @
8c0233d5
import
cupy
as
cp
def
expSpace
(
min
,
max
,
N
,
exponentialliness
=
20.0
):
LinVec
=
cp
.
linspace
(
0
,
cp
.
log10
(
exponentialliness
+
1
),
N
)
LinVec
=
cp
.
linspace
(
0
,
cp
.
log10
(
exponentialliness
+
1
,
dtype
=
cp
.
float64
),
N
,
dtype
=
cp
.
float64
)
return
(
max
-
min
)
/
exponentialliness
*
(
10.0
**
LinVec
-
1
)
+
min
\ No newline at end of file
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