<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Shri,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
You designed this approach. Is it intended or out of implementation convenience at the time?</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hong</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> petsc-dev <petsc-dev-bounces@mcs.anl.gov> on behalf of Matthew Knepley <knepley@gmail.com><br>
<b>Sent:</b> Monday, April 5, 2021 5:47 AM<br>
<b>To:</b> PETSc <petsc-dev@mcs.anl.gov><br>
<b>Subject:</b> [petsc-dev] DMNetwork static sizing</font>
<div> </div>
</div>
<div>
<div dir="ltr">Dowe really need a configure time constant for
<div><br>
</div>
<div>struct _p_DMNetworkComponentHeader {<br>
PetscInt index; /* index for user input global edge and vertex */<br>
PetscInt subnetid; /* Id for subnetwork */<br>
PetscInt ndata; /* number of components */<br>
PetscInt size[PETSC_DMNETWORK_MAXIMUM_COMPONENTS_PER_POINT];<br>
PetscInt key[PETSC_DMNETWORK_MAXIMUM_COMPONENTS_PER_POINT];<br>
PetscInt offset[PETSC_DMNETWORK_MAXIMUM_COMPONENTS_PER_POINT];<br>
PetscInt nvar[PETSC_DMNETWORK_MAXIMUM_COMPONENTS_PER_POINT]; /* Number of variables */<br>
PetscInt offsetvarrel[PETSC_DMNETWORK_MAXIMUM_COMPONENTS_PER_POINT]; /* offset from the first variable of the network point */<br>
} PETSC_ATTRIBUTEALIGNED(PetscMax(sizeof(double),sizeof(PetscScalar)));<br>
<div><br>
</div>
<div>Can't we just allocate this struct when needed and carry the size along?</div>
<div><br>
</div>
<div>This design seem to go against the rest of what we do in PETSc?</div>
<div><br>
</div>
<div> Thanks,</div>
<div><br>
</div>
<div> Matt</div>
<div><br>
</div>
-- <br>
<div dir="ltr" class="x_gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>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</div>
<div><br>
</div>
<div><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>