/[escript]/trunk/paso/src/Solver_ILU.c
ViewVC logotype

Diff of /trunk/paso/src/Solver_ILU.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1840 by ksteube, Thu Sep 25 23:11:13 2008 UTC revision 1841 by gross, Fri Oct 3 03:57:52 2008 UTC
# Line 73  Paso_Solver_ILU* Paso_Solver_getILU(Paso Line 73  Paso_Solver_ILU* Paso_Solver_getILU(Paso
73         /* find main diagonal and copy matrix values */         /* find main diagonal and copy matrix values */
74         #pragma omp parallel for schedule(static) private(i,iptr,iptr_main,k)         #pragma omp parallel for schedule(static) private(i,iptr,iptr_main,k)
75         for (i = 0; i < n; ++i) {         for (i = 0; i < n; ++i) {
            for (iptr=A->pattern->ptr[i];iptr<A->pattern->ptr[i+1]; ++iptr) {  
76                 iptr_main=A->pattern->ptr[0]-1;                 iptr_main=A->pattern->ptr[0]-1;
77                  for (iptr=A->pattern->ptr[i];iptr<A->pattern->ptr[i+1]; iptr++) {                 for (iptr=A->pattern->ptr[i];iptr<A->pattern->ptr[i+1]; iptr++) {
78                     if (A->pattern->index[iptr]==i) iptr_main=iptr;                     if (A->pattern->index[iptr]==i) iptr_main=iptr;
79                     for (k=0;k<n_block*n_block;++k) out->factors[n_block*n_block*iptr+k]=A->val[n_block*n_block*iptr+k];                     for (k=0;k<n_block*n_block;++k) out->factors[n_block*n_block*iptr+k]=A->val[n_block*n_block*iptr+k];
80                 }                 }
81                 out->main_iptr[i]=iptr_main;                 out->main_iptr[i]=iptr_main;
82                 if (iptr_main==A->pattern->ptr[0]-1)                 if (iptr_main==A->pattern->ptr[0]-1)  {
83                    Paso_setError(VALUE_ERROR, "Paso_Solver_getILU: no main diagonal");                    Paso_setError(VALUE_ERROR, "Paso_Solver_getILU: no main diagonal");
84             }                 }
85         }         }
86         /* start factorization */         /* start factorization */
87        

Legend:
Removed from v.1840  
changed lines
  Added in v.1841

  ViewVC Help
Powered by ViewVC 1.1.26