本文整理汇总了C++中PetscToPointer函数的典型用法代码示例。如果您正苦于以下问题:C++ PetscToPointer函数的具体用法?C++ PetscToPointer怎么用?C++ PetscToPointer使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了PetscToPointer函数的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: stmatsolvetranspose_
PETSC_EXTERN void PETSC_STDCALL stmatsolvetranspose_(ST *st,Vec b,Vec x, int *__ierr ){
*__ierr = STMatSolveTranspose(*st,
(Vec)PetscToPointer((b) ),
(Vec)PetscToPointer((x) ));
}
示例2: dmcompositescatterarray_
PETSC_EXTERN void PETSC_STDCALL dmcompositescatterarray_(DM dm,Vec gvec,Vec *lvecs, int *__ierr ){
*__ierr = DMCompositeScatterArray(
(DM)PetscToPointer((dm) ),
(Vec)PetscToPointer((gvec) ),lvecs);
}
示例3: stsetksp_
PETSC_EXTERN void PETSC_STDCALL stsetksp_(ST *st,KSP ksp, int *__ierr ){
*__ierr = STSetKSP(*st,
(KSP)PetscToPointer((ksp) ));
}
示例4: matcoarsendestroy_
void PETSC_STDCALL matcoarsendestroy_(MatCoarsen *agg, int *__ierr ){
*__ierr = MatCoarsenDestroy(
(MatCoarsen* )PetscToPointer((agg) ));
}
示例5: matcoarsencreate_
void PETSC_STDCALL matcoarsencreate_(MPI_Fint * comm,MatCoarsen *newcrs, int *__ierr ){
*__ierr = MatCoarsenCreate(
MPI_Comm_f2c( *(comm) ),
(MatCoarsen* )PetscToPointer((newcrs) ));
}
示例6: matcoarsensetadjacency_
void PETSC_STDCALL matcoarsensetadjacency_(MatCoarsen *agg,Mat adj, int *__ierr ){
*__ierr = MatCoarsenSetAdjacency(*agg,
(Mat)PetscToPointer((adj) ));
}
示例7: petscdrawpointsetsize_
void PETSC_STDCALL petscdrawpointsetsize_(PetscDraw draw,PetscReal *width, int *__ierr ){
*__ierr = PetscDrawPointSetSize(
(PetscDraw)PetscToPointer((draw) ),*width);
}
示例8: dmplexcopycoordinates_
PETSC_EXTERN void PETSC_STDCALL dmplexcopycoordinates_(DM dmA,DM dmB, int *__ierr ){
*__ierr = DMPlexCopyCoordinates(
(DM)PetscToPointer((dmA) ),
(DM)PetscToPointer((dmB) ));
}
示例9: dmplexuninterpolate_
PETSC_EXTERN void PETSC_STDCALL dmplexuninterpolate_(DM dm,DM *dmUnint, int *__ierr ){
*__ierr = DMPlexUninterpolate(
(DM)PetscToPointer((dm) ),dmUnint);
}
示例10: stmatmulttranspose_
PETSC_EXTERN void PETSC_STDCALL stmatmulttranspose_(ST *st,PetscInt *k,Vec x,Vec y, int *__ierr ){
*__ierr = STMatMultTranspose(*st,*k,
(Vec)PetscToPointer((x) ),
(Vec)PetscToPointer((y) ));
}
示例11: dmcompositegetnumberdm_
PETSC_EXTERN void PETSC_STDCALL dmcompositegetnumberdm_(DM dm,PetscInt *nDM, int *__ierr ){
*__ierr = DMCompositeGetNumberDM(
(DM)PetscToPointer((dm) ),nDM);
}
示例12: dmcompositegatherarray_
PETSC_EXTERN void PETSC_STDCALL dmcompositegatherarray_(DM dm,Vec gvec,InsertMode *imode,Vec *lvecs, int *__ierr ){
*__ierr = DMCompositeGatherArray(
(DM)PetscToPointer((dm) ),
(Vec)PetscToPointer((gvec) ),*imode,lvecs);
}