<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Dear folks,<br>
I have a quick question on the DMDACreate3d.<br>
In the manual, it says that the input format of this function
is:<br>
<pre style="color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); ">PetscErrorCode DMDACreate3d(MPI_Comm comm,DMDABoundaryType bx,DMDABoundaryType by,DMDABoundaryType bz,DMDAStencilType stencil_type,PetscInt M,
PetscInt N,PetscInt P,PetscInt m,PetscInt n,PetscInt p,PetscInt dof,PetscInt s,const PetscInt lx[],const PetscInt ly[],const PetscInt lz[],DM *da)
</pre>
<br>
Now, I'm trying to manually define the <span
class="Apple-style-span" style="color: rgb(0, 0, 0); font-family:
'Times New Roman'; font-style: normal; font-variant: normal;
font-weight: normal; letter-spacing: normal; line-height: normal;
orphans: 2; text-align: -webkit-auto; text-indent: 0px;
text-transform: none; white-space: normal; widows: 2;
word-spacing: 0px; -webkit-text-size-adjust: auto;
-webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
255); font-size: medium; display: inline !important; float: none;
">"arrays containing the number of nodes in each cell along the x,
y, and z coordinates</span>". Therefore, my focus turns to 'lx[]',
'ly[]' and 'lz[]'. I suppose that they're not simply just three
integers; they may be three integer type arrays, as I guess.
However, I checked all examples listed for this function. None of
them teaches me how to implement this three parameters except
'PETSC_NULL'. Could you please provide me an extra example to
demonstrate how to use DMDACreate3d or DMDACreate2d with non-null
'lx[]', 'ly[]' and 'lz[]'.<br>
Or, a demonstration in 1D would be a good example. Say, I have
a 1D uniform mesh; the number of grid in x-direction is 300. I want
to use 4 processes to evenly divide this mesh. What should I input
for 'lx[]' for each process?<br>
<br>
thank you so much and Happy New Year!! :)<br>
Alan<br>
<pre style="color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); ">
</pre>
<br>
</body>
</html>