Home
last modified time | relevance | path

Searched refs:PetscAssert (Results 1 – 25 of 83) sorted by relevance

1234

/petsc/include/
H A Dpetscstring.h34 #define PetscAssertPointer_Private(ptr, arg) PetscAssert((ptr), PETSC_COMM_SELF, PETSC_ERR_ARG_NULL…
247 …if (s) PetscAssert(n, PETSC_COMM_SELF, PETSC_ERR_ARG_NULL, "Requires an output string of length at… in PetscStrncpy()
289 PetscAssert(n, PETSC_COMM_SELF, PETSC_ERR_ARG_SIZ, "String buffer length must be positive"); in PetscStrlcat()
619PetscAssert(a, PETSC_COMM_SELF, PETSC_ERR_ARG_NULL, "Trying to copy %zu bytes to null pointer (Arg… in PetscMemmove()
620PetscAssert(b, PETSC_COMM_SELF, PETSC_ERR_ARG_NULL, "Trying to copy %zu bytes from a null pointer … in PetscMemmove()
682PetscAssert(a, PETSC_COMM_SELF, PETSC_ERR_ARG_NULL, "Trying to copy %zu bytes to a null pointer (A… in PetscMemcpy()
683PetscAssert(b, PETSC_COMM_SELF, PETSC_ERR_ARG_NULL, "Trying to copy %zu bytes from a null pointer … in PetscMemcpy()
684PetscAssert(!(((al > bl) && (al - bl) < n) || (bl - al) < n), PETSC_COMM_SELF, PETSC_ERR_ARG_INCOM… in PetscMemcpy()
735PetscAssert(a, PETSC_COMM_SELF, PETSC_ERR_ARG_NULL, "Trying to zero %zu bytes at a null pointer", … in PetscMemzero()
/petsc/src/sys/objects/cxx/memory/
H A Dobject_pool.cxx223PetscAssert((align > 0) && (align <= max_align), PETSC_COMM_SELF, PETSC_ERR_MEMC, "Alignment %zu m… in valid_alignment_()
224PetscAssert(!(align & (align - 1)), PETSC_COMM_SELF, PETSC_ERR_ARG_WRONG, "Alignment %zu must be a… in valid_alignment_()
329PetscAssert(base_ptr, PETSC_COMM_SELF, PETSC_ERR_MEM, "operator new() failed to allocate %zu bytes… in allocate_ptr_()
336PetscAssert(*ret_ptr, PETSC_COMM_SELF, PETSC_ERR_LIB, "std::align() failed to align pointer %p (si… in allocate_ptr_()
341PetscAssert(alignment_offset <= max_align, PETSC_COMM_SELF, PETSC_ERR_MEMC, "Computed alignment of… in allocate_ptr_()
/petsc/src/sys/objects/device/impls/cupm/
H A Dcupmdevice.cxx96PetscAssert(initialized(), PETSC_COMM_SELF, PETSC_ERR_COR, "Device %d being configured before it w… in configure()
114PetscAssert(initialized(), PETSC_COMM_SELF, PETSC_ERR_COR, "Device %d being viewed before it was i… in view()
157 PetscAssert(initialized(), PETSC_COMM_SELF, PETSC_ERR_COR, "Device %d was not initialized", id()); in getattribute()
319PetscAssert(static_cast<decltype(devices_.size())>(id) < devices_.size(), PETSC_COMM_SELF, PETSC_E… in init_device_id_()
322PetscAssert(id == devices_[id]->id(), PETSC_COMM_SELF, PETSC_ERR_PLIB, "Entry %d contains device w… in init_device_id_()
/petsc/src/sys/tests/
H A Dex63.c69PetscAssert(set[0] == true_set[0], PETSC_COMM_WORLD, PETSC_ERR_ARG_INCOMP, "Sets of different size… in AssertSetsEqual()
70 …for (ii = 1; ii < set[0] + 1; ii++) PetscAssert(set[ii] == true_set[ii], PETSC_COMM_WORLD, PETSC_E… in AssertSetsEqual()
H A Dex62.c31 PetscAssert(n < 50, PETSC_COMM_WORLD, PETSC_ERR_ARG_WRONGSTATE, "n must be less than 50"); in Fibonnaci()
95PetscAssert(set[0] == true_set[0], PETSC_COMM_WORLD, PETSC_ERR_ARG_INCOMP, "Sets of different size… in AssertSetsEqual()
96 …for (ii = 1; ii < set[0] + 1; ii++) PetscAssert(set[ii] == true_set[ii], PETSC_COMM_WORLD, PETSC_E… in AssertSetsEqual()
/petsc/src/vec/is/utils/
H A Dpmap.c623PetscAssert((map->n >= 0) && (map->N >= 0) && (map->range), PETSC_COMM_SELF, PETSC_ERR_ARG_WRONGST… in PetscLayoutFindOwner()
624PetscAssert(idx >= 0 && idx <= map->N, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Index %" PetscI… in PetscLayoutFindOwner()
657PetscAssert((map->n >= 0) && (map->N >= 0) && (map->range), PETSC_COMM_SELF, PETSC_ERR_ARG_WRONGST… in PetscLayoutFindOwnerIndex()
658PetscAssert(idx >= 0 && idx <= map->N, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Index %" PetscI… in PetscLayoutFindOwnerIndex()
/petsc/src/sys/objects/
H A Dstate.c114PetscAssert(n >= 0, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Number of composed data ids: %" Pe… in PetscObjectComposedDataIncrease_()
136PetscAssert(n >= 0, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Number of composed star data ids: … in PetscObjectComposedDataStarIncrease_()
H A Ddestroy.c392PetscAssert(reg_count < (int)PETSC_STATIC_ARRAY_LENGTH(regfin), PETSC_COMM_SELF, PETSC_ERR_ARG_SIZ… in RegisterFinalizer()
393PetscAssert(regfin[reg_count].type == PETSC_FINALIZE_EMPTY, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Fina… in RegisterFinalizer()
/petsc/src/sys/objects/device/impls/
H A Dsegmentedmempool.hpp272PetscAssert(newsize <= capacity(), PETSC_COMM_SELF, PETSC_ERR_ARG_SIZ, "New size %zu larger than c… in resize()
444 …if (was_empty) PetscAssert(*success, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Failed to claim chunk (of s… in try_allocate_chunk()
480PetscAssert(!*success, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Successfully claimed a chunk (of size %zu… in try_allocate_chunk()
554PetscAssert(*ret_chunk, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Failed to find %zu in block, even though… in try_find_chunk()
768PetscAssert(found, PETSC_COMM_SELF, PETSC_ERR_MEM, "Failed to get a suitable memory chunk (of size… in allocate_()
886PetscAssert(chunk, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONG, "Memory pool does not own %p, so cannot r… in reallocate()
/petsc/src/dm/impls/stag/tests/
H A Dex43.c170PetscAssert(n_splits == 2, PetscObjectComm((PetscObject)dm), PETSC_ERR_SUP, "Expected a Fieldsplit… in main()
220PetscAssert(n_splits == 2, PetscObjectComm((PetscObject)dm), PETSC_ERR_SUP, "Expected a Fieldsplit… in main()
265PetscAssert(n_splits == 2, PetscObjectComm((PetscObject)dm), PETSC_ERR_SUP, "Expected a Fieldsplit… in main()
/petsc/src/mat/tutorials/
H A Dex19.c40PetscAssert(A_memtype == X_memtype, PETSC_COMM_WORLD, PETSC_ERR_PLIB, "Failed memtype guarantee in… in main()
/petsc/src/sys/info/
H A Dverboseinfo.c284PetscAssert(numClassID > 0, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Number of classids %" Pets… in PetscInfoProcessClass()
438PetscAssert(PetscInfoFile, PETSC_COMM_SELF, PETSC_ERR_ARG_NULL, "Have non-null PetscInfo file '%s'… in PetscInfoDestroy()
442PetscAssert(PETSC_STATIC_ARRAY_LENGTH(PetscInfoFlags) == PETSC_STATIC_ARRAY_LENGTH(PetscInfoNames)… in PetscInfoDestroy()
/petsc/src/sys/objects/device/impls/host/
H A Dhostcontext.cxx71PetscAssert(!dctx->data, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONGSTATE, "PetscDeviceContext %" PetscIn… in PetscDeviceContextCreate_HOST()
/petsc/include/petsc/private/
H A Dpetschypre.h49PetscAssert(HYPRE_GetError() == 0, PETSC_COMM_SELF, PETSC_ERR_LIB, "HYPRE error from previous HYPR…
/petsc/src/sys/objects/device/interface/
H A Dglobal_dcontext.cxx148PetscAssert(dctx->setup, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONGSTATE, "PetscDeviceContext %" PetscIn… in PetscDeviceContextSetCurrentContext()
H A Ddcontext.cxx29PetscAssert(!dctx->numChildren, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONGSTATE, "Device context still h… in destroy_()
328PetscAssert(dctx->device, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONGSTATE, "PetscDeviceContext %" PetscI… in PetscDeviceContextGetDevice()
595PetscAssert(n >= 0, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Number of contexts requested %" Pe… in PetscDeviceContextForkWithStreamType()
764PetscAssert(n >= 0, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Number of contexts merged %" Petsc… in PetscDeviceContextJoin()
H A Dmark_dcontext.cxx44PetscAssert(!event->data, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Event failed to destroy its data membe… in reset_()
515PetscAssert(CxxDataCast(dctx)->has_marked(id), PETSC_COMM_SELF, PETSC_ERR_PLIB, "PetscDeviceContex… in MarkFromID_CompatibleModes()
537PetscAssert(marked.dependencies.size() == 1, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Can only have a sin… in MarkFromID_IncompatibleModes_UpdateLastWrite()
552PetscAssert(cxx_data->has_marked(id), PETSC_COMM_SELF, PETSC_ERR_PLIB, "Did not find id %" PetscIn… in MarkFromID_IncompatibleModes_UpdateLastWrite()
/petsc/src/ksp/ksp/utils/lmvm/
H A Dlmproducts.c100PetscAssert(X->m == Y->m && X->m == dots->m, comm, PETSC_ERR_ARG_INCOMP, "X vecs, Y vecs, and dots… in LMProductsUpdate_Internal()
101PetscAssert(X->k == Y->k, comm, PETSC_ERR_ARG_INCOMP, "X and Y vecs are incompatible in state, (%d… in LMProductsUpdate_Internal()
102PetscAssert(dots->k <= X->k, comm, PETSC_ERR_ARG_INCOMP, "Dot products are ahead of X and Y, (%d, … in LMProductsUpdate_Internal()
103PetscAssert(X->operator_id == 0 || Y->operator_id == 0 || X->operator_id == Y->operator_id, comm, … in LMProductsUpdate_Internal()
104PetscAssert(X->operator_id != Y->operator_id || Y->operator_state == X->operator_state, comm, PETS… in LMProductsUpdate_Internal()
H A Dlmbasis.c42PetscAssert(mode == PETSC_MEMORY_ACCESS_READ || mode == PETSC_MEMORY_ACCESS_WRITE, PETSC_COMM_SELF… in LMBasisGetVec_Internal()
62PetscAssert(mode == PETSC_MEMORY_ACCESS_READ || mode == PETSC_MEMORY_ACCESS_WRITE, PETSC_COMM_SELF… in LMBasisRestoreVec()
179PetscAssert(link->vec == NULL, PetscObjectComm((PetscObject)basis->vecs), PETSC_ERR_PLIB, "Link no… in LMBasisRestoreWorkVec()
224PetscAssert(link->vec == NULL, PetscObjectComm((PetscObject)basis->vecs), PETSC_ERR_PLIB, "Link no… in LMBasisRestoreWorkRow()
/petsc/src/ksp/ksp/utils/lmvm/dense/
H A Dcd_utils.c34PetscAssert(src_memtype == dest_memtype, PETSC_COMM_SELF, PETSC_ERR_PLIB, "memtype of duplicate do… in VecCyclicShift()
164PetscAssert(memtype_x == memtype_r, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Incompatible device pointers… in MatUpperTriangularSolveInPlace()
/petsc/src/sys/objects/device/c/
H A Ddevice.c158PetscAssert(n >= 0, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Number of contexts merged %" Petsc… in PetscDeviceContextForkWithStreamType()
174PetscAssert(n >= 0, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Number of contexts merged %" Petsc… in PetscDeviceContextJoin()
/petsc/
H A D.clang-format87 #- PetscAssert
/petsc/src/snes/impls/tr/
H A Dtr.c241PetscAssert(flg, PetscObjectComm((PetscObject)snes), PETSC_ERR_ARG_WRONG, "Not for type %s", ((Pet… in SNESNewtonTRGetPreCheck()
305PetscAssert(flg, PetscObjectComm((PetscObject)snes), PETSC_ERR_ARG_WRONG, "Not for type %s", ((Pet… in SNESNewtonTRGetPostCheck()
336PetscAssert(flg, PetscObjectComm((PetscObject)snes), PETSC_ERR_ARG_WRONG, "Not for type %s", ((Pet… in SNESNewtonTRPreCheck()
375PetscAssert(flg, PetscObjectComm((PetscObject)snes), PETSC_ERR_ARG_WRONG, "Not for type %s", ((Pet… in SNESNewtonTRPostCheck()
1082PetscAssert(flg, PetscObjectComm((PetscObject)snes), PETSC_ERR_ARG_WRONG, "Not for type %s", ((Pet… in SNESNewtonTRGetUpdateParameters()
/petsc/src/vec/is/is/tests/
H A Dex13.c94PetscAssert(j < (PetscInt)PETSC_STATIC_ARRAY_LENGTH(is), comm, PETSC_ERR_ARG_OUTOFRANGE, "assertio… in main()
/petsc/src/dm/impls/plex/
H A Dplexsfc.c283PetscAssert(my_donor_degree[i] == 1, PETSC_COMM_SELF, PETSC_ERR_SUP, "Local vertex has multiple fa… in DMPlexCreateBoxMesh_Tensor_SFC_Periodicity_Private()
303PetscAssert(my_donor_degree[minv - vStart] == 1, PETSC_COMM_SELF, PETSC_ERR_SUP, "Local vertex not… in DMPlexCreateBoxMesh_Tensor_SFC_Periodicity_Private()
652PetscAssert(dof == dim, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Point %" PetscInt_FMT " has dof size %" … in DMPlexCorrectOrientationForIsoperiodic()
715PetscAssert(coords_size == dim, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Point %" PetscInt_FMT " has dof … in DMPlexCorrectOrientationForIsoperiodic()
1026PetscAssert(new_nleaf == new_npoints, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Expected migration leaf sp… in DMPlexMigrateIsoperiodicFaceSF_Internal()
1121PetscAssert(dof % dim == 0, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Unexpected dof %" PetscInt_FMT " not… in DMPeriodicCoordinateSetUp_Internal()
1255PetscAssert(ci >= 0, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Did not find neighbor vertex in set"); in DMPlexCreateBoxMesh_Tensor_SFC_Internal()
1404PetscAssert(bc_match == 0, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Face matches multiple face sets"); in DMPlexCreateBoxMesh_Tensor_SFC_Internal()

1234