[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
KSPSetTolerances and processors size
- To: petsc-users@xxxxxxxxxxx
- Subject: KSPSetTolerances and processors size
- From: "Ben Tay" <zonexo@xxxxxxxxx>
- Date: Sat, 16 Jun 2007 13:17:45 +0800
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; b=AVVhI/AXbQjywdiwus8mkX2W7k49xHjDx+hdKsQTN9wIas5dDPQHNI/uVEoRR3XSX9wCc6MqOSAfDszTmErhxyS+4Muni25ZYeaUg7c0VYyeQiazlHRI9zyXR4BEIKVQ4CwxTP/gArS5d6Uug2abadvGuQ67gdbV/qVYkFupAXo=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=q2WB2qQdHl9OA5VPsvYHOn5kF2VEIsmTqnhVFfExhdKp80TSbQgy0L5JgOvGmtmLbnmEE4hO7Sl2N+AGasxEWwKVKVXNmMZvYbdaHpkmWtd8v9v1wrPm5W/oiuKCAcMHEUPCNKeo8mq0m61kNqJbZdHAHQW7E25xP/GlzIYK14c=
- Reply-to: petsc-users@xxxxxxxxxxx
- Sender: owner-petsc-users@xxxxxxxxxxx
Hi,
I am trying to use PETSc to solve my poisson eqn. In the past, when I'm not using MPI, I set KSPSetTolerances to 1.0e-5. This seems to be good enuff.
Now, I'm trying to use PETSc with MPI to solve the eqn. I am using a very small no. of pts, only 16x4. On 1 processor, the ans is the same as the one without MPI. However, on 2 processors, I found that I've to increase the KSPSetTolerances to
1.0e-6, else those grid pts on the edge will be different. On 4 processors, KSPSetTolerances has to be decreased to 1.0e-7. On 8 processors, when KSPSetTolerances is 1.0e-8, the difference of the last pt between 1 and 8 processors is about 3%.
May I know why this is so? Also, does this happens only on very small grids? Does it happen on large grids as well? I usually solve grids with approx 20000 to 55000 pts.
Thank you.