1. Lisandro Dalcin
  2. PetIGA

Commits

Lisandro Dalcin  committed ba815dd

Remove call to VecSetFromOptions() in IGACreate[Local]Vec()

  • Participants
  • Parent commits 4337b13
  • Branches default

Comments (0)

Files changed (1)

File src/petigavec.c

View file
  • Ignore whitespace
   ierr = VecCreate(((PetscObject)iga)->comm,vec);CHKERRQ(ierr);
   ierr = VecSetLayout(*vec,iga->map);CHKERRQ(ierr);
   ierr = VecSetType(*vec,iga->vectype);CHKERRQ(ierr);
-  ierr = VecSetFromOptions(*vec);CHKERRQ(ierr);
   ierr = PetscObjectCompose((PetscObject)*vec,"IGA",(PetscObject)iga);CHKERRQ(ierr);
   ierr = VecSetOperation(*vec,VECOP_DUPLICATE,(void(*)(void))VecDuplicate_IGA);CHKERRQ(ierr);
   ierr = VecSetOperation(*vec,VECOP_VIEW,(void(*)(void))VecView_IGA);CHKERRQ(ierr);
   ierr = VecSetSizes(*vec,n*bs,n*bs);CHKERRQ(ierr);
   ierr = VecSetBlockSize(*vec,bs);CHKERRQ(ierr);
   ierr = VecSetType(*vec,iga->vectype);CHKERRQ(ierr);
-  ierr = VecSetFromOptions(*vec);CHKERRQ(ierr);
   PetscFunctionReturn(0);
 }