From e8bad8601c70900a73bb31209b3d575e595aa263 Mon Sep 17 00:00:00 2001 From: Geoffroy Lesur Date: Mon, 15 Dec 2025 17:16:58 +0100 Subject: [PATCH] fix #358 --- src/global.hpp | 2 +- src/output/scalarField.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/global.hpp b/src/global.hpp index 5a9ea70f..c4de3926 100644 --- a/src/global.hpp +++ b/src/global.hpp @@ -39,7 +39,7 @@ template IdefixArray1D ConvertVectorToIdefixArray(std::vector &inputVector) { IdefixArray1D outArr = IdefixArray1D("Vector",inputVector.size()); IdefixHostArray1D outArrHost; - outArrHost = Kokkos::create_mirror_view(outArr); + outArrHost = Kokkos::create_mirror_view(Kokkos::HostSpace(), outArr); for(int i = 0; i < inputVector.size() ; i++) { outArrHost(i) = inputVector[i]; } diff --git a/src/output/scalarField.hpp b/src/output/scalarField.hpp index 9af7b198..6cbb9dd4 100644 --- a/src/output/scalarField.hpp +++ b/src/output/scalarField.hpp @@ -33,7 +33,7 @@ class ScalarField { h4Darray, var, Kokkos::ALL, Kokkos::ALL, Kokkos::ALL); return(arr3D); } else if(type==Device3D) { - IdefixHostArray3D arr3D = Kokkos::create_mirror(d3Darray); + IdefixHostArray3D arr3D = Kokkos::create_mirror(Kokkos::HostSpace(), d3Darray); Kokkos::deep_copy(arr3D,d3Darray); return(arr3D); } else if(type==Device4D) {