[petsc-users] petscviewerduplicate?

Nachiket Gokhale gokhalen at gmail.com
Wed Mar 20 15:55:03 CDT 2013


On Wed, Mar 20, 2013 at 4:50 PM, Jed Brown <jedbrown at mcs.anl.gov> wrote:
>
> On Wed, Mar 20, 2013 at 3:42 PM, Nachiket Gokhale <gokhalen at gmail.com>
> wrote:
>>
>> On Wed, Mar 20, 2013 at 4:38 PM, Nachiket Gokhale <gokhalen at gmail.com>
>> wrote:
>> > On Wed, Mar 20, 2013 at 4:22 PM, Barry Smith <bsmith at mcs.anl.gov> wrote:
>> >>
>> >>   Why not just use one file, if Matlab is going to read them, it saves
>> >> you typing both when saving the matrices and when reading them in Matlab?
>> >
>> > Because I didn't realize I could store multiple matrices in one file.
>> > Is this true for binary as well?
>>
>>
>> Misunderstood what you said.  MatLoad can read only one matrix from a file
>>
>>
>> http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Mat/MatLoad.html
>
>
> What makes you say that? Call MatLoad() again to get the second matrix.

Nice! Thanks.  Since MatLoad didn't have an argument to specify which
matrix to load either a string or a number, I thought it loads only
one matrix.

-Nachiket


More information about the petsc-users mailing list