14#include "arcane/core/ItemFunctor.h"
25AbstractItemRangeFunctor::
26AbstractItemRangeFunctor(ItemVectorView items_view,Integer grain_size)
28, m_block_size(SIMD_PADDING_SIZE)
29, m_nb_block(items_view.size())
30, m_block_grain_size(grain_size)
38 Integer nb_item = m_items.size();
39 m_nb_block = nb_item / m_block_size;
40 if ( (nb_item % m_block_size)!=0 )
43 m_block_grain_size = grain_size / m_block_size;
49ItemVectorView AbstractItemRangeFunctor::
50_view(Integer begin_block, Integer nb_block,
Int32* true_begin)
const
53 Integer begin = begin_block * m_block_size;
54 Integer nb_item = m_items.size();
55 Integer size = math::min(nb_block * m_block_size,nb_item-begin);
58 return m_items.subView(begin,size);
Lecteur des fichiers de maillage via la bibliothèque LIMA.
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
Int32 Integer
Type représentant un entier.