Lines Matching refs:keys
40 …kedObjectMapView(PetscViewer vwr, std::size_t nkeys, const PetscObjectId *keys, const PetscMemoryA… in MarkedObjectMapView() argument
52 PetscCall(PetscViewerASCIISynchronizedPrintf(vwr, "id %" PetscInt64_FMT " -> {\n", keys[i])); in MarkedObjectMapView()
74 …mm comm, PetscDeviceContext dctx, std::size_t nkeys, const PetscObjectId *keys, const PetscMemoryA… in CheckMarkedObjectMap_Private() argument
89 PetscCall(MarkedObjectMapView(vwr, nkeys, keys, modes, ndeps, dependencies)); in CheckMarkedObjectMap_Private()
95 …l)(!!(__cond__)), PetscStringize(__cond__), PETSC_COMM_SELF, dctx, nkeys, keys, modes, ndeps, cons…
118 PetscObjectId *keys; in TestAllCombinations() local
126 PetscCall(PetscGetMarkedObjectMap_Internal(&nkeys, &keys, &modes, &ndeps, &dependencies)); in TestAllCombinations()
134 const auto keys_end = keys + nkeys; in TestAllCombinations()
143 key_idx = std::distance(keys, std::find(keys, keys_end, actual_key)); in TestAllCombinations()
146 …PetscCall(CheckMarkedObjectMap(key_idx < std::distance(keys, keys_end), "marked object map could n… in TestAllCombinations()
165 …*it > 0, "Marked Object Map has extra object entry: id %" PetscInt64_FMT, keys[std::distance(found… in TestAllCombinations()
167 … PetscCall(PetscRestoreMarkedObjectMap_Internal(nkeys, &keys, &modes, &ndeps, &dependencies)); in TestAllCombinations()
170 PetscCall(PetscGetMarkedObjectMap_Internal(&nkeys, &keys, &modes, &ndeps, &dependencies)); in TestAllCombinations()
172 … PetscCall(PetscRestoreMarkedObjectMap_Internal(nkeys, &keys, &modes, &ndeps, &dependencies)); in TestAllCombinations()
191 PetscObjectId *keys; in CheckMapEqual() local
198 PetscCall(PetscGetMarkedObjectMap_Internal(&nkeys, &keys, &modes, &ndeps, &dependencies)); in CheckMapEqual()
200 const auto key_end = keys + nkeys; in CheckMapEqual()
205 for (auto key_it = keys; key_it != key_end; ++key_it, ++mode_it, ++ndep_it, ++dep_it) { in CheckMapEqual()
238 PetscCall(PetscRestoreMarkedObjectMap_Internal(nkeys, &keys, &modes, &ndeps, &dependencies)); in CheckMapEqual()