icetCopyState(3)
β¨ icetCopyState(3) β IceT Reference β¨
okay bestie, welcome to the IceT Reference manual page for icetCopyState π this one's a lil cutie that just clones vibes from one context to another, no cap.
πΈ NAME πΈ
icetCopyState β copy state machine of one context to another. literally that's the whole job description, and she ate π
π¦ Synopsis π¦
#include <IceT.h>
void icetCopyState( IceTContext dest,
const IceTContext src );
β¨ Description β¨
so the icetCopyState function does the thing where it replaces the state of dest with the current state of src. it's giving "make this one look exactly like that one." you can use it to quickly duplicate a context β it's the fast-pass, the copy-paste, the π« dupe glitch π« (but legal).
but β and this is the important part, bestie, do not skip this β the IceTCommunicator object associated with dest is not changed. like, ever. it can't be. it's not that kind of function. periodt.
so because of that, these state values don't get copied either, since they all refer to process ids that are directly tied to the IceTCommunicator object:
ICET_RANKICET_NUM_PROCESSESICET_DATA_REPLICATION_GROUPICET_DATA_REPLICATION_GROUP_SIZEICET_COMPOSITE_ORDERICET_PROCESS_ORDERS
those six are staying home π everyone else is coming to the party tho β every other state parameter is copied. yes, all of them. iconic behavior honestly π
π Errors π
None.
like... none. zero. the void. nothing to report π«Ά
π Warnings π
None.
again β nothing. we're chilling.
π Bugs π
okay so here's the tea β and it's a lil spicy:
the state is copied blindly.
which means it is therefore possible to copy states that are invalid for a context's communicator. for example, a display rank may not refer to a valid process id. π¨ so like, she's not checking your work. she's just copying. you have been warned, bestie.
π§ Notes π§
behavior is undefined if dest or src has never been created or has already been destroyed.
undefined behavior is not a vibe. do not pass go. do not collect $200. make sure your contexts are alive before you do this π
π Copyright π
Copyright (C)2003 Sandia Corporation
Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains certain rights in this software.
This source code is released under the New BSD License.
π See Also π
go read those too, they're the friend group π«Ά
and that's the whole page, bestie!! this was the IceT Reference manual, dated August 9, 2010, sourced from the IceT Reference itself β mwah, ty for reading, slay, bye π
β¨π
π¦ where this page comes from
- debian bookworm: paraview 5.11.0+dfsg-1+b1 Β· BSD-3-Clause
- debian trixie: paraview 5.13.2+dfsg-3 Β· BSD-3-Clause
- ubuntu jammy: paraview 5.10.0~rc1-1build3 Β· BSD-3-Clause
- ubuntu noble: paraview 5.11.2+dfsg-6build5 Β· BSD-3-Clause
- ubuntu questing: paraview 5.13.2+dfsg-3
- ubuntu resolute: paraview 6.0.1+dfsg1-7 Β· BSD-3-Clause
- ubuntu stonking: paraview 6.1.1+dfsg1-2build1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms