51 int * MyGlobalElements =
new int[NumMyElements];
59 double *Values =
new double[3];
60 int *Indices =
new int[3];
63 for (
int i=0; i<NumMyElements; i++)
65 if (MyGlobalElements[i]==0)
73 else if (MyGlobalElements[i] == NumGlobalElements-1)
75 Indices[0] = NumGlobalElements-1;
76 Indices[1] = NumGlobalElements-2;
83 Indices[0] = MyGlobalElements[i]-1;
84 Indices[1] = MyGlobalElements[i];
85 Indices[2] = MyGlobalElements[i]+1;
101 delete[] MyGlobalElements;
114 int * MyGlobalElements =
new int[NumMyElements];
122 double *Values =
new double[3];
123 int *Indices =
new int[3];
126 for (
int i=0; i<NumMyElements; i++)
128 if (MyGlobalElements[i]==0)
132 Indices[2] = NumGlobalElements-1;
138 else if (MyGlobalElements[i] == NumGlobalElements-1)
140 Indices[0] = NumGlobalElements-1;
141 Indices[1] = NumGlobalElements-2;
150 Indices[0] = MyGlobalElements[i]-1;
151 Indices[1] = MyGlobalElements[i];
152 Indices[2] = MyGlobalElements[i]+1;
168 delete[] MyGlobalElements;
int NumGlobalElements() const
int MyGlobalElements(int *MyGlobalElementList) const
virtual int InsertGlobalValues(int GlobalRow, int NumEntries, const double *Values, const int *Indices)
int CreateTridi(Epetra_CrsMatrix &A)
int FillComplete(bool OptimizeDataStorage=true)
const Epetra_Map & RowMap() const
int NumMyElements() const
int CreateTridiPlus(Epetra_CrsMatrix &A)