17 #ifndef __ESCRIPT_INDEXLIST_H__ 18 #define __ESCRIPT_INDEXLIST_H__ 20 #include <escript/DataTypes.h> 24 #define ESYS_INDEXLIST_LENGTH 85 40 if (m_list[i] == index)
46 if (extension == NULL)
58 if (m_list[i] >= range_min && range_max > m_list[i])
62 out += extension->
count(range_min, range_max);
73 if (m_list[i] >= range_min && range_max > m_list[i]) {
74 array[idx] = m_list[i]+index_offset;
79 extension->
toArray(&array[idx], range_min, range_max, index_offset);
85 #endif // __ESCRIPT_INDEXLIST_H__ DataTypes::dim_t count(DataTypes::index_t range_min, DataTypes::index_t range_max) const
counts the number of row indices in the IndexList in
Definition: escriptcore/src/IndexList.h:53
Definition: AbstractContinuousDomain.cpp:22
DataTypes::index_t m_list[85]
Definition: escriptcore/src/IndexList.h:32
#define ESYS_INDEXLIST_LENGTH
Definition: escriptcore/src/IndexList.h:24
IndexList()
Definition: escriptcore/src/IndexList.h:29
~IndexList()
Definition: escriptcore/src/IndexList.h:30
int index_t
type for array/matrix indices used both globally and on each rank
Definition: DataTypes.h:59
void toArray(DataTypes::index_t *array, DataTypes::index_t range_min, DataTypes::index_t range_max, DataTypes::index_t index_offset) const
index list to array
Definition: escriptcore/src/IndexList.h:67
DataTypes::dim_t n
Definition: escriptcore/src/IndexList.h:33
Definition: escriptcore/src/IndexList.h:28
void insertIndex(DataTypes::index_t index)
inserts row index into the IndexList in if it does not exist
Definition: escriptcore/src/IndexList.h:37
index_t dim_t
Definition: DataTypes.h:64
IndexList * extension
Definition: escriptcore/src/IndexList.h:34