| /petsc/src/benchmarks/streams/ |
| H A D | BasicVersion.c | 4 double second() in second() function 86 extern double second(); 102 t = second(); in main() 104 t = 1.0E6 * (second() - t); in main() 110 times[0][k] = second(); in main() 114 times[0][k] = second() - times[0][k]; in main() 116 times[1][k] = second(); in main() 119 times[1][k] = second() - times[1][k]; in main() 121 times[2][k] = second(); in main() 123 times[2][k] = second() - times[2][k]; in main() [all …]
|
| /petsc/include/petsc/private/cpp/ |
| H A D | utility.hpp | 134 second_type &second() noexcept { return static_cast<base_type &>(*this).second; } in second() function in Petsc::util::detail::compressed_pair_impl 135 …const second_type &second() const noexcept { return static_cast<const base_type &>(*this).second; } in second() function in Petsc::util::detail::compressed_pair_impl 157 second_type &second() noexcept { return second_; } in second() function in Petsc::util::detail::compressed_pair_impl 158 const second_type &second() const noexcept { return second_; } in second() function in Petsc::util::detail::compressed_pair_impl 183 second_type &second() noexcept { return *this; } in second() function in Petsc::util::detail::compressed_pair_impl 184 const second_type &second() const noexcept { return *this; } in second() function in Petsc::util::detail::compressed_pair_impl 216 second_type &second() noexcept { return static_cast<second_type &>(*this); } in second() function in Petsc::util::detail::compressed_pair_impl 217 const second_type &second() const noexcept { return static_cast<const second_type &>(*this); } in second() function in Petsc::util::detail::compressed_pair_impl
|
| H A D | object_pool.hpp | 148 for (auto &&size_it : align_it.second) { in for_each() 149 auto &&ptr_stack = size_it.second; in for_each() 353 PETSC_NODISCARD allocator_type &allocator() noexcept { return pair_.second(); } in allocator() 354 PETSC_NODISCARD const allocator_type &allocator() const noexcept { return pair_.second(); } in allocator()
|
| /petsc/src/sys/tests/ |
| H A D | ex64.cxx | 41 MAKE_HASHABLE(pair_type, t.first, t.second) 189 …y: [" << this->key_printer(entry.first) << "] -> [" << this->value_printer(entry.second) << "]\n"); in view_map() 236 auto &value = key_value.second; in test_insert() 242 …MapCheck(map, !ret.second, PETSC_COMM_SELF, PETSC_ERR_PLIB, "%s reinserted key '%s'", op, this->ke… in test_insert() 244 …rst->second == value, PETSC_COMM_SELF, PETSC_ERR_PLIB, "%s returned iterator value '%s' != expecte… in test_insert() 302 …, %s) not present in input range!", this->key_printer(it->first), this->value_printer(it->second)); in test_insert() 303 …> %s) %td is < 0", this->key_printer(it->first), this->value_printer(it->second), static_cast<std:… in test_insert() 310 …rinter(key_value_pairs[i].first), this->value_printer(key_value_pairs[i].second), found_key_value[… in test_insert() 322 PetscCallCXX(map[key_value.first] = key_value.second); in test_insert() 355 …went out of scope", this->key_printer(saved_value.first), this->value_printer(saved_value.second)); in test_insert() [all …]
|
| H A D | ex27.c | 8 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/src/sys/objects/device/interface/ |
| H A D | memory.cxx | 167 return map_it.second.contains(map_it.first, ptr); in search_for() 204 auto &&attr = entry.second; in PetscDeviceRegisterMemory_Private() 222 const auto &old = it->second; in PetscDeviceRegisterMemory_Private() 227 if (id) *id = it->second.id; in PetscDeviceRegisterMemory_Private() 410 auto &&attr = it->second; in PetscDeviceDeallocate_Private() 413 auto &&attr = found_it->second; in PetscDeviceDeallocate_Private() 479 const auto &dest_attr = memory_map.search_for(dest, true)->second; in PetscDeviceMemcpy() 480 const auto &src_attr = memory_map.search_for(src, true)->second; in PetscDeviceMemcpy() 550 const auto &attr = memory_map.search_for(ptr, true)->second; in PetscDeviceMemset()
|
| H A D | petscdevice_interface_internal.hpp | 150 if (!pair.first) PetscCallCXX(marked_objects_.insert(pair.second, id)); in add_mark() 186 …Device", PetscDeviceTypes, PETSC_DEVICE_MAX, PetscDeviceTypes[dtype], &dtype, &deviceType.second)); in PetscDeviceContextQueryOptions_Internal() 187 …amType", PetscStreamTypes, PETSC_STREAM_MAX, PetscStreamTypes[stype], &stype, &streamType.second)); in PetscDeviceContextQueryOptions_Internal()
|
| H A D | device.cxx | 396 auto &init = defaultDevices[type].second; in PetscDeviceInitializeDefaultDevice_Internal() 455 …urn static_cast<PetscBool>(PetscDeviceConfiguredFor_Internal(type) && defaultDevices[type].second); in PetscDeviceInitialized() 603 device.second = false; in PetscDeviceFinalize_Private() 701 if (dtype.second) PetscCall(PetscDeviceContextSetRootDeviceType_Internal(dtype.first)); in PetscDeviceInitializeFromOptions_Internal() 702 if (stype.second) PetscCall(PetscDeviceContextSetRootStreamType_Internal(stype.first)); in PetscDeviceInitializeFromOptions_Internal()
|
| H A D | mark_dcontext.cxx | 372 (*modes)[i] = it.second.mode; in PetscGetMarkedObjectMap_Internal() 373 (*ndeps)[i] = it.second.dependencies.size(); in PetscGetMarkedObjectMap_Internal() 376 for (auto &&dep : it.second.dependencies) (*dependencies)[i][j++] = dep.event(); in PetscGetMarkedObjectMap_Internal() 406 auto &deps = mapit->second.dependencies; in PetscDeviceContextMapIterVisitor() 431 const auto mode = PetscMemoryAccessModeToString(mapit->second.mode); in PetscDeviceContextSyncClearMap_Internal() 459 if (const auto udctx = upstrm.second.weak_dctx().lock()) { in PetscDeviceContextSyncClearMap_Internal() 483 … << mapit->first << "), intent " << PetscMemoryAccessModeToString(mapit->second.mode) << ' ' << it… in PetscDeviceContextCheckNotOrphaned_Internal()
|
| /petsc/src/dm/impls/plex/tests/ |
| H A D | ex57.c | 24 PetscBool second; /* Flag to execute a second transformation */ member 35 options->second = PETSC_FALSE; in ProcessOptions() 44 …Bool("-second", "Use a second transformation", "ex57.c", options->second, &options->second, &flg)); in ProcessOptions() 157 if (user.second) { in main()
|
| /petsc/src/dm/dt/tests/ |
| H A D | ex1.c | 187 PetscReal a = interval[0], b = interval[1], zeroth, first, second; in main() local 191 second = (b * b * b - a * a * a) / 3; in main() 195 second -= weights[i] * PetscSqr(points[i]); in main() 199 if (PetscAbs(second) < 1e-10) second = 0.; in main() 200 …error: zeroth=%g, first=%g, second=%g\n", (double)(-zeroth), (double)(-first), (double)(-second))); in main()
|
| /petsc/src/sys/objects/device/impls/ |
| H A D | impldevicebase.hpp | 208 PetscCall(PetscOptionDeviceInitialize(PetscOptionsObject, &initType.first, &initType.second)); in PetscOptionDeviceBasic() 209 PetscCall(PetscOptionDeviceSelect(PetscOptionsObject, &initId.first, &initId.second)); in PetscOptionDeviceBasic() 210 PetscCall(PetscOptionDeviceView(PetscOptionsObject, &initView.first, &initView.second)); in PetscOptionDeviceBasic()
|
| /petsc/src/ts/tutorials/ |
| H A D | ex10.c | 50 PetscReal meter, kilogram, second, Kelvin; /* Fundamental units */ member 977 PetscReal meter = 0, kilogram = 0, second = 0, Kelvin = 0, Joule = 0, Watt = 0; in RDCreate() local 992 rd->unit.second = 1.; in RDCreate() 998 rd->unit.second = 1.e9; in RDCreate() 1007 …it_second", "Time of a second in nondimensional units", "", rd->unit.second, &rd->unit.second, 0)); in RDCreate() 1010 rd->unit.Joule = rd->unit.kilogram * PetscSqr(rd->unit.meter / rd->unit.second); in RDCreate() 1011 rd->unit.Watt = rd->unit.Joule / rd->unit.second; in RDCreate() 1015 second = rd->unit.second; in RDCreate() 1034 rd->final_time = 3 * second; in RDCreate() 1042 rd->final_time = 1 * second; in RDCreate() [all …]
|
| /petsc/src/sys/tests/output/ |
| H A D | ex66_1.out | 16 [0]PETSC ERROR: - The second error was triggered while handling the first error. 31 [0]PETSC ERROR: - The second error was triggered while handling the first error.
|
| /petsc/share/petsc/saws/ |
| H A D | documentation | 16 The second option, Tree, toggles the display of the solver tree. 55 …ag of "0_0", the second "0_1", the third "0_2", etc. The first child of the first child would be "…
|
| /petsc/doc/changes/ |
| H A D | 21.md | 56 - DAGetColoring() now has new second argument that takes either 85 calling sequence of SETERRQ() to eliminate the second input
|
| H A D | 2029.md | 19 - The second argument to MatSNESMFSetType() is now a MatSNESMFType, 50 - Dropped the second to last argument to MatCreateRowbs()
|
| H A D | 2028.md | 103 - Added second argument to `ISInvertPermutation`() that 106 `ISInvertPermutation`() simply add a second argument of 254 second half.
|
| /petsc/src/sys/objects/cxx/memory/ |
| H A D | object_pool.cxx | 438 auto &&size_map = align_it->second; in try_allocate() 442 auto &&ptr_list = size_it->second; in try_allocate() 516 PetscCallCXX(it->second[size].emplace_back(ptr)); in deallocate()
|
| /petsc/src/binding/petsc4py/src/petsc4py/PETSc/ |
| H A D | petscopt.pxi | 269 second = gettok(tokens) 270 if getkey(second, prefix): 272 first = second 274 value = second
|
| /petsc/src/sys/objects/device/tests/ |
| H A D | ex11.cxx | 211 const auto &expected_mode = found_it->second.first; in CheckMapEqual() 212 const auto &expected_dctxs = found_it->second.second; in CheckMapEqual()
|
| /petsc/src/sys/objects/ |
| H A D | options.c | 304 const char *first, *second; in PetscOptionsInsertString_Private() local 322 PetscCall(PetscTokenFind(token, &second)); in PetscOptionsInsertString_Private() 323 PetscCall(PetscOptionsInsertFile(PETSC_COMM_SELF, options, second, PETSC_TRUE)); in PetscOptionsInsertString_Private() 326 PetscCall(PetscTokenFind(token, &second)); in PetscOptionsInsertString_Private() 327 PetscCall(PetscOptionsInsertFileYAML(PETSC_COMM_SELF, options, second, PETSC_TRUE)); in PetscOptionsInsertString_Private() 330 PetscCall(PetscTokenFind(token, &second)); in PetscOptionsInsertString_Private() 331 PetscCall(PetscOptionsInsertStringYAML_Private(options, second, source)); in PetscOptionsInsertString_Private() 334 PetscCall(PetscTokenFind(token, &second)); in PetscOptionsInsertString_Private() 335 PetscCall(PetscOptionsPrefixPush(options, second)); in PetscOptionsInsertString_Private() 341 PetscCall(PetscTokenFind(token, &second)); in PetscOptionsInsertString_Private() [all …]
|
| /petsc/src/vec/is/sf/impls/basic/kokkos/ |
| H A D | sfkok.kokkos.cxx | 122 else if (y.first == x.first) x.second = PetscMin(x.second, y.second); in operator ()() 132 else if (y.first == x.first) x.second = PetscMin(x.second, y.second); /* See MPI MAXLOC */ in operator ()()
|
| /petsc/doc/overview/ |
| H A D | nutshell.md | 36 - {any}`Optimization <ch_tao>` with equality and inequality constraints, first and second order (Ne…
|
| /petsc/src/dm/dt/tests/output/ |
| H A D | ex1_1.out | 35 Moment error: zeroth=-0., first=-0., second=-0.
|