[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
memory allocation
- To: petsc-users@xxxxxxxxxxx
- Subject: memory allocation
- From: li pan <li76pan@xxxxxxxxx>
- Date: Mon, 2 Jul 2007 06:37:53 -0700 (PDT)
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=LCp76cM+ooUofNXMX72Rl3gVTakCw+nH8uXILRYXkYG2mD5jTA1kK1hGyySijY6g3zSSste31ZEn7TJGoyT0ihj6HW1yguX8+ZKbwCrdmFLfZamR+5x5rMzGz2Zm4NO2lhnBlUuX+TCXlYnaO4VICTWfHvtSp1NqnkcvtbZM6dM=;
- Reply-to: petsc-users@xxxxxxxxxxx
- Sender: owner-petsc-users@xxxxxxxxxxx
Dear developers,
last week I asked a question about memory allocation.
I'm trying to comprehend it from another aspect. The
question is, if I have a mesh (HEX8) of size 128 x 128
x 40. There are three components for each node. In
case of displacement, it's (u,v,w). So there must be
128 x 128 x 40 x 3 = 1966080 degrees of freedom. In
sparse pattern, each element must have 7 x 3 = 21
non-zeros, because each node has 6 neighbours, plus
itself, it's 7 nodes, then multiply 3 components, we
get 21. If everything is allright until now, we have
1966080 x 21 non-zeros in the system matrix. This
corresponds 42 MB. I wonder why there was so much
memory required by petsc, more than 2 GB.
Probably, I'm wrong on some points. Please remind me.
kind regards
pan
____________________________________________________________________________________
Park yourself in front of a world of choices in alternative vehicles. Visit the Yahoo! Auto Green Center.
http://autos.yahoo.com/green_center/