From 976e39ae43863428232782de0dfd5fb229033573 Mon Sep 17 00:00:00 2001 From: Geoffroy Lesur Date: Fri, 8 Dec 2023 15:05:12 +0100 Subject: [PATCH] remove GetDeviceField --- src/output/scalarField.hpp | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/src/output/scalarField.hpp b/src/output/scalarField.hpp index caa2393c..9af7b198 100644 --- a/src/output/scalarField.hpp +++ b/src/output/scalarField.hpp @@ -48,29 +48,6 @@ class ScalarField { } } - IdefixArray3D GetDeviceField() const { - if(type==Host3D) { - IdefixArray3D arr3D("TemoraryDev",h3Darray.extent(0), - h3Darray.extent(1), - h3Darray.extent(2)); - Kokkos::deep_copy(arr3D,h3Darray); - return(arr3D); - } else if(type==Host4D) { - IdefixArray3D arr3D = Kokkos::subview( - h4Darray, var, Kokkos::ALL, Kokkos::ALL, Kokkos::ALL); - return(arr3D); - } else if(type==Device3D) { - return(d3Darray); - } else if(type==Device4D) { - IdefixArray3D arrDev3D = Kokkos::subview( - d4Darray, var, Kokkos::ALL, Kokkos::ALL, Kokkos::ALL); - return(arrDev3D); - } else { - IDEFIX_ERROR("unknown field"); - return(d3Darray); - } - } - private: IdefixArray4D d4Darray; IdefixArray3D d3Darray;