Commits

Lisandro Dalcin committed 894bdb7

Code formatting

  • Participants
  • Parent commits e9894b0

Comments (0)

Files changed (1)

   PetscValidIntPointer(ghost_width,8);
 
   ierr = IGA_Grid_Reset(g);CHKERRQ(ierr);
-  g->dim  = dim;
-  g->dof  = dof;
+  g->dim = dim;
+  g->dof = dof;
   for (i=0; i<dim; i++) {
     g->sizes[i]       = sizes[i];
     g->local_start[i] = local_start[i];
     PetscInt c,i,j,k,pos = 0;
     nght = bs*gwidth[0]*gwidth[1]*gwidth[2];
     ierr = PetscMalloc(nght*sizeof(PetscInt),&ight);CHKERRQ(ierr);
-    for (k=kgstart; k<kgend; k++) {
-      for (j=jgstart; j<jgend; j++) {
+    for (k=kgstart; k<kgend; k++)
+      for (j=jgstart; j<jgend; j++)
         for (i=igstart; i<igend; i++) {
           PetscInt ig = i, jg = j, kg = k; /* account for periodicicty */
           if (ig<0) ig = isize + ig; else if (ig>=isize) ig = ig % isize;
           for (c=0; c<bs; c++)
             ight[pos++] = c + bs*(ig + jg * jstride + kg * kstride);
         }
-      }
-    }
   }
   *nghost  = nght;
   *indices = ight;