Home
last modified time | relevance | path

Searched refs:mat_type (Results 1 – 3 of 3) sorted by relevance

/honee/examples/
H A Dnavierstokes.c65 MatType mat_type = NULL; in main() local
82 if (strstr(vec_type, VECCUDA)) mat_type = MATAIJCUSPARSE; in main()
83 else if (strstr(vec_type, VECKOKKOS)) mat_type = MATAIJKOKKOS; in main()
84 else mat_type = MATAIJ; in main()
86 PetscCall(CreateDM(honee, problem, mat_type, vec_type, &dm)); in main()
/honee/include/
H A Dpetsc-ceed-utils.h276 static inline PetscErrorCode DefaultMatTypeFromVecType(VecType vec_type, MatType *mat_type) { in DefaultMatTypeFromVecType() argument
278 if (strstr(vec_type, VECCUDA)) *mat_type = MATAIJCUSPARSE; in DefaultMatTypeFromVecType()
279 else if (strstr(vec_type, VECHIP)) *mat_type = MATAIJHIPSPARSE; in DefaultMatTypeFromVecType()
280 else if (strstr(vec_type, VECKOKKOS)) *mat_type = MATAIJKOKKOS; in DefaultMatTypeFromVecType()
281 else *mat_type = MATAIJ; in DefaultMatTypeFromVecType()
/honee/src/
H A Dsetupdm.c15 PetscErrorCode CreateDM(Honee honee, ProblemData problem, MatType mat_type, VecType vec_type, DM *d… in CreateDM() argument
38 PetscCall(DMSetMatType(*dm, mat_type)); in CreateDM()