1. Lisandro Dalcin
  2. PetIGA

Commits

Lisandro Dalcin  committed d43d423

Fix regression handling option -iga_periodic

  • Participants
  • Parent commits 4cb5959
  • Branches default

Comments (0)

Files changed (1)

File src/petiga.c

View file
  • Ignore whitespace
 
     /* Periodicity */
     ierr = PetscOptionsBoolArray("-iga_periodic","Periodicity","IGAAxisSetPeriodic",wraps,(nw=dim,&nw),&flg);CHKERRQ(ierr);
-    if (flg && !nw) for (i=0; i<dim; i++) wraps[i] = PETSC_TRUE;
+    if (flg && nw==0) for (i=0; i<dim; i++) wraps[i] = PETSC_TRUE;
+    if (flg && nw==1) for (i=1; i<dim; i++) wraps[i] = wraps[0]; /* XXX */
     if (flg) for (i=0; i<dim; i++) {
         PetscBool w = wraps[i];
         ierr = IGAAxisSetPeriodic(iga->axis[i],w);CHKERRQ(ierr);