当前位置: 首页>>代码示例>>C++>>正文


C++ PetscToPointer函数代码示例

本文整理汇总了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) ));
}
开发者ID:OpenCMISS-Dependencies,项目名称:slepc,代码行数:5,代码来源:stslesf.c

示例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);
}
开发者ID:masa-ito,项目名称:PETScToPoisson,代码行数:5,代码来源:packf.c

示例3: stsetksp_

PETSC_EXTERN void PETSC_STDCALL  stsetksp_(ST *st,KSP ksp, int *__ierr ){
*__ierr = STSetKSP(*st,
	(KSP)PetscToPointer((ksp) ));
}
开发者ID:OpenCMISS-Dependencies,项目名称:slepc,代码行数:4,代码来源:stslesf.c

示例4: matcoarsendestroy_

void PETSC_STDCALL  matcoarsendestroy_(MatCoarsen *agg, int *__ierr ){
*__ierr = MatCoarsenDestroy(
	(MatCoarsen* )PetscToPointer((agg) ));
}
开发者ID:Kun-Qu,项目名称:petsc,代码行数:4,代码来源:coarsenf.c

示例5: matcoarsencreate_

void PETSC_STDCALL  matcoarsencreate_(MPI_Fint * comm,MatCoarsen *newcrs, int *__ierr ){
*__ierr = MatCoarsenCreate(
	MPI_Comm_f2c( *(comm) ),
	(MatCoarsen* )PetscToPointer((newcrs) ));
}
开发者ID:Kun-Qu,项目名称:petsc,代码行数:5,代码来源:coarsenf.c

示例6: matcoarsensetadjacency_

void PETSC_STDCALL  matcoarsensetadjacency_(MatCoarsen *agg,Mat adj, int *__ierr ){
*__ierr = MatCoarsenSetAdjacency(*agg,
	(Mat)PetscToPointer((adj) ));
}
开发者ID:Kun-Qu,项目名称:petsc,代码行数:4,代码来源:coarsenf.c

示例7: petscdrawpointsetsize_

void PETSC_STDCALL  petscdrawpointsetsize_(PetscDraw draw,PetscReal *width, int *__ierr ){
*__ierr = PetscDrawPointSetSize(
	(PetscDraw)PetscToPointer((draw) ),*width);
}
开发者ID:Kun-Qu,项目名称:petsc,代码行数:4,代码来源:dpointsf.c

示例8: dmplexcopycoordinates_

PETSC_EXTERN void PETSC_STDCALL  dmplexcopycoordinates_(DM dmA,DM dmB, int *__ierr ){
*__ierr = DMPlexCopyCoordinates(
	(DM)PetscToPointer((dmA) ),
	(DM)PetscToPointer((dmB) ));
}
开发者ID:masa-ito,项目名称:PETScToPoisson,代码行数:5,代码来源:plexinterpolatef.c

示例9: dmplexuninterpolate_

PETSC_EXTERN void PETSC_STDCALL  dmplexuninterpolate_(DM dm,DM *dmUnint, int *__ierr ){
*__ierr = DMPlexUninterpolate(
	(DM)PetscToPointer((dm) ),dmUnint);
}
开发者ID:masa-ito,项目名称:PETScToPoisson,代码行数:4,代码来源:plexinterpolatef.c

示例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) ));
}
开发者ID:OpenCMISS-Dependencies,项目名称:slepc,代码行数:5,代码来源:stslesf.c

示例11: dmcompositegetnumberdm_

PETSC_EXTERN void PETSC_STDCALL  dmcompositegetnumberdm_(DM dm,PetscInt *nDM, int *__ierr ){
*__ierr = DMCompositeGetNumberDM(
	(DM)PetscToPointer((dm) ),nDM);
}
开发者ID:masa-ito,项目名称:PETScToPoisson,代码行数:4,代码来源:packf.c

示例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);
}
开发者ID:masa-ito,项目名称:PETScToPoisson,代码行数:5,代码来源:packf.c


注:本文中的PetscToPointer函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。