[petsc-users] working with different size of arrays in a single DA

ilyas ilyas ilyascfd at gmail.com
Mon May 2 02:33:09 CDT 2011


Jed,

I was looking at
http://www.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-dev/src/snes/examples/tutorials/ex31.c

Although ghost cell support is available in DMDA, DMDA in this example is
defined to have PERIODIC BC,
in order to implement/force inflow/outflow bc's. Do you have an idea why it
is defined so? or Am I missing something?

Thanks again,
Ilyas.

2011/4/30 Jed Brown <jed at 59a2.org>

> On Sat, Apr 30, 2011 at 13:17, ilyas ilyas <ilyascfd at gmail.com> wrote:
>
>> I guess the thing that makes it complicated application of boundary
>> conditions.
>> Since XYZGHOSTED is not available in fortran,
>> I am using XYZPERIODIC in order to implement bc's, as it is done in ex31.c
>> in SNES
>> Combining XYZPERIODIC with larger block size is still not much clear for
>> me.
>>
>> By the way, what is the current status of DMDACreate3D
>> and other DMDA routines and their fortran support ?
>> According to ex11f90.F and ex22f.F in the manual page of DMDACreate3d ,
>> these routine(s) provide ghost cell support for fortran in 3D ?
>> If ghost cell support is available, implementation would be relatively
>> easy
>>
>
> There is Fortran support for periodic boundaries. Also, petsc-dev has
> support for ghost cells even when they do not imply any wrapping,
> see DMDA_BOUNDARY_GHOST.
>
>
> http://www.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-dev/docs/manualpages/DM/DMDACreate3d.html
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20110502/1564f943/attachment.htm>


More information about the petsc-users mailing list