[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
how to visit the variable "bs" in pmat of preconditioner
- To: petsc-users@xxxxxxxxxxx
- Subject: how to visit the variable "bs" in pmat of preconditioner
- From: Yujie <recrusader@xxxxxxxxx>
- Date: Thu, 20 Dec 2007 23:16:29 -0800
- 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:mime-version:content-type; bh=WayWNSjeNK9+i3srpr9nP0SXyWIx6U+H2hXxXrGk4V8=; b=I/+eTyr7KxsvSRDwzwHNCGmtte5mLgn33aQ/gDowsS8fqAah3lHLuI6nuGLzYCYiWPk0AYbGrr9Ds4h97jkSQoDHs0F6dFY9WXyq/xuZQzSsqqSyiy2vo89y/I5WtCkiC0e1E5L7XQshWOemzrF8VJELRNr/buszAn568sLNSsg=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=vt5raWN+uXn3gk7T2M28Ovs+NYBdBmaBmujK6QSJ/l0IvReg3n5qedIcOi/M56b3GNJJRZn2RfcY/aRCa4PhMfhOfSMNm6C+ldaVRITXJJUVlF3n+wTB59pxE5AfZLyhiPnLlCvAWoV03znF3KUfI6T5/zlOX+mXz2fihDzY1Lg=
- Reply-to: petsc-users@xxxxxxxxxxx
- Sender: owner-petsc-users@xxxxxxxxxxx
hi, everyone
now, I want to use Hypre package via PETSc in third package. I need to visit the variable "bs" in Mat struct. In hypre.c, this variable may let BoomerAMG know the block size of Mat. The code is as follows:
127: /* special case for BoomerAMG */
128: if (jac->setup == HYPRE_BoomerAMGSetup) {
129: MatGetBlockSize(pc->pmat,&bs);
130: if (bs > 1) {
131: HYPRE_BoomerAMGSetNumFunctions(jac->hsolver,bs);
132: }
133: };
However, I can't visit this variable. Now, I have get the pointer of PC I use. I can't visit the variable pmat in my code. I can't find any function to realize this function from PETSc manual.
Could you give me some advice about how to do?
Merry X'mas!
Regards,
Yujie