1 //============================================================================
2 //  Copyright (c) Kitware, Inc.
3 //  All rights reserved.
4 //  See LICENSE.txt for details.
5 //  This software is distributed WITHOUT ANY WARRANTY; without even
6 //  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
7 //  PURPOSE.  See the above copyright notice for more information.
8 //
9 //  Copyright 2014 National Technology & Engineering Solutions of Sandia, LLC (NTESS).
10 //  Copyright 2014 UT-Battelle, LLC.
11 //  Copyright 2014 Los Alamos National Security.
12 //
13 //  Under the terms of Contract DE-NA0003525 with NTESS,
14 //  the U.S. Government retains certain rights in this software.
15 //
16 //  Under the terms of Contract DE-AC52-06NA25396 with Los Alamos National
17 //  Laboratory (LANL), the U.S. Government retains certain rights in
18 //  this software.
19 //============================================================================
20 #include <vtkm/cont/FieldRangeCompute.h>
21 #include <vtkm/cont/FieldRangeCompute.hxx>
22 
23 #include <vtkm/cont/Algorithm.h>
24 
25 namespace vtkm
26 {
27 namespace cont
28 {
29 
30 //-----------------------------------------------------------------------------
31 VTKM_CONT
FieldRangeCompute(const vtkm::cont::DataSet & dataset,const std::string & name,vtkm::cont::Field::Association assoc)32 vtkm::cont::ArrayHandle<vtkm::Range> FieldRangeCompute(const vtkm::cont::DataSet& dataset,
33                                                        const std::string& name,
34                                                        vtkm::cont::Field::Association assoc)
35 {
36   return vtkm::cont::detail::FieldRangeComputeImpl(
37     dataset, name, assoc, VTKM_DEFAULT_TYPE_LIST_TAG(), VTKM_DEFAULT_STORAGE_LIST_TAG());
38 }
39 
40 //-----------------------------------------------------------------------------
41 VTKM_CONT
FieldRangeCompute(const vtkm::cont::MultiBlock & multiblock,const std::string & name,vtkm::cont::Field::Association assoc)42 vtkm::cont::ArrayHandle<vtkm::Range> FieldRangeCompute(const vtkm::cont::MultiBlock& multiblock,
43                                                        const std::string& name,
44                                                        vtkm::cont::Field::Association assoc)
45 {
46   return vtkm::cont::detail::FieldRangeComputeImpl(
47     multiblock, name, assoc, VTKM_DEFAULT_TYPE_LIST_TAG(), VTKM_DEFAULT_STORAGE_LIST_TAG());
48 }
49 }
50 } // namespace vtkm::cont
51