On Tue, Mar 13, 2012 at 6:19 PM, Daniel Christian Weflen <span dir="ltr"><<a href="mailto:Daniel.Weflen@colorado.edu">Daniel.Weflen@colorado.edu</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I have a question about PetscBagCreate (the documentation for which can be found here [1]).<br>
<br>
The documentation says that the size of the struct cannot be larger than a PetscInt, which is 4 bytes. Is this referring to the entire struct, or just a pointer to it?<br>
<br>
If the size of the struct itself cannot be larger than one PetscInt, what exactly is are PetscBags supposed to do?<br></blockquote><div><br></div><div>What this means is that you cannot have a struct bigger than 2G, since we use an integer to hold the size in bytes.</div>
<div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
-Dan<br>
<br>
<br>
<br>
<br>
<br>
[1] <a href="http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Sys/PetscBagCreate.html#PetscBagCreate" target="_blank">http://www.mcs.anl.gov/petsc/<u></u>petsc-current/docs/<u></u>manualpages/Sys/<u></u>PetscBagCreate.html#<u></u>PetscBagCreate</a><br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>
-- Norbert Wiener<br>