Skip to content

Commit

Permalink
remove GetDeviceField
Browse files Browse the repository at this point in the history
  • Loading branch information
glesur committed Dec 22, 2023
1 parent 516e04b commit 976e39a
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions src/output/scalarField.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,29 +48,6 @@ class ScalarField {
}
}

IdefixArray3D<real> GetDeviceField() const {
if(type==Host3D) {
IdefixArray3D<real> arr3D("TemoraryDev",h3Darray.extent(0),
h3Darray.extent(1),
h3Darray.extent(2));
Kokkos::deep_copy(arr3D,h3Darray);
return(arr3D);
} else if(type==Host4D) {
IdefixArray3D<real> arr3D = Kokkos::subview(
h4Darray, var, Kokkos::ALL, Kokkos::ALL, Kokkos::ALL);
return(arr3D);
} else if(type==Device3D) {
return(d3Darray);
} else if(type==Device4D) {
IdefixArray3D<real> arrDev3D = Kokkos::subview(
d4Darray, var, Kokkos::ALL, Kokkos::ALL, Kokkos::ALL);
return(arrDev3D);
} else {
IDEFIX_ERROR("unknown field");
return(d3Darray);
}
}

private:
IdefixArray4D<real> d4Darray;
IdefixArray3D<real> d3Darray;
Expand Down

0 comments on commit 976e39a

Please sign in to comment.