/[escript]/trunk/dudley/src/ElementFile_createColoring.c
ViewVC logotype

Diff of /trunk/dudley/src/ElementFile_createColoring.c

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

revision 1335 by gross, Fri Nov 2 05:54:25 2007 UTC revision 1388 by trankine, Fri Jan 11 07:45:58 2008 UTC
# Line 57  void Finley_ElementFile_createColoring(F Line 57  void Finley_ElementFile_createColoring(F
57                       independent=TRUE;                       independent=TRUE;
58                       for (i=0;i<NN;i++) {                       for (i=0;i<NN;i++) {
59  #ifdef BOUNDS_CHECK  #ifdef BOUNDS_CHECK
60    if (in->Nodes[INDEX2(i,e,NN)] < 0 || in->Nodes[INDEX2(i,e,NN)] >= numNodes) { printf("BOUNDS_CHECK %s %d i=%d e=%d NN=%d min_id=%d in->Nodes[INDEX2...]=%d\n", __FILE__, __LINE__, i, e, NN, min_id, in->Nodes[INDEX2(i,e,NN)]); exit(1); }
61  if ((degreeOfFreedom[in->Nodes[INDEX2(i,e,NN)]]-min_id) >= len || (degreeOfFreedom[in->Nodes[INDEX2(i,e,NN)]]-min_id) < 0) { printf("BOUNDS_CHECK %s %d i=%d e=%d NN=%d min_id=%d dof=%d\n", __FILE__, __LINE__, i, e, NN, min_id, degreeOfFreedom[in->Nodes[INDEX2(i,e,NN)]]-min_id); exit(1); }  if ((degreeOfFreedom[in->Nodes[INDEX2(i,e,NN)]]-min_id) >= len || (degreeOfFreedom[in->Nodes[INDEX2(i,e,NN)]]-min_id) < 0) { printf("BOUNDS_CHECK %s %d i=%d e=%d NN=%d min_id=%d dof=%d\n", __FILE__, __LINE__, i, e, NN, min_id, degreeOfFreedom[in->Nodes[INDEX2(i,e,NN)]]-min_id); exit(1); }
62  #endif  #endif
63                  if (maskDOF[degreeOfFreedom[in->Nodes[INDEX2(i,e,NN)]]-min_id]>0) {                  if (maskDOF[degreeOfFreedom[in->Nodes[INDEX2(i,e,NN)]]-min_id]>0) {
# Line 72  if ((degreeOfFreedom[in->Nodes[INDEX2(i, Line 73  if ((degreeOfFreedom[in->Nodes[INDEX2(i,
73                               numUncoloredElements++;                               numUncoloredElements++;
74                       }                       }
75                    }                    }
76    
77              }              }
78              in->maxColor++;              in->maxColor++;
79           }  /* end of while loop */           }  /* end of while loop */

Legend:
Removed from v.1335  
changed lines
  Added in v.1388

  ViewVC Help
Powered by ViewVC 1.1.26