Jed Brown avatar Jed Brown committed 6d86feb Merge

Merge branch 'toby/fix-sor-baij'

Shell portability and silence bad compiler warning.

* toby/fix-sor-baij:
MatSOR_SeqBAIJ: initialize work for pedantic compilers.
KSP test: avoid bash4 case syntax ';&' in favor of simpler alternative

Comments (0)

Files changed (2)


 	-@for mt in aij baij dense; do \
 	  case $$mt in \
-	    aij) \
-	      ;& \
-	    dense) \
-	      ;& \
-	    sbaij) \
+	    aij|dense|sbaij) \
 	      bss="1" \
 	      ;; \
 	    baij) \


   PetscScalar       *x,*work,*w,*workt,*t;
   const MatScalar   *v,*aa = a->a, *idiag;
   const PetscScalar *b,*xb;
-  PetscScalar       s[7], xw[7];
+  PetscScalar       s[7], xw[7]={0}; /* avoid some compilers thinking xw is uninitialized */
   PetscErrorCode    ierr;
   PetscInt          m = a->mbs,i,i2,nz,bs = A->rmap->bs,bs2 = bs*bs,k,j,idx,it;
   const PetscInt    *diag,*ai = a->i,*aj = a->j,*vi;
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.