Lines Matching refs:nkeys
40 static PetscErrorCode MarkedObjectMapView(PetscViewer vwr, std::size_t nkeys, const PetscObjectId *… in MarkedObjectMapView() argument
48 PetscCall(PetscViewerASCIISynchronizedPrintf(vwr, "size: %zu\n", nkeys)); in MarkedObjectMapView()
51 for (std::size_t i = 0; i < nkeys; ++i) { in MarkedObjectMapView()
74 …onst char cond_str[], MPI_Comm comm, PetscDeviceContext dctx, std::size_t nkeys, const PetscObject… in CheckMarkedObjectMap_Private() argument
89 PetscCall(MarkedObjectMapView(vwr, nkeys, keys, modes, ndeps, dependencies)); in CheckMarkedObjectMap_Private()
95 …etscBool)(!!(__cond__)), PetscStringize(__cond__), PETSC_COMM_SELF, dctx, nkeys, keys, modes, ndep…
117 std::size_t nkeys; in TestAllCombinations() local
126 PetscCall(PetscGetMarkedObjectMap_Internal(&nkeys, &keys, &modes, &ndeps, &dependencies)); in TestAllCombinations()
127 PetscCallCXX(found_keys.resize(nkeys)); in TestAllCombinations()
134 const auto keys_end = keys + nkeys; in TestAllCombinations()
157 …PetscCall(CheckMarkedObjectMap(nkeys == num_expected_keys, "marked object map has %zu keys expecte… in TestAllCombinations()
167 … PetscCall(PetscRestoreMarkedObjectMap_Internal(nkeys, &keys, &modes, &ndeps, &dependencies)); in TestAllCombinations()
170 PetscCall(PetscGetMarkedObjectMap_Internal(&nkeys, &keys, &modes, &ndeps, &dependencies)); in TestAllCombinations()
171 …etscCall(CheckMarkedObjectMap(nkeys == 0, "synchronizing device context did not empty dependency m… in TestAllCombinations()
172 … PetscCall(PetscRestoreMarkedObjectMap_Internal(nkeys, &keys, &modes, &ndeps, &dependencies)); in TestAllCombinations()
190 std::size_t nkeys; in CheckMapEqual() local
198 PetscCall(PetscGetMarkedObjectMap_Internal(&nkeys, &keys, &modes, &ndeps, &dependencies)); in CheckMapEqual()
200 const auto key_end = keys + nkeys; in CheckMapEqual()
238 PetscCall(PetscRestoreMarkedObjectMap_Internal(nkeys, &keys, &modes, &ndeps, &dependencies)); in CheckMapEqual()