DA output question

Amit.Itagi at seagate.com Amit.Itagi at seagate.com
Thu Sep 18 08:29:49 CDT 2008


In the general case, I may not have memory to scatter the entire gird to
the oth processor.  I guess, I will have to use the DA information to just
scatter the relevent portions.



             Randall Mackie                                                
             <rlmackie862 at gmai                                             
             l.com>                                                     To 
             Sent by:                  petsc-users at mcs.anl.gov             
             owner-petsc-users                                          cc 
             No Phone Info                                         Subject 
             Available                 Re: DA output question              
             09/17/2008 07:03                                              
             Please respond to                                             
             petsc-users at mcs.a                                             

I simply scatter the DA vector to a natural vector on the 0th processor and
then output the grid, slice by slice, for example.


Barry Smith wrote:
>    There are not much in the way of tools to do this. The function
> DAGetProcessorSubset() might
> be useful as a starting point.
>     Barry
> On Sep 17, 2008, at 9:59 AM, Amit.Itagi at seagate.com wrote:
>> Hi,
>> I have a 3D finite difference grid modeled using a DA. I use VecView to
>> write out the entire grid data to a file. What is the best way to just
>> write out a 2D slice of the 3D data ?
>> Thanks
>> Rgds,
>> Amit

More information about the petsc-users mailing list