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
a494d346
Commit
a494d346
authored
Sep 19, 2023
by
Fernando Pérez Panadero
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
First try to properly add improvement
parent
2eb07322
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
121 additions
and
76 deletions
+121
-76
src/Dirac/Dirac.jl
src/Dirac/Dirac.jl
+117
-75
src/Fields/Fields.jl
src/Fields/Fields.jl
+1
-0
src/Solvers/CG.jl
src/Solvers/CG.jl
+1
-1
src/YM/YM.jl
src/YM/YM.jl
+2
-0
No files found.
src/Dirac/Dirac.jl
View file @
a494d346
This diff is collapsed.
Click to expand it.
src/Fields/Fields.jl
View file @
a494d346
...
@@ -18,6 +18,7 @@ using ..Space
...
@@ -18,6 +18,7 @@ using ..Space
vector_field
(
::
Type
{
T
},
lp
::
SpaceParm
)
where
{
T
}
=
CuArray
{
T
,
3
}(
undef
,
lp
.
bsz
,
lp
.
ndim
,
lp
.
rsz
)
vector_field
(
::
Type
{
T
},
lp
::
SpaceParm
)
where
{
T
}
=
CuArray
{
T
,
3
}(
undef
,
lp
.
bsz
,
lp
.
ndim
,
lp
.
rsz
)
scalar_field
(
::
Type
{
T
},
lp
::
SpaceParm
)
where
{
T
}
=
CuArray
{
T
,
2
}(
undef
,
lp
.
bsz
,
lp
.
rsz
)
scalar_field
(
::
Type
{
T
},
lp
::
SpaceParm
)
where
{
T
}
=
CuArray
{
T
,
2
}(
undef
,
lp
.
bsz
,
lp
.
rsz
)
nscalar_field
(
::
Type
{
T
},
n
,
lp
::
SpaceParm
)
where
{
T
}
=
CuArray
{
T
,
3
}(
undef
,
lp
.
bsz
,
n
,
lp
.
rsz
)
nscalar_field
(
::
Type
{
T
},
n
,
lp
::
SpaceParm
)
where
{
T
}
=
CuArray
{
T
,
3
}(
undef
,
lp
.
bsz
,
n
,
lp
.
rsz
)
tensor_field
(
::
Type
{
T
},
lp
::
SpaceParm
)
where
{
T
}
=
CuArray
{
T
,
3
}(
undef
,
lp
.
bsz
,
lp
.
npls
,
lp
.
rsz
)
scalar_field_point
(
::
Type
{
T
},
lp
::
SpaceParm
{
N
,
M
,
D
})
where
{
T
,
N
,
M
,
D
}
=
CuArray
{
T
,
N
}(
undef
,
lp
.
iL
...
)
scalar_field_point
(
::
Type
{
T
},
lp
::
SpaceParm
{
N
,
M
,
D
})
where
{
T
,
N
,
M
,
D
}
=
CuArray
{
T
,
N
}(
undef
,
lp
.
iL
...
)
...
...
src/Solvers/CG.jl
View file @
a494d346
...
@@ -34,7 +34,7 @@ return sum(sumf)
...
@@ -34,7 +34,7 @@ return sum(sumf)
end
end
function
CG
!
(
si
,
U
,
A
,
dpar
::
DiracParam
,
lp
::
SpaceParm
,
dws
::
DiracWorkspace
{
T
},
ymws
=
"ymws"
,
gp
=
"gp"
,
maxiter
::
Int64
=
10
,
tol
=
1.0
)
where
{
T
}
function
CG
!
(
si
,
U
,
A
,
dpar
::
DiracParam
,
lp
::
SpaceParm
,
dws
::
DiracWorkspace
{
T
},
ymws
::
YMWorkspace
,
maxiter
::
Int64
=
10
,
tol
=
1.0
)
where
{
T
}
dws
.
sr
.=
si
dws
.
sr
.=
si
dws
.
sp
.=
si
dws
.
sp
.=
si
...
...
src/YM/YM.jl
View file @
a494d346
...
@@ -83,6 +83,7 @@ struct YMworkspace{T}
...
@@ -83,6 +83,7 @@ struct YMworkspace{T}
f2
=
vector_field
(
SU2alg
{
T
},
lp
)
f2
=
vector_field
(
SU2alg
{
T
},
lp
)
mm
=
vector_field
(
SU2alg
{
T
},
lp
)
mm
=
vector_field
(
SU2alg
{
T
},
lp
)
u1
=
vector_field
(
SU2
{
T
},
lp
)
u1
=
vector_field
(
SU2
{
T
},
lp
)
csw
=
tensor_field
(
SU2alg
{
T
},
lp
)
end
end
if
(
G
==
SU3
)
if
(
G
==
SU3
)
...
@@ -92,6 +93,7 @@ struct YMworkspace{T}
...
@@ -92,6 +93,7 @@ struct YMworkspace{T}
f2
=
vector_field
(
SU3alg
{
T
},
lp
)
f2
=
vector_field
(
SU3alg
{
T
},
lp
)
mm
=
vector_field
(
SU3alg
{
T
},
lp
)
mm
=
vector_field
(
SU3alg
{
T
},
lp
)
u1
=
vector_field
(
SU3
{
T
},
lp
)
u1
=
vector_field
(
SU3
{
T
},
lp
)
csw
=
tensor_field
(
SU3alg
{
T
},
lp
)
end
end
cs
=
scalar_field_point
(
Complex
{
T
},
lp
)
cs
=
scalar_field_point
(
Complex
{
T
},
lp
)
rs
=
scalar_field_point
(
T
,
lp
)
rs
=
scalar_field_point
(
T
,
lp
)
...
...
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