Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DG1d.jl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
DG
DG1d.jl
Commits
dd281e76
Verified
Commit
dd281e76
authored
10 months ago
by
Florian Atteneder
Browse files
Options
Downloads
Patches
Plain Diff
apply Polyester.@batch to cons2prim loops
parent
407b9bcb
Branches
fa/grhd-bspline-v2
No related tags found
Loading
Pipeline
#6779
passed
10 months ago
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/GRHD/GRHD.jl
+1
-0
1 addition, 0 deletions
src/GRHD/GRHD.jl
src/GRHD/cons2prim.jl
+10
-10
10 additions, 10 deletions
src/GRHD/cons2prim.jl
with
11 additions
and
10 deletions
src/GRHD/GRHD.jl
+
1
−
0
View file @
dd281e76
...
...
@@ -6,6 +6,7 @@ using dg1d
using
Roots
using
LinearAlgebra
using
LoopVectorization
using
Polyester
using
BasicInterpolators
...
...
This diff is collapsed.
Click to expand it.
src/GRHD/cons2prim.jl
+
10
−
10
View file @
dd281e76
...
...
@@ -3,7 +3,7 @@
#######################################################################
@with_signature
[
simd
=
fals
e
]
function
cons2prim_valencia1d_freeze_flags
(
eq
::
AbstractEquation
)
@with_signature
[
polyester
=
tru
e
]
function
cons2prim_valencia1d_freeze_flags
(
eq
::
AbstractEquation
)
@accepts
D
,
Sr
,
τ
,
r
@accepts
c2p_reset_atm
,
c2p_limit_vr
,
c2p_freeze_atm
@accepts
γrr
,
sqrt_detγ
...
...
@@ -14,7 +14,7 @@
rτ
=
sqrt_detγ
*
τ
@returns
D
,
Sr
,
τ
,
rD
,
rSr
,
rτ
,
ρ
,
vr
,
v
,
ϵ
,
p
,
ρhW2
,
c2p_reset_ϵ
,
c2p_reset_atm
,
c2p_limit_vr
,
c2p_init_admissible
end
@with_signature
[
simd
=
fals
e
]
function
cons2prim_valencia1d
(
eq
::
AbstractEquation
)
@with_signature
[
polyester
=
tru
e
]
function
cons2prim_valencia1d
(
eq
::
AbstractEquation
)
@accepts
D
,
Sr
,
τ
,
r
@accepts
c2p_reset_atm
,
c2p_limit_vr
,
c2p_freeze_atm
@accepts
γrr
,
sqrt_detγ
...
...
@@ -27,7 +27,7 @@ end
end
@with_signature
[
simd
=
fals
e
]
function
cons2prim_spherical1d_freeze_flags
(
eq
::
AbstractEquation
)
@with_signature
[
polyester
=
tru
e
]
function
cons2prim_spherical1d_freeze_flags
(
eq
::
AbstractEquation
)
@accepts
D
,
Sr
,
τ
,
r
@accepts
c2p_reset_atm
,
c2p_limit_vr
,
c2p_freeze_atm
@accepts
γrr
...
...
@@ -36,7 +36,7 @@ end
@returns
D
,
Sr
,
τ
,
ρ
,
vr
,
v
,
ϵ
,
p
,
ρhW2
,
c2p_reset_ϵ
,
c2p_reset_atm
,
c2p_limit_vr
,
c2p_init_admissible
end
@with_signature
[
simd
=
fals
e
]
function
cons2prim_spherical1d
(
eq
::
AbstractEquation
)
@with_signature
[
polyester
=
tru
e
]
function
cons2prim_spherical1d
(
eq
::
AbstractEquation
)
@accepts
D
,
Sr
,
τ
,
r
@accepts
c2p_reset_atm
,
c2p_limit_vr
,
c2p_freeze_atm
@accepts
γrr
...
...
@@ -46,7 +46,7 @@ end
end
@with_signature
[
simd
=
fals
e
]
function
cons2prim_rescaled_spherical1d_freeze_flags
(
eq
::
AbstractEquation
)
@with_signature
[
polyester
=
tru
e
]
function
cons2prim_rescaled_spherical1d_freeze_flags
(
eq
::
AbstractEquation
)
@accepts
D
,
Sr
,
τ
,
r
@accepts
c2p_reset_atm
,
c2p_limit_vr
,
c2p_freeze_atm
@accepts
γrr
,
B
...
...
@@ -58,7 +58,7 @@ end
rτ
=
r
*
B
^
3
*
τ
@returns
D
,
Sr
,
τ
,
rD
,
rSr
,
rτ
,
ρ
,
vr
,
v
,
ϵ
,
p
,
ρhW2
,
c2p_reset_ϵ
,
c2p_reset_atm
,
c2p_limit_vr
,
c2p_init_admissible
end
@with_signature
[
simd
=
fals
e
]
function
cons2prim_rescaled_spherical1d
(
eq
::
AbstractEquation
)
@with_signature
[
polyester
=
tru
e
]
function
cons2prim_rescaled_spherical1d
(
eq
::
AbstractEquation
)
@accepts
D
,
Sr
,
τ
,
r
@accepts
c2p_reset_atm
,
c2p_limit_vr
,
c2p_freeze_atm
@accepts
γrr
,
B
...
...
@@ -72,7 +72,7 @@ end
end
@with_signature
[
simd
=
fals
e
]
function
cons2prim_doublecartoon_freeze_flags
(
eq
::
AbstractEquation
)
@with_signature
[
polyester
=
tru
e
]
function
cons2prim_doublecartoon_freeze_flags
(
eq
::
AbstractEquation
)
@accepts
D
,
Sx
,
τ
,
r
@accepts
c2p_reset_atm
,
c2p_limit_vr
,
c2p_freeze_atm
@accepts
γxx
,
sqrtdetγ
...
...
@@ -84,7 +84,7 @@ end
rτ
=
sqrtdetγ
*
τ
@returns
D
,
Sx
,
τ
,
rD
,
rSx
,
rτ
,
ρ
,
vx
,
v
,
ϵ
,
p
,
ρhW2
,
c2p_reset_ϵ
,
c2p_reset_atm
,
c2p_limit_vr
,
c2p_init_admissible
end
@with_signature
[
simd
=
fals
e
]
function
cons2prim_doublecartoon
(
eq
::
AbstractEquation
)
@with_signature
[
polyester
=
tru
e
]
function
cons2prim_doublecartoon
(
eq
::
AbstractEquation
)
@accepts
D
,
Sx
,
τ
,
r
@accepts
c2p_reset_atm
,
c2p_limit_vr
,
c2p_freeze_atm
@accepts
γxx
,
sqrtdetγ
...
...
@@ -98,7 +98,7 @@ end
end
@with_signature
[
simd
=
fals
e
]
function
cons2prim_cartoon_freeze_flags
(
eq
::
AbstractEquation
)
@with_signature
[
polyester
=
tru
e
]
function
cons2prim_cartoon_freeze_flags
(
eq
::
AbstractEquation
)
@accepts
D
,
Sx
,
Sz
,
τ
,
x
,
y
@accepts
c2p_reset_atm
,
c2p_limit_vr
,
c2p_freeze_atm
@accepts
γxx
,
γzz
,
sqrtdetγ
...
...
@@ -112,7 +112,7 @@ end
rτ
=
sqrtdetγ
*
τ
@returns
D
,
Sx
,
Sz
,
τ
,
rD
,
rSx
,
rSz
,
rτ
,
ρ
,
vx
,
vz
,
v
,
ϵ
,
p
,
ρhW2
,
c2p_reset_ϵ
,
c2p_reset_atm
,
c2p_limit_vr
,
c2p_init_admissible
end
@with_signature
[
simd
=
fals
e
]
function
cons2prim_cartoon
(
eq
::
AbstractEquation
)
@with_signature
[
polyester
=
tru
e
]
function
cons2prim_cartoon
(
eq
::
AbstractEquation
)
@accepts
D
,
Sx
,
Sz
,
τ
,
x
,
y
@accepts
c2p_reset_atm
,
c2p_limit_vr
,
c2p_freeze_atm
@accepts
γxx
,
γzz
,
sqrtdetγ
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment