Home
last modified time | relevance | path

Searched refs:first (Results 1 – 25 of 333) sorted by relevance

12345678910>>...14

/petsc/src/vec/is/is/impls/stride/
H A Dstride.c9 PetscInt first, step; member
26 isy_stride->first = is_stride->first + shift; in ISShift_Stride()
36 …PetscCall(ISCreateStride(PetscObjectComm((PetscObject)is), is->map->n, sub->first, sub->step, newI… in ISDuplicate_Stride()
87 PetscErrorCode ISStrideGetInfo(IS is, PetscInt *first, PetscInt *step) in ISStrideGetInfo() argument
94 if (first) PetscAssertPointer(first, 2); in ISStrideGetInfo()
100 if (first) *first = sub->first; in ISStrideGetInfo()
135 key -= sub->first; in ISLocate_Stride()
153 (*dx)[0] = sub->first; in ISGetIndices_Stride()
191 … " : %" PetscInt_FMT " : %" PetscInt_FMT "];\n", name, sub->first + 1, sub->step, sub->first + sub… in ISView_Stride()
194 …ViewerASCIIPrintf(viewer, "%" PetscInt_FMT " %" PetscInt_FMT "\n", i, sub->first + i * sub->step)); in ISView_Stride()
[all …]
/petsc/src/vec/is/is/tests/
H A Dex13.c11 static PetscErrorCode CreateIS(MPI_Comm comm, PetscInt type, PetscInt n, PetscInt first, PetscInt s… in CreateIS() argument
18 first += rank * n * step; in CreateIS()
22 for (i = 0, j = first; i < n; i++, j += step) idx[i] = j; in CreateIS()
26 PetscCall(ISCreateStride(comm, n, first, step, is)); in CreateIS()
30 for (i = 0, j = first; i < n; i++, j += step) idx[i] = j; in CreateIS()
41 PetscInt n = 10, first = 0, step = 1, offset = 0; in main() local
51 PetscCall(PetscOptionsGetInt(NULL, NULL, "-first", &first, NULL)); in main()
57 PetscCall(CreateIS(comm, type, n, first + offset, step, &is[j])); in main()
60 PetscCall(CreateIS(comm, type, n, first + offset, step, &is[j])); in main()
64 PetscCall(CreateIS(comm, type, n, first + offset, step, &tmp)); in main()
[all …]
H A Dex10.c6 static PetscErrorCode CreateIS(MPI_Comm comm, PetscInt n, PetscInt first, PetscInt step, IS *is) in CreateIS() argument
14 first += rank; in CreateIS()
16 for (i = 0, j = first; i < n; i++, j += step) idx[i] = j; in CreateIS()
24 PetscInt n = 10, N, first = 0, step = 0, start, end; in main() local
33 PetscCall(PetscOptionsGetInt(NULL, NULL, "-first", &first, NULL)); in main()
40 PetscCall(CreateIS(comm, n, first, step, &is)); in main()
H A Dex2f.F9011 PetscInt stride, ssize, first
21 first = 2
22 PetscCallA(ISCreateStride(PETSC_COMM_SELF, ssize, stride, first, is, ierr))
40 first = 3
41 PetscCallA(ISCreateStride(PETSC_COMM_SELF, ssize, stride, first, is, ierr))
H A Dex11.c8 PetscInt n, i, first, last, nmax = 100; in main() local
38 first = PETSC_INT_MIN + 1 + (PetscInt)((PETSC_INT_MAX - 1) * r); in main()
40 last = first + (PetscInt)((PETSC_INT_MAX - 1) * r); in main()
42 PetscCall(PetscRandomSetInterval(randvalues, first, last)); in main()
/petsc/src/sys/utils/
H A Dsortd.c281 PetscInt i, mid, last, itmp, j, first; in PetscSortSplit() local
286 first = 0; in PetscSortSplit()
288 if (ncut < first || ncut > last) PetscFunctionReturn(PETSC_SUCCESS); in PetscSortSplit()
291 mid = first; in PetscSortSplit()
295 for (j = first + 1; j <= i; ++j) { in PetscSortSplit()
312 a[mid] = a[first]; in PetscSortSplit()
313 idx[mid] = idx[first]; in PetscSortSplit()
314 a[first] = tmp; in PetscSortSplit()
315 idx[first] = itmp; in PetscSortSplit()
320 else first = mid + 1; in PetscSortSplit()
[all …]
/petsc/src/sys/objects/device/impls/cupm/
H A Dcupmdevice.cxx258 if (initType.first == PETSC_DEVICE_INIT_NONE) { in initialize()
259 initId.first = PETSC_CUPM_DEVICE_NONE; in initialize()
263 …PetscCheck((initType.first != PETSC_DEVICE_INIT_EAGER) && !initView.first, comm, PETSC_ERR_USER_IN… in initialize()
265 initType.first = PETSC_DEVICE_INIT_NONE; in initialize()
267 initId.first = -static_cast<decltype(initId.first)>(cerr); in initialize()
271 if (initType.first == PETSC_DEVICE_INIT_NONE) { in initialize()
273 if ((initId.first > 0) || (initId.first == PETSC_DECIDE)) initId.first = PETSC_CUPM_DEVICE_NONE; in initialize()
275 initView.first = PETSC_FALSE; in initialize()
278 if (initId.first == PETSC_DECIDE) { in initialize()
287 initId.first = (PetscInt)strtol(pytorch_rank, &endptr, 10); in initialize()
[all …]
/petsc/src/vec/is/is/tutorials/
H A Dex2f.F9014 PetscInt i, n, first, step, val
20 first = 3
27 PetscCallA(ISCreateStride(PETSC_COMM_SELF, n, first, step, set, ierr))
46 PetscCallA(ISStrideGetInfo(set, first, step, ierr))
47 if (first /= 3 .or. step /= 2) then
H A Dex2.c13 PetscInt i, n, first, step; in main() local
21 first = 3; in main()
29 PetscCall(ISCreateStride(PETSC_COMM_SELF, n, first, step, &set)); in main()
44 PetscCall(ISStrideGetInfo(set, &first, &step)); in main()
45 PetscCheck(first == 3 && step == 2, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Stride info not correct!"); in main()
/petsc/src/ts/utils/dmplexlandau/tutorials/output/
H A Dex1_re.out49 [0] <vec:seq> adaptToleranceFEM(): 1) Found first inner r=5.508970e-02, cell 0, qp 1/9
50 [0] <vec:seq> adaptToleranceFEM(): 1) Found first inner r=4.379594e-02, cell 0, qp 2/9
51 [0] <vec:seq> adaptToleranceFEM(): 1) Found first inner r=3.250658e-02, cell 0, qp 3/9
52 [0] <vec:seq> adaptToleranceFEM(): 1) Found first inner r=2.594060e-02, cell 4, qp 1/9
53 [0] <vec:seq> adaptToleranceFEM(): 1) Found first inner r=1.468071e-02, cell 4, qp 2/9
54 [0] <vec:seq> adaptToleranceFEM(): 1) Found first inner r=3.676391e-03, cell 4, qp 3/9
59 [0] <vec:seq> adaptToleranceFEM(): 1) Found first inner r=5.508970e-02, cell 0, qp 1/9
60 [0] <vec:seq> adaptToleranceFEM(): 1) Found first inner r=4.379594e-02, cell 0, qp 2/9
61 [0] <vec:seq> adaptToleranceFEM(): 1) Found first inner r=3.250658e-02, cell 0, qp 3/9
62 [0] <vec:seq> adaptToleranceFEM(): 1) Found first inner r=2.754485e-02, cell 4, qp 1/9
[all …]
/petsc/src/sys/tests/
H A Dex64.cxx41 MAKE_HASHABLE(pair_type, t.first, t.second)
189 …for (auto &&entry : map) PetscCallCXX(oss << " key: [" << this->key_printer(entry.first) << "] … in view_map()
235 auto &key = key_value.first; in test_insert()
243 …p, ret.first->first == key, PETSC_COMM_SELF, PETSC_ERR_PLIB, "%s returned iterator key '%s' != exp… in test_insert()
244 … ret.first->second == value, PETSC_COMM_SELF, PETSC_ERR_PLIB, "%s returned iterator value '%s' != … in test_insert()
302 …y-value pair (%s, %s) not present in input range!", this->key_printer(it->first), this->value_prin… in test_insert()
303 …dex of found key-value pair (%s -> %s) %td is < 0", this->key_printer(it->first), this->value_prin… in test_insert()
310 …%s (value %s), have find count %zu", this->key_printer(key_value_pairs[i].first), this->value_prin… in test_insert()
322 PetscCallCXX(map[key_value.first] = key_value.second); in test_insert()
352 auto it = map.find(saved_value.first); in test_insert()
[all …]
H A Dex27.c8 const PetscInt first[] = {0, 2, 3, 5, 8}, second[] = {1, 3, 4, 8, 10, 11}; in main() local
13 PetscCall(PetscMergeIntArray(5, first, 6, second, &n, &result)); in main()
/petsc/include/petsc/private/cpp/
H A Dutility.hpp131 first_type &first() noexcept { return static_cast<base_type &>(*this).first; } in first() function in Petsc::util::detail::compressed_pair_impl
132 const first_type &first() const noexcept { return static_cast<const base_type &>(*this).first; } in first() function in Petsc::util::detail::compressed_pair_impl
154 first_type &first() noexcept { return *this; } in first() function in Petsc::util::detail::compressed_pair_impl
155 const first_type &first() const noexcept { return *this; } in first() function in Petsc::util::detail::compressed_pair_impl
180 first_type &first() noexcept { return first_; } in first() function in Petsc::util::detail::compressed_pair_impl
181 const first_type &first() const noexcept { return first_; } in first() function in Petsc::util::detail::compressed_pair_impl
213 first_type &first() noexcept { return static_cast<first_type &>(*this); } in first() function in Petsc::util::detail::compressed_pair_impl
214 const first_type &first() const noexcept { return static_cast<const first_type &>(*this); } in first() function in Petsc::util::detail::compressed_pair_impl
/petsc/src/binding/petsc4py/test/
H A Dtest_lgmap.py12 first = lsize * comm_rank
13 last = first + lsize
15 first -= 1
18 return list(range(first, last))
95 first = lsize * comm_rank
96 last = first + lsize
98 first -= 1
101 self.idx = list(range(first, last))
/petsc/src/mat/tests/output/
H A Dex139_1.out19 The first indices of each block are
25 The first indices of each block are
34 The first indices of each block are
40 The first indices of each block are
/petsc/src/sys/objects/device/interface/
H A Dpetscdevice_interface_internal.hpp150 if (!pair.first) PetscCallCXX(marked_objects_.insert(pair.second, id)); in add_mark()
160 return const_cast<CxxData *>(this)->get_marked_(id).first; in has_marked()
181 auto dtype = static_cast<PetscInt>(deviceType.first); in PetscDeviceContextQueryOptions_Internal()
182 auto stype = static_cast<PetscInt>(streamType.first); in PetscDeviceContextQueryOptions_Internal()
188 deviceType.first = PetscDeviceTypeCast(dtype); in PetscDeviceContextQueryOptions_Internal()
189 streamType.first = PetscStreamTypeCast(stype); in PetscDeviceContextQueryOptions_Internal()
/petsc/src/vec/vec/tests/
H A Dex17f.F9014 PetscInt first, stride
57 first = 0
59 PetscCallA(ISCreateStride(PETSC_COMM_SELF, NN, first, stride, is1, ierr))
60 PetscCallA(ISCreateStride(PETSC_COMM_SELF, NN, first, stride, is2, ierr))
/petsc/src/mat/tests/
H A Dex135.c8 PetscInt first, last, i; in Assemble() local
23 PetscCall(MatGetOwnershipRange(A, &first, &last)); in Assemble()
26 for (i = first; i <= last; i++) { in Assemble()
/petsc/src/vec/vec/utils/tagger/tutorials/output/
H A Dex1_6.out29 The first indices of each block are
33 The first indices of each block are
39 The first indices of each block are
H A Dex1_1.out28 The first indices of each block are
33 The first indices of each block are
40 The first indices of each block are
H A Dex1_7.out30 The first indices of each block are
34 The first indices of each block are
40 The first indices of each block are
H A Dex1_9.out36 The first indices of each block are
39 The first indices of each block are
42 The first indices of each block are
H A Dex1_16.out29 The first indices of each block are
32 The first indices of each block are
37 The first indices of each block are
H A Dex1_8.out37 The first indices of each block are
43 The first indices of each block are
47 The first indices of each block are
/petsc/share/petsc/saws/
H A Ddocumentation14 The first option, Command Options, toggles the display of the generated command line options for th…
20 …pe, pc_fieldsplit_blocks, etc.). Users should input the matrix properties first and then modify th…
26 The first block asks for the characteristics of the entire matrix and the root solver options. The …
28 …r level in the solver (sub-solvers). Users should input matrix properties first to see what the su…
55 …perty name) of "0". The first child has an endtag of "0_0", the second "0_1", the third "0_2", etc…
58 …nce in our case the property names start with a number, we cannot use the first method. (If we tri…

12345678910>>...14