1. petsc
  2. PETSc
  3. petsc

Commits

Jed Brown  committed d2bbedb

Sys: PetscContainerCreate must call PetscSysInitializePackage

Fixes "Invalid object classid 0" errors.

Reported-by: Barry Smith <bsmith@mcs.anl.gov>
Suggested-by: Matthew G. Knepley <knepley@gmail.com>

  • Participants
  • Parent commits aa2d57e
  • Branches master

Comments (0)

Files changed (1)

File src/sys/objects/inherit.c

View file
 
   PetscFunctionBegin;
   PetscValidPointer(container,2);
+  ierr = PetscSysInitializePackage();CHKERRQ(ierr);
   ierr = PetscHeaderCreate(contain,_p_PetscContainer,PetscInt,PETSC_CONTAINER_CLASSID,"PetscContainer","Container","Sys",comm,PetscContainerDestroy,0);CHKERRQ(ierr);
   *container = contain;
   PetscFunctionReturn(0);