Lines Matching refs:names
30 MatRootName names = MatRootNameList; in MatGetRootType_Private() local
36 while (names) { in MatGetRootType_Private()
37 PetscCall(PetscStrcmp(inType, names->mname, &found)); in MatGetRootType_Private()
38 if (!found) PetscCall(PetscStrcmp(inType, names->sname, &found)); in MatGetRootType_Private()
41 *rootType = names->rname; in MatGetRootType_Private()
44 names = names->next; in MatGetRootType_Private()
67 MatRootName names = MatRootNameList; in MatGetMPIMatType_Private() local
73 while (names) { in MatGetMPIMatType_Private()
74 PetscCall(PetscStrcmp(inType, names->sname, &found)); in MatGetMPIMatType_Private()
75 if (!found) PetscCall(PetscStrcmp(inType, names->mname, &found)); in MatGetMPIMatType_Private()
76 if (!found) PetscCall(PetscStrcmp(inType, names->rname, &found)); in MatGetMPIMatType_Private()
79 *MPIType = names->mname; in MatGetMPIMatType_Private()
82 names = names->next; in MatGetMPIMatType_Private()
110 MatRootName names = MatRootNameList; in MatSetType() local
128 while (names) { in MatSetType()
129 PetscCall(PetscStrcmp(matype, names->rname, &found)); in MatSetType()
133 …if (size == 1 && !matMPI) matype = names->sname; /* try to align the requested type (matype) with … in MatSetType()
134 else matype = names->mname; in MatSetType()
137 names = names->next; in MatSetType()
151 if (names && mat->assembled) { in MatSetType()
152 PetscCall(PetscStrbeginswith(names->rname, "sell", &sametype)); in MatSetType()
322 MatRootName names; in MatRegisterRootName() local
325 PetscCall(PetscNew(&names)); in MatRegisterRootName()
326 PetscCall(PetscStrallocpy(rname, &names->rname)); in MatRegisterRootName()
327 PetscCall(PetscStrallocpy(sname, &names->sname)); in MatRegisterRootName()
328 PetscCall(PetscStrallocpy(mname, &names->mname)); in MatRegisterRootName()
330 MatRootNameList = names; in MatRegisterRootName()
334 next->next = names; in MatRegisterRootName()