16 #ifndef dealii_trilinos_index_access_h 17 #define dealii_trilinos_index_access_h 19 #include <deal.II/base/config.h> 21 #ifdef DEAL_II_WITH_TRILINOS 23 # include <deal.II/base/types.h> 25 # include <Epetra_BlockMap.h> 26 # include <Epetra_CrsGraph.h> 27 # include <Epetra_CrsMatrix.h> 28 # include <Epetra_MultiVector.h> 30 DEAL_II_NAMESPACE_OPEN
39 inline TrilinosWrappers::types::int_type
42 # ifdef DEAL_II_WITH_64BIT_INDICES 43 return map.NumGlobalElements64();
45 return map.NumGlobalElements();
53 inline TrilinosWrappers::types::int_type
56 # ifdef DEAL_II_WITH_64BIT_INDICES 57 return map.MinMyGID64();
59 return map.MinMyGID();
67 inline TrilinosWrappers::types::int_type
70 # ifdef DEAL_II_WITH_64BIT_INDICES 71 return map.MaxMyGID64();
73 return map.MaxMyGID();
81 inline TrilinosWrappers::types::int_type
83 const ::types::global_dof_index i)
85 # ifdef DEAL_II_WITH_64BIT_INDICES 97 inline TrilinosWrappers::types::int_type *
100 # ifdef DEAL_II_WITH_64BIT_INDICES 101 return map.MyGlobalElements64();
103 return map.MyGlobalElements();
111 inline TrilinosWrappers::types::int_type
114 # ifdef DEAL_II_WITH_64BIT_INDICES 115 return graph.NumGlobalRows64();
117 return graph.NumGlobalRows();
125 inline TrilinosWrappers::types::int_type
128 # ifdef DEAL_II_WITH_64BIT_INDICES 129 return graph.NumGlobalCols64();
131 return graph.NumGlobalCols();
139 inline TrilinosWrappers::types::int_type
142 # ifdef DEAL_II_WITH_64BIT_INDICES 143 return graph.NumGlobalEntries64();
145 return graph.NumGlobalEntries();
153 inline TrilinosWrappers::types::int_type
155 const ::types::global_dof_index i)
157 # ifdef DEAL_II_WITH_64BIT_INDICES 158 return matrix.GRID64(i);
160 return matrix.GRID(i);
168 inline TrilinosWrappers::types::int_type
170 const ::types::global_dof_index i)
172 # ifdef DEAL_II_WITH_64BIT_INDICES 173 return matrix.GCID64(i);
175 return matrix.GCID(i);
183 inline TrilinosWrappers::types::int_type
186 # ifdef DEAL_II_WITH_64BIT_INDICES 187 return vector.GlobalLength64();
189 return vector.GlobalLength();
197 inline TrilinosWrappers::types::int_type
200 # ifdef DEAL_II_WITH_64BIT_INDICES 201 return matrix.NumGlobalRows64();
203 return matrix.NumGlobalRows();
208 DEAL_II_NAMESPACE_CLOSE
209 #endif // DEAL_II_WITH_TRILINOS 210 #endif // dealii_trilinos_index_access_h TrilinosWrappers::types::int_type global_length(const Epetra_MultiVector &vector)
TrilinosWrappers::types::int_type min_my_gid(const Epetra_BlockMap &map)
TrilinosWrappers::types::int_type n_global_rows(const Epetra_CrsGraph &graph)
TrilinosWrappers::types::int_type * my_global_elements(const Epetra_BlockMap &map)
TrilinosWrappers::types::int_type n_global_cols(const Epetra_CrsGraph &graph)
TrilinosWrappers::types::int_type global_row_index(const Epetra_CrsMatrix &matrix, const ::types::global_dof_index i)
TrilinosWrappers::types::int_type n_global_entries(const Epetra_CrsGraph &graph)
TrilinosWrappers::types::int_type global_column_index(const Epetra_CrsMatrix &matrix, const ::types::global_dof_index i)
TrilinosWrappers::types::int_type n_global_elements(const Epetra_BlockMap &map)
TrilinosWrappers::types::int_type max_my_gid(const Epetra_BlockMap &map)
TrilinosWrappers::types::int_type global_index(const Epetra_BlockMap &map, const ::types::global_dof_index i)