diff --git a/classSpeciesInformation_1_1Impl-members.html b/classSpeciesInformation_1_1Impl-members.html
index a0c9937a2..1c15f72e6 100644
--- a/classSpeciesInformation_1_1Impl-members.html
+++ b/classSpeciesInformation_1_1Impl-members.html
@@ -111,7 +111,7 @@
ielec() const (defined in SpeciesInformation::Impl< MemorySpace >) | SpeciesInformation::Impl< MemorySpace > | inline |
Impl (defined in SpeciesInformation::Impl< MemorySpace >) | SpeciesInformation::Impl< MemorySpace > | friend |
Impl(Impl< OMemorySpace > const &impl) (defined in SpeciesInformation::Impl< MemorySpace >) | SpeciesInformation::Impl< MemorySpace > | inlineexplicit |
- Impl(ddc::Chunk< int, discrete_domain_type > charge, ddc::Chunk< double, discrete_domain_type > mass, ddc::Chunk< double, discrete_domain_type > perturb_amplitude, ddc::Chunk< int, discrete_domain_type > perturb_mode) (defined in SpeciesInformation::Impl< MemorySpace >) | SpeciesInformation::Impl< MemorySpace > | inline |
+ Impl(ddc::Chunk< int, discrete_domain_type, ddc::KokkosAllocator< int, MemorySpace >> charge, ddc::Chunk< double, discrete_domain_type, ddc::KokkosAllocator< double, MemorySpace >> mass, ddc::Chunk< double, discrete_domain_type, ddc::KokkosAllocator< double, MemorySpace >> perturb_amplitude, ddc::Chunk< int, discrete_domain_type, ddc::KokkosAllocator< int, MemorySpace >> perturb_mode) (defined in SpeciesInformation::Impl< MemorySpace >) | SpeciesInformation::Impl< MemorySpace > | inline |
masses() const (defined in SpeciesInformation::Impl< MemorySpace >) | SpeciesInformation::Impl< MemorySpace > | inline |
perturb_amplitudes() const (defined in SpeciesInformation::Impl< MemorySpace >) | SpeciesInformation::Impl< MemorySpace > | inline |
perturb_modes() const (defined in SpeciesInformation::Impl< MemorySpace >) | SpeciesInformation::Impl< MemorySpace > | inline |
diff --git a/classSpeciesInformation_1_1Impl.html b/classSpeciesInformation_1_1Impl.html
index 506bd34d6..c28fe43ee 100644
--- a/classSpeciesInformation_1_1Impl.html
+++ b/classSpeciesInformation_1_1Impl.html
@@ -120,24 +120,24 @@
template<class OMemorySpace >
| Impl (Impl< OMemorySpace > const &impl) |
|
-
- | Impl (ddc::Chunk< int, discrete_domain_type > charge, ddc::Chunk< double, discrete_domain_type > mass, ddc::Chunk< double, discrete_domain_type > perturb_amplitude, ddc::Chunk< int, discrete_domain_type > perturb_mode) |
- |
+
+ | Impl (ddc::Chunk< int, discrete_domain_type, ddc::KokkosAllocator< int, MemorySpace >> charge, ddc::Chunk< double, discrete_domain_type, ddc::KokkosAllocator< double, MemorySpace >> mass, ddc::Chunk< double, discrete_domain_type, ddc::KokkosAllocator< double, MemorySpace >> perturb_amplitude, ddc::Chunk< int, discrete_domain_type, ddc::KokkosAllocator< int, MemorySpace >> perturb_mode) |
+ |
KOKKOS_FUNCTION discrete_element_type | ielec () const |
|
-
-ddc::ChunkSpan< const int, discrete_domain_type > | charges () const |
- |
-
-ddc::ChunkSpan< const double, discrete_domain_type > | masses () const |
- |
-
-ddc::ChunkSpan< const double, discrete_domain_type > | perturb_amplitudes () const |
- |
-
-ddc::ChunkSpan< const int, discrete_domain_type > | perturb_modes () const |
- |
+
+auto | charges () const |
+ |
+
+auto | masses () const |
+ |
+
+auto | perturb_amplitudes () const |
+ |
+
+auto | perturb_modes () const |
+ |
The documentation for this class was generated from the following file:
- /__w/gyselalibxx/gyselalibxx/code_branch/src/speciesinfo/species_info.hpp
diff --git a/classSpeciesInformation_1_1Impl.js b/classSpeciesInformation_1_1Impl.js
index d1f1afe45..d3020eae0 100644
--- a/classSpeciesInformation_1_1Impl.js
+++ b/classSpeciesInformation_1_1Impl.js
@@ -2,11 +2,11 @@ var classSpeciesInformation_1_1Impl =
[
[ "discrete_dimension_type", "classSpeciesInformation_1_1Impl.html#a79dd22b07e0b671a5f85b7a1d47c10a4", null ],
[ "Impl", "classSpeciesInformation_1_1Impl.html#a788f54c43e25317f947aa8be9716c3bc", null ],
- [ "Impl", "classSpeciesInformation_1_1Impl.html#aee061508e334dfda1ec99068b18d8909", null ],
+ [ "Impl", "classSpeciesInformation_1_1Impl.html#a926e1d36257535d9c850fadd85f45dd2", null ],
[ "ielec", "classSpeciesInformation_1_1Impl.html#ad069f5667f3d88ab36856bd941c6e937", null ],
- [ "charges", "classSpeciesInformation_1_1Impl.html#a22075762bac76656386615ff21f71bd8", null ],
- [ "masses", "classSpeciesInformation_1_1Impl.html#a0cee25bda8e8c98cb2e4f6b1f1bdfbaa", null ],
- [ "perturb_amplitudes", "classSpeciesInformation_1_1Impl.html#a447bc6c55e4a471376bfdfcbd04db742", null ],
- [ "perturb_modes", "classSpeciesInformation_1_1Impl.html#a3bf40fa531902e47b82ce46109df9259", null ],
+ [ "charges", "classSpeciesInformation_1_1Impl.html#a6fa19e2bcac84772f4de38323e4430e3", null ],
+ [ "masses", "classSpeciesInformation_1_1Impl.html#ab5fea032a19715a668e86acfa0a4e93a", null ],
+ [ "perturb_amplitudes", "classSpeciesInformation_1_1Impl.html#a0eb655bf420dc3a05d2cbb1e176cf279", null ],
+ [ "perturb_modes", "classSpeciesInformation_1_1Impl.html#aeaa6f310ad69c7e977214d455bb9a039", null ],
[ "Impl", "classSpeciesInformation_1_1Impl.html#a219fbcef554ce8d99265d545825c18dc", null ]
];
\ No newline at end of file
diff --git a/navtreeindex3.js b/navtreeindex3.js
index 5f309e6a6..3dd2c7d03 100644
--- a/navtreeindex3.js
+++ b/navtreeindex3.js
@@ -9,15 +9,15 @@ var NAVTREEINDEX3 =
"classSpeciesInformation.html#a8e46a5b4955a5164dbc6703fd7a86eb4":[12,122,2],
"classSpeciesInformation.html#af77dd55f79155df4dab9bf490d900a07":[12,122,1],
"classSpeciesInformation_1_1Impl.html":[12,122,0],
-"classSpeciesInformation_1_1Impl.html#a0cee25bda8e8c98cb2e4f6b1f1bdfbaa":[12,122,0,5],
+"classSpeciesInformation_1_1Impl.html#a0eb655bf420dc3a05d2cbb1e176cf279":[12,122,0,6],
"classSpeciesInformation_1_1Impl.html#a219fbcef554ce8d99265d545825c18dc":[12,122,0,8],
-"classSpeciesInformation_1_1Impl.html#a22075762bac76656386615ff21f71bd8":[12,122,0,4],
-"classSpeciesInformation_1_1Impl.html#a3bf40fa531902e47b82ce46109df9259":[12,122,0,7],
-"classSpeciesInformation_1_1Impl.html#a447bc6c55e4a471376bfdfcbd04db742":[12,122,0,6],
+"classSpeciesInformation_1_1Impl.html#a6fa19e2bcac84772f4de38323e4430e3":[12,122,0,4],
"classSpeciesInformation_1_1Impl.html#a788f54c43e25317f947aa8be9716c3bc":[12,122,0,1],
"classSpeciesInformation_1_1Impl.html#a79dd22b07e0b671a5f85b7a1d47c10a4":[12,122,0,0],
+"classSpeciesInformation_1_1Impl.html#a926e1d36257535d9c850fadd85f45dd2":[12,122,0,2],
+"classSpeciesInformation_1_1Impl.html#ab5fea032a19715a668e86acfa0a4e93a":[12,122,0,5],
"classSpeciesInformation_1_1Impl.html#ad069f5667f3d88ab36856bd941c6e937":[12,122,0,3],
-"classSpeciesInformation_1_1Impl.html#aee061508e334dfda1ec99068b18d8909":[12,122,0,2],
+"classSpeciesInformation_1_1Impl.html#aeaa6f310ad69c7e977214d455bb9a039":[12,122,0,7],
"classSplineBoundaryValue.html":[12,123],
"classSplineBoundaryValue.html#a772793f39da3ff86099ca45d56d3a4b6":[12,123,1],
"classSplineBoundaryValue.html#ab8c255bfff4881701559b44dbe568db1":[12,123,0],
diff --git a/species__info_8hpp_source.html b/species__info_8hpp_source.html
index 605565193..db526e8d0 100644
--- a/species__info_8hpp_source.html
+++ b/species__info_8hpp_source.html
@@ -166,69 +166,72 @@
61 ddc::deepcopy(m_perturb_mode, impl.m_perturb_mode);
- 64 Impl(ddc::Chunk<int, discrete_domain_type> charge,
- 65 ddc::Chunk<double, discrete_domain_type> mass,
- 66 ddc::Chunk<double, discrete_domain_type> perturb_amplitude,
- 67 ddc::Chunk<int, discrete_domain_type> perturb_mode)
- 68 : m_charge(std::move(charge))
- 69 , m_mass(std::move(mass))
- 70 , m_perturb_amplitude(std::move(perturb_amplitude))
- 71 , m_perturb_mode(std::move(perturb_mode))
-
- 73 assert(charge.size() >= 2);
- 74 bool electron_found =
false;
- 75 for (discrete_element_type
const isp : m_charge.domain()) {
- 76 if (m_charge(isp) == -1) {
- 77 electron_found =
true;
-
-
-
- 81 if (!electron_found) {
- 82 throw std::runtime_error(
"electron not found");
+ 64 Impl(ddc::Chunk<
int, discrete_domain_type, ddc::KokkosAllocator<int, MemorySpace>> charge,
+ 65 ddc::Chunk<
double, discrete_domain_type, ddc::KokkosAllocator<double, MemorySpace>>
+
+ 67 ddc::Chunk<
double, discrete_domain_type, ddc::KokkosAllocator<double, MemorySpace>>
+
+ 69 ddc::Chunk<
int, discrete_domain_type, ddc::KokkosAllocator<int, MemorySpace>>
+
+ 71 : m_charge(std::move(charge))
+ 72 , m_mass(std::move(mass))
+ 73 , m_perturb_amplitude(std::move(perturb_amplitude))
+ 74 , m_perturb_mode(std::move(perturb_mode))
+
+ 76 assert(charge.size() >= 2);
+ 77 bool electron_found =
false;
+ 78 for (discrete_element_type
const isp : m_charge.domain()) {
+ 79 if (m_charge(isp) == -1) {
+ 80 electron_found =
true;
+
+
-
-
- 86 KOKKOS_FUNCTION discrete_element_type ielec()
const
-
-
-
-
- 91 ddc::ChunkSpan<const int, discrete_domain_type> charges()
const
-
-
-
-
- 96 ddc::ChunkSpan<const double, discrete_domain_type> masses()
const
-
-
-
-
- 101 ddc::ChunkSpan<const double, discrete_domain_type> perturb_amplitudes()
const
-
- 103 return m_perturb_amplitude;
-
-
- 106 ddc::ChunkSpan<const int, discrete_domain_type> perturb_modes()
const
-
- 108 return m_perturb_mode;
-
-
-
-
- 113 KOKKOS_INLINE_FUNCTION ddc::DiscreteElement<SpeciesInformation> ielec()
-
- 115 return ddc::discrete_space<SpeciesInformation>().ielec();
-
-
- 118 inline int charge(ddc::DiscreteElement<SpeciesInformation>
const isp)
-
- 120 return ddc::discrete_space<SpeciesInformation>().charges()(isp);
-
-
- 123 inline double mass(ddc::DiscreteElement<SpeciesInformation>
const isp)
-
- 125 return ddc::discrete_space<SpeciesInformation>().masses()(isp);
-
+ 84 if (!electron_found) {
+ 85 throw std::runtime_error(
"electron not found");
+
+
+
+ 89 KOKKOS_FUNCTION discrete_element_type ielec()
const
+
+
+
+
+
+
+ 96 return m_charge.span_view();
+
+
+
+
+ 101 return m_mass.span_view();
+
+
+ 104 auto perturb_amplitudes()
const
+
+ 106 return m_perturb_amplitude.span_view();
+
+
+ 109 auto perturb_modes()
const
+
+ 111 return m_perturb_mode.span_view();
+
+
+
+
+ 116 KOKKOS_INLINE_FUNCTION ddc::DiscreteElement<SpeciesInformation> ielec()
+
+ 118 return ddc::discrete_space<SpeciesInformation>().ielec();
+
+
+ 121 inline int charge(ddc::DiscreteElement<SpeciesInformation>
const isp)
+
+ 123 return ddc::host_discrete_space<SpeciesInformation>().charges()(isp);
+
+
+ 126 inline double mass(ddc::DiscreteElement<SpeciesInformation>
const isp)
+
+ 128 return ddc::host_discrete_space<SpeciesInformation>().masses()(isp);
+