Home
last modified time | relevance | path

Searched refs:new_size (Results 1 – 5 of 5) sorted by relevance

/petsc/include/petsc/private/
H A Dlogimpl.h57 … PETSC_UNUSED PetscErrorCode PetscLog##Container##Recapacity(PetscLog##Container a, int new_size) \
61 if (new_size > a->max_entries) { \
63 int rem_size = PetscMax(0, new_size - 1); \
78 …line PETSC_UNUSED PetscErrorCode PetscLog##Container##Resize(PetscLog##Container a, int new_size) \
82 PetscCall(PetscLog##Container##Recapacity(a, new_size)); \
84 for (int i = a->num_entries; i < new_size; i++) PetscCall((*constructor)(&a->array[i])); \
85 a->num_entries = PetscMax(a->num_entries, new_size); \
/petsc/src/mat/impls/sell/seq/
H A Dsell.h95 PetscInt new_size = Ain->maxallocmat + SH * MUL, *new_colidx; \
100 PetscCall(PetscMalloc2(BS2 * new_size, &new_val, BS2 * new_size, &new_colidx)); \
117 Ain->maxallocmat = new_size; \
152 PetscInt new_size = a->maxallocmat + a->sliceheight, *new_colidx; \
156 PetscCall(PetscMalloc2(new_size, &new_val, new_size, &new_colidx)); \
170 a->maxallocmat = new_size; \
/petsc/src/ksp/pc/impls/gamg/
H A Dgamg.c67 PetscMPIInt rank, size, new_size, nactive = *a_nactive_proc; in PCGAMGCreateLevel_GAMG() local
107 new_size = new_new_size; in PCGAMGCreateLevel_GAMG()
108 …es=%" PetscInt_FMT ")\n", ((PetscObject)pc)->prefix, r_nnodes, nactive, new_size, devCount, r_nnod… in PCGAMGCreateLevel_GAMG()
118 new_size = 1; in PCGAMGCreateLevel_GAMG()
119 …too small for %d active processes: reduce to one process\n", ((PetscObject)pc)->prefix, new_size)); in PCGAMGCreateLevel_GAMG()
122 new_size = nactive / pc_gamg->level_reduction_factors[pc_gamg->current_level]; in PCGAMGCreateLevel_GAMG()
123 … active processes (%d/%" PetscInt_FMT ")\n", ((PetscObject)pc)->prefix, new_size, nactive, pc_gamg… in PCGAMGCreateLevel_GAMG()
126 new_size = 1; in PCGAMGCreateLevel_GAMG()
127 …%s: Force coarsest grid reduction to %d active processes\n", ((PetscObject)pc)->prefix, new_size)); in PCGAMGCreateLevel_GAMG()
134new_size = (PetscMPIInt)((float)ncrs_eq_glob / (float)pc_gamg->min_eq_proc + 0.5); /* hardwire min… in PCGAMGCreateLevel_GAMG()
[all …]
/petsc/src/sys/objects/device/impls/
H A Dsegmentedmempool.hpp867 const auto new_size = static_cast<size_type>(new_req_size); in reallocate() local
876 if (PetscUnlikely(new_size == 0)) { in reallocate()
888 if (chunk->capacity() < new_size) { in reallocate()
892 PetscCall(allocate(new_size, ptr, stream)); in reallocate()
893 PetscCall(allocator_.uninitialized_copy(*ptr, old_ptr, new_size, stream)); in reallocate()
896 PetscCall(chunk->resize(new_size)); in reallocate()
/petsc/include/petsc/private/cpp/
H A Dunordered_map.hpp936 const auto new_size = (new_n_buckets >> 1) + (new_n_buckets >> 2); in resize() local
948 if (size() < new_size) { in resize()
1008 upper_bound_ = new_size; in resize()