Commits

Lisandro Dalcin committed 88cbc85

Fix issue with options handlers in petsc-3.4

Comments (0)

Files changed (4)

 
   PetscFunctionReturn(0);
 }
+static PetscErrorCode OptHdlDel(PetscObject obj,void *ctx){return 0;}
 */
 
 #undef  __FUNCT__
   PetscErrorCode ierr;
   PetscFunctionBegin;
   PetscValidHeaderSpecific(ksp,KSP_CLASSID,1);
-  /*ierr = PetscObjectAddOptionsHandler((PetscObject)ksp,IGA_OptionsHandler_KSP,PETSC_NULL,PETSC_NULL);CHKERRQ(ierr);*/
+  /*ierr = PetscObjectAddOptionsHandler((PetscObject)ksp,IGA_OptionsHandler_KSP,OptHdlDel,PETSC_NULL);CHKERRQ(ierr);*/
   ierr = KSPGetPC(ksp,&pc);CHKERRQ(ierr);
   ierr = IGASetOptionsHandlerPC(pc);CHKERRQ(ierr);
   PetscFunctionReturn(0);
 
 /* ---------------------------------------------------------------- */
 
+
 #undef  __FUNCT__
 #define __FUNCT__ "IGA_OptionsHandler_PC"
 static PetscErrorCode IGA_OptionsHandler_PC(PetscObject obj,void *ctx)
   /* */
   PetscFunctionReturn(0);
 }
+static PetscErrorCode OptHdlDel(PetscObject obj,void *ctx){return 0;}
 
 #undef  __FUNCT__
 #define __FUNCT__ "IGASetOptionsHandlerPC"
   PetscErrorCode ierr;
   PetscFunctionBegin;
   PetscValidHeaderSpecific(pc,PC_CLASSID,1);
-  ierr = PetscObjectAddOptionsHandler((PetscObject)pc,IGA_OptionsHandler_PC,PETSC_NULL,PETSC_NULL);CHKERRQ(ierr);
+  ierr = PetscObjectAddOptionsHandler((PetscObject)pc,IGA_OptionsHandler_PC,OptHdlDel,PETSC_NULL);CHKERRQ(ierr);
   PetscFunctionReturn(0);
 }
 
 /* ---------------------------------------------------------------- */
+
 
   PetscFunctionReturn(0);
 }
+static PetscErrorCode OptHdlDel(PetscObject obj,void *ctx){return 0;}
 */
 
 #undef  __FUNCT__
   PetscErrorCode ierr;
   PetscFunctionBegin;
   PetscValidHeaderSpecific(snes,SNES_CLASSID,1);
-  /*ierr = PetscObjectAddOptionsHandler((PetscObject)snes,IGA_OptionsHandler_SNES,PETSC_NULL,PETSC_NULL);CHKERRQ(ierr);*/
+  /*ierr = PetscObjectAddOptionsHandler((PetscObject)snes,IGA_OptionsHandler_SNES,OptHdlDel,PETSC_NULL);CHKERRQ(ierr);*/
   ierr = SNESGetKSP(snes,&ksp);CHKERRQ(ierr);
   ierr = IGASetOptionsHandlerKSP(ksp);CHKERRQ(ierr);
   PetscFunctionReturn(0);
 
   PetscFunctionReturn(0);
 }
+static PetscErrorCode OptHdlDel(PetscObject obj,void *ctx){return 0;}
 */
 
 #undef  __FUNCT__
   PetscErrorCode ierr;
   PetscFunctionBegin;
   PetscValidHeaderSpecific(ts,TS_CLASSID,1);
-  /*ierr = PetscObjectAddOptionsHandler((PetscObject)ts,IGA_OptionsHandler_TS,PETSC_NULL,PETSC_NULL);CHKERRQ(ierr);*/
+  /*ierr = PetscObjectAddOptionsHandler((PetscObject)ts,IGA_OptionsHandler_TS,OptHdlDel,PETSC_NULL);CHKERRQ(ierr);*/
   ierr = TSGetSNES(ts,&snes);CHKERRQ(ierr);
   ierr = IGASetOptionsHandlerSNES(snes);CHKERRQ(ierr);
   PetscFunctionReturn(0);
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 ProjectModifiedEvent.java.
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.