Commits

BarryFSmith committed 0a9920b

type caste of function missing void

  • Participants
  • Parent commits e2379f4

Comments (0)

Files changed (1)

File src/tao/bound/examples/tutorials/plate2.c

   ierr = PetscOptionsHasName(NULL,"-matrixfree",&flg);CHKERRQ(ierr);
   if (flg) {
       ierr = MatCreateShell(PETSC_COMM_WORLD,m,m,N,N,(void*)&user,&H_shell);
-      ierr = MatShellSetOperation(H_shell,MATOP_MULT,(void(*)())MyMatMult);CHKERRQ(ierr);
+      ierr = MatShellSetOperation(H_shell,MATOP_MULT,(void(*)(void))MyMatMult);CHKERRQ(ierr);
       ierr = MatSetOption(H_shell,MAT_SYMMETRIC,PETSC_TRUE);CHKERRQ(ierr);
       ierr = TaoSetHessianRoutine(tao,H_shell,H_shell,MatrixFreeHessian,(void*)&user);CHKERRQ(ierr);
   } else {