Is solving a Nx * Ny system equivalent to a Nx * Ny * 1 system in PETSc?
Wee-Beng TAY
zonexo at gmail.com
Thu Oct 15 09:21:24 CDT 2009
Hi Barry,
That's just what I'm thinking!
Thank you very much and have a nice day!
Yours sincerely,
Wee-Beng Tay
Barry Smith wrote:
>
> Speed should be pretty much the same.
>
> I could interpret your question as: If one as a 3d PDE solver is it
> worth writing a totally separate 2d code or can one just run the 3d
> code with 2 dimensions? My answer to this question is, since code
> development and maintenance is very time-consuming it makes sense to
> just have one code.
>
> Barry
>
> On Oct 14, 2009, at 10:43 AM, Wee-Beng TAY wrote:
>
>> Hi,
>>
>> I'm not sure if my question is trivial but I'm wondering if it makes
>> any difference in solving a Nx * Ny system and a Nx * Ny * 1 system
>> in PETSc? For e.g., 10x10 vs. 10x10x1. Will there be any problem or
>> difference in answer? What about the speed?
>>
>> --
>> Thank you very much and have a nice day!
>>
>> Yours sincerely,
>>
>> Wee-Beng Tay
>>
>
>
More information about the petsc-users
mailing list