[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: reading matrices in the smart way
- To: petsc-users@xxxxxxxxxxx
- Subject: Re: reading matrices in the smart way
- From: "Matthew Knepley" <knepley@xxxxxxxxx>
- Date: Fri, 7 Mar 2008 18:09:47 -0600
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=McyYjSGuFmq+IFt8Xcjxas1hRN4mgVA+bgWXuHJTgFk=; b=NsWWVggderKlomfmstVG458YXc1KYzOqApRmlq/FZZNqaG3dTBwVMdZEICMueFhqLz1AR/hAm7T58cG0jvlnz1C/6eKZKExPaiXKtbCTUiMD+1th4HucD8LsZIejwCIk54AJZc9bwZqI4cyTahKumev/EYLMq0/qVn7R7CA2KdA=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=JJCGrovEb5Rk3plzXZYM47ZlQ+a1ncOHtnZzEzFTyADeEEEhGAPVMdJlYoykOCZnZkdE8oxRJ4mN5FkX8YmQ01bbq4jR0UTwOD8awnbAMF04CZWBez2Tsm4QAaFqMuf7t370DyxdQKXgbhNXZy//w7t8ubPt2uuENcIML5MPw4Y=
- In-reply-to: <BF65AE65-7B56-4248-B9A0-C06F9918FEC4@columbia.edu>
- References: <BF65AE65-7B56-4248-B9A0-C06F9918FEC4@columbia.edu>
- Reply-to: petsc-users@xxxxxxxxxxx
- Sender: owner-petsc-users@xxxxxxxxxxx
On Fri, Mar 7, 2008 at 6:02 PM, Gideon Simpson <grs2103@xxxxxxxxxxxx> wrote:
> Suppose I've dumped a seqaij matrix to binary, and I now want to read
> it in and do something with it, perhaps in a distributed manner. When
> I execute MatLoad, I need to give it a matrix type, and I am wondering
> what the smart thing is to do. I'd like it to work both when I am
> testing it serially and running it on a cluster. Assuming I still
> want AIJ format, should I set it to MATAIJ? Can I feed it a command
Yes, this will just do the right thing.
> line option to override whatever I hardcode it to?
>
> i.e., if I code
>
> MatLoad(viewer, MATSEQAIJ, &A);
>
> but run the executable
> ./ex -mattload_type mpaij
>
> will it run as though it were with MATMPIAIJ?
Yes.
Matt
> -gideon
>
>
--
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which
their experiments lead.
-- Norbert Wiener