51 int * MyGlobalElements =
new int[NumMyElements];
59 double *Values =
new double[3];
60 int *Indices =
new int[3];
64 for (
int i=0; i<NumMyElements; i++)
66 if (MyGlobalElements[i]==0)
76 else if (MyGlobalElements[i] == NumGlobalElements-1)
78 Indices[0] = NumGlobalElements-1;
79 Indices[1] = NumGlobalElements-2;
88 Indices[0] = MyGlobalElements[i]-1;
89 Indices[1] = MyGlobalElements[i];
90 Indices[2] = MyGlobalElements[i]+1;
108 delete[] MyGlobalElements;
121 int * MyGlobalElements =
new int[NumMyElements];
129 double *Values =
new double[3];
130 int *Indices =
new int[3];
134 for (
int i=0; i<NumMyElements; i++)
136 if (MyGlobalElements[i]==0)
140 Indices[2] = NumGlobalElements-1;
148 else if (MyGlobalElements[i] == NumGlobalElements-1)
150 Indices[0] = NumGlobalElements-1;
151 Indices[1] = NumGlobalElements-2;
162 Indices[0] = MyGlobalElements[i]-1;
163 Indices[1] = MyGlobalElements[i];
164 Indices[2] = MyGlobalElements[i]+1;
182 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)