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

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

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

revision 2353 by artak, Wed Apr 1 01:49:47 2009 UTC revision 2360 by artak, Thu Apr 2 04:12:12 2009 UTC
# Line 152  Paso_Solver_AMG* Paso_Solver_getAMG(Paso Line 152  Paso_Solver_AMG* Paso_Solver_getAMG(Paso
152             if( Paso_noError()) {             if( Paso_noError()) {
153                /* if there are no nodes in the coarse level there is no more work to do */                /* if there are no nodes in the coarse level there is no more work to do */
154                out->n_C=n-out->n_F;                out->n_C=n-out->n_F;
155                if (level>0) {                if (level>0 && out->n_F>500) {
156                 /*if (out->n_F>500) {*/                 /*if (out->n_F>500) {*/
157                     out->rows_in_C=MEMALLOC(out->n_C,index_t);                     out->rows_in_C=MEMALLOC(out->n_C,index_t);
158                     out->mask_C=MEMALLOC(n,index_t);                     out->mask_C=MEMALLOC(n,index_t);
# Line 247  Paso_Solver_AMG* Paso_Solver_getAMG(Paso Line 247  Paso_Solver_AMG* Paso_Solver_getAMG(Paso
247    if (Paso_noError()) {    if (Paso_noError()) {
248        if (verbose) {        if (verbose) {
249           printf("AMG: %d unknowns eliminated. %d left.\n",out->n_F,n-out->n_F);           printf("AMG: %d unknowns eliminated. %d left.\n",out->n_F,n-out->n_F);
250           if (level>0) {           if (level>0 && out->n_F>500) {
251          /* if (out->n_F<500) {*/          /* if (out->n_F<500) {*/
252              printf("timing: AMG: MIS/reordering/elemination : %e/%e/%e\n",time2,time0,time1);              printf("timing: AMG: MIS/reordering/elemination : %e/%e/%e\n",time2,time0,time1);
253           } else {           } else {
# Line 292  void Paso_Solver_solveAMG(Paso_Solver_AM Line 292  void Paso_Solver_solveAMG(Paso_Solver_AM
292       double *x0=MEMALLOC(amg->n,double);       double *x0=MEMALLOC(amg->n,double);
293       double time0=0;       double time0=0;
294            
295       if (amg->level==0) {       if (amg->level==0  || amg->n_F<=500) {
296       /*if (amg->n_F<=500) {*/       /*if (amg->n_F<=500) {*/
297        time0=Paso_timer();        time0=Paso_timer();
298                    

Legend:
Removed from v.2353  
changed lines
  Added in v.2360

  ViewVC Help
Powered by ViewVC 1.1.26