Commits

Matt Knepley committed e42b864

PetscFE+OpenCL: Fixed number of blocks
- Now test should pass

Comments (0)

Files changed (1)

src/dm/dt/interface/dtfe.c

   PetscFunctionBegin;
   ierr = PetscFEGetSpatialDimension(fem, &dim);CHKERRQ(ierr);
   ierr = PetscMalloc(8192 * sizeof(char), &buffer);CHKERRQ(ierr);
-  ierr = PetscFEGetTileSizes(fem, &N_bl, NULL, NULL, NULL);CHKERRQ(ierr);
+  ierr = PetscFEGetTileSizes(fem, NULL, &N_bl, NULL, NULL);CHKERRQ(ierr);
   ierr = PetscFEOpenCLGenerateIntegrationCode(fem, &buffer, 8192, N_bl);CHKERRQ(ierr);
   len  = strlen(buffer);
   *ocl_prog = clCreateProgramWithSource(ocl->ctx_id, 1, (const char **) &buffer, &len, &ierr2);CHKERRQ(ierr2);