Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
LGPU FPP
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Fernando Pérez Panadero
LGPU FPP
Commits
1f45d414
Commit
1f45d414
authored
2 years ago
by
Fernando Pérez Panadero
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
3rd bug: match gamma/F not done yet
parent
75cdb213
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/Dirac/Dirac.jl
src/Dirac/Dirac.jl
+3
-3
No files found.
src/Dirac/Dirac.jl
View file @
1f45d414
...
@@ -78,7 +78,7 @@ function Dw!(so, U, si, dpar::DiracParam, lp::SpaceParm{4,6,B,D}, ymws = "ymws",
...
@@ -78,7 +78,7 @@ function Dw!(so, U, si, dpar::DiracParam, lp::SpaceParm{4,6,B,D}, ymws = "ymws",
z2
=
exp
(
2
im
*
pi
*
lp
.
ntw
[
lp
.
npls
-
i
]
/
gp
.
ng
)
z2
=
exp
(
2
im
*
pi
*
lp
.
ntw
[
lp
.
npls
-
i
]
/
gp
.
ng
)
CUDA
.
@sync
begin
CUDA
.
@sync
begin
CUDA
.
@cuda
threads
=
lp
.
bsz
blocks
=
lp
.
rsz
krnl_field_tensor!
(
ymws
.
frc1
,
ymws
.
frc2
,
U
,
gp
.
Ubnd
,
i
,
lp
.
npls
-
i
,
z1
,
z2
,
lp
)
CUDA
.
@cuda
threads
=
lp
.
bsz
blocks
=
lp
.
rsz
krnl_field_tensor!
(
ymws
.
frc1
,
ymws
.
frc2
,
U
,
gp
.
Ubnd
,
i
,
lp
.
npls
-
i
,
z1
,
z2
,
lp
)
CUDA
.
@cuda
threads
=
lp
.
bsz
blocks
=
lp
.
rsz
krnl_Dw_impr!
(
so
,
ymws
.
frc1
,
ymws
.
frc2
,
i
,
lp
.
npls
-
i
,
si
,
dpar
.
csw
,
lp
)
CUDA
.
@cuda
threads
=
lp
.
bsz
blocks
=
lp
.
rsz
krnl_Dw_impr!
(
so
,
ymws
.
frc1
,
ymws
.
frc2
,
Gamma
{
i
},
Gamma
{
lp
.
npls
-
i
}
,
si
,
dpar
.
csw
,
lp
)
end
end
end
end
end
end
...
@@ -229,13 +229,13 @@ function krnl_g5Dw!(so, U, si, m0, th, lp::SpaceParm{4,6,B,D}) where {B,D}
...
@@ -229,13 +229,13 @@ function krnl_g5Dw!(so, U, si, m0, th, lp::SpaceParm{4,6,B,D}) where {B,D}
end
end
function
krnl_Dw_impr
!
(
so
,
F1
,
F2
,
id1
,
id2
,
si
,
csw
,
lp
::
SpaceParm
{
4
,
6
,
B
,
D
})
where
{
B
,
D
}
function
krnl_Dw_impr
!
(
so
,
F1
,
F2
,
Gid1
,
G
id2
,
si
,
csw
,
lp
::
SpaceParm
{
4
,
6
,
B
,
D
})
where
{
B
,
D
}
b
=
Int64
(
CUDA
.
threadIdx
()
.
x
);
r
=
Int64
(
CUDA
.
blockIdx
()
.
x
)
b
=
Int64
(
CUDA
.
threadIdx
()
.
x
);
r
=
Int64
(
CUDA
.
blockIdx
()
.
x
)
@inbounds
begin
@inbounds
begin
# asignation between /mu/nu index and sigma index is NOT correct
# asignation between /mu/nu index and sigma index is NOT correct
so
[
b
,
r
]
+=
0.25
*
csw
*
im
*
(
F1
*
dmul
(
Gamma
{
id1
},
si
[
b
,
r
])
+
F2
*
dmul
(
Gamma
{
id2
}
,
si
[
b
,
r
]))
so
[
b
,
r
]
+=
0.25
*
csw
*
im
*
(
F1
[
b
,
r
]
*
dmul
(
Gid1
,
si
[
b
,
r
])
+
F2
[
b
,
r
]
*
dmul
(
Gid2
,
si
[
b
,
r
]))
end
end
...
...
This diff is collapsed.
Click to expand it.
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