Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pugs
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
code
pugs
Commits
b99b33a7
Commit
b99b33a7
authored
Apr 23, 2018
by
Fanny CHOPOT
Browse files
Options
Downloads
Patches
Plain Diff
Ajout de k dans FiniteVolumesEuler.hpp
parent
94b670e0
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/scheme/AcousticSolver.hpp
+1
-1
1 addition, 1 deletion
src/scheme/AcousticSolver.hpp
src/scheme/FiniteVolumesEulerUnknowns.hpp
+17
-1
17 additions, 1 deletion
src/scheme/FiniteVolumesEulerUnknowns.hpp
with
18 additions
and
2 deletions
src/scheme/AcousticSolver.hpp
+
1
−
1
View file @
b99b33a7
...
@@ -25,7 +25,7 @@ class AcousticSolver
...
@@ -25,7 +25,7 @@ class AcousticSolver
typedef
FiniteVolumesEulerUnknowns
<
MeshData
>
UnknownsType
;
// type des inconnues
typedef
FiniteVolumesEulerUnknowns
<
MeshData
>
UnknownsType
;
// type des inconnues
MeshData
&
m_mesh_data
;
//reference vers les donnees attachees du maillage
MeshData
&
m_mesh_data
;
//reference vers les donnees attachees du maillage
const
MeshType
&
m_mesh
;
// reference vers le maillage
MeshType
&
m_mesh
;
// reference vers le maillage
const
typename
MeshType
::
Connectivity
&
m_connectivity
;
// references vers la connectivite
const
typename
MeshType
::
Connectivity
&
m_connectivity
;
// references vers la connectivite
constexpr
static
size_t
dimension
=
MeshType
::
dimension
;
// dimension du maillage (connue a la compilation)
constexpr
static
size_t
dimension
=
MeshType
::
dimension
;
// dimension du maillage (connue a la compilation)
...
...
This diff is collapsed.
Click to expand it.
src/scheme/FiniteVolumesEulerUnknowns.hpp
+
17
−
1
View file @
b99b33a7
...
@@ -25,6 +25,7 @@ private:
...
@@ -25,6 +25,7 @@ private:
Kokkos
::
View
<
double
*>
m_cj
;
Kokkos
::
View
<
double
*>
m_cj
;
Kokkos
::
View
<
double
*>
m_mj
;
Kokkos
::
View
<
double
*>
m_mj
;
Kokkos
::
View
<
double
*>
m_inv_mj
;
Kokkos
::
View
<
double
*>
m_inv_mj
;
Kokkos
::
View
<
double
*>
m_kj
;
public:
public:
Kokkos
::
View
<
double
*>
rhoj
()
Kokkos
::
View
<
double
*>
rhoj
()
...
@@ -117,6 +118,16 @@ public:
...
@@ -117,6 +118,16 @@ public:
return
m_inv_mj
;
return
m_inv_mj
;
}
}
Kokkos
::
View
<
double
*>
kj
()
{
return
m_kj
;
}
const
Kokkos
::
View
<
const
double
*>
kj
()
const
{
return
m_kj
;
}
void
initializeSod
()
void
initializeSod
()
{
{
const
Kokkos
::
View
<
const
Rd
*>
xj
=
m_mesh_data
.
xj
();
const
Kokkos
::
View
<
const
Rd
*>
xj
=
m_mesh_data
.
xj
();
...
@@ -160,6 +171,10 @@ public:
...
@@ -160,6 +171,10 @@ public:
Kokkos
::
parallel_for
(
m_mesh
.
numberOfCells
(),
KOKKOS_LAMBDA
(
const
int
&
j
){
Kokkos
::
parallel_for
(
m_mesh
.
numberOfCells
(),
KOKKOS_LAMBDA
(
const
int
&
j
){
m_inv_mj
[
j
]
=
1.
/
m_mj
[
j
];
m_inv_mj
[
j
]
=
1.
/
m_mj
[
j
];
});
});
Kokkos
::
parallel_for
(
m_mesh
.
numberOfCells
(),
KOKKOS_LAMBDA
(
const
int
&
j
){
m_kj
[
j
]
=
0.
;
// Par quoi initialiser k ?
});
}
}
FiniteVolumesEulerUnknowns
(
const
MeshDataType
&
mesh_data
)
FiniteVolumesEulerUnknowns
(
const
MeshDataType
&
mesh_data
)
...
@@ -173,7 +188,8 @@ public:
...
@@ -173,7 +188,8 @@ public:
m_gammaj
(
"gammaj"
,
m_mesh
.
numberOfCells
()),
m_gammaj
(
"gammaj"
,
m_mesh
.
numberOfCells
()),
m_cj
(
"cj"
,
m_mesh
.
numberOfCells
()),
m_cj
(
"cj"
,
m_mesh
.
numberOfCells
()),
m_mj
(
"mj"
,
m_mesh
.
numberOfCells
()),
m_mj
(
"mj"
,
m_mesh
.
numberOfCells
()),
m_inv_mj
(
"inv_mj"
,
m_mesh
.
numberOfCells
())
m_inv_mj
(
"inv_mj"
,
m_mesh
.
numberOfCells
()),
m_kj
(
"kj"
,
m_mesh
.
numberOfCells
())
{
{
;
;
}
}
...
...
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