<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Oct 7, 2015 at 7:08 AM, Giuntoli Guido Alfredo <span dir="ltr"><<a href="mailto:ggiuntoli@tecna.com" target="_blank">ggiuntoli@tecna.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="ES-AR" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span lang="EN-US">Hi! I have a problem of the form Ax=kBx were x is a scalar variable that is 0 in the border of a domain (x_D=0).<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Using FEM the problem that you have to solve is a reduced problem were you don’t have to include the coefficients of the matrix that multiply the x_Ds. So, I have two alternatives here, one is to construct a reduce matrix
A and B from the beginning… this could result in a slow code. The other alternative I want to try is to use a sub matrix of A and B and pass them to slepc. How can I do this is I have Mat A and Mat b ?</span></p></div></div></blockquote><div><br></div><div>1) Can't you just use MatZeroRows() or MatZeroRowsColumns() to apply your BC?</div><div><br></div><div>2) I am not sure why you think eliminating variables will be slower. My experiments and theoretical understanding say it is at least as fast as zeroing the rows.</div><div><br></div><div>3) If you want to extract a submatrix, you can use MatGetSubmatrix().</div><div><br></div><div> Thanks,</div><div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="ES-AR" link="blue" vlink="purple"><div><p class="MsoNormal"> </p>
<p class="MsoNormal"><span lang="EN-US">Thank you, Guido!<u></u><u></u></span></p>
</div>
<div><p></p><hr>
<span style="font-size:10.0pt;line-height:115%;color:#1f497d"></span>
<table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td height="30" valign="top"><a href="http://www.aogexpo.com.ar" target="_blank"><img alt="Argentina Oil & Gas Expo
" src="http://www.lanzamientos.com/inside/aog/2015/efirma/logo_AOG-CONGRESO_ES.jpg" height="57" border="0" width="234"></a></td></tr>
<tr>
<td height="14"><img src="http://www.lanzamientos.com/inside/aog/2015/efirma/punkte278.gif"></td></tr>
<tr>
<td><font style="FONT-SIZE:12px" face="Arial, Helvetica, sans-serif" color="#000000"><b>¡Venga a visitarnos!</b> <strong>en
Argentina Oil & Gas Expo</strong><br>5 – 8 Octubre, 2015 La Rural Predio
Ferial<br>Stand 2F-30 - Hall 2</font> </td></tr>
<tr>
<td height="14"><img src="http://www.lanzamientos.com/inside/aog/2015/efirma/punkte278_b.gif"></td></tr></tbody></table><p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Tahoma","sans-serif";color:green">Trabajamos con seguridad y velamos por la protección del Medio
Ambiente. <br>
</span><span style="font-size:7.5pt;font-family:"Tahoma","sans-serif";color:gray">Antes de Imprimir este mail confirme que sea necesario. Gracias </span></p>
<p><span style="font-size:7.5pt;font-family:"Tahoma","sans-serif";color:gray">El
presente e-mail y cualquier documento adjunto al mismo, pertenecen al emisor y
puede contener información confidencial legalmente protegida. La información
contenida en este e-mail es remitida únicamente para uso del destinatario
indicado en el mismo. La divulgación, copia, distribución o cualquier otro uso
de la información contenida en el presente e-mail por parte de personas
distintas al destinatario se encuentra prohibido. Si Ud. ha recibido este
e-mail por error, rogamos borrar el mismo e informar dicha circunstancia por
mail a la dirección </span><a href="mailto:info@tecna.com" target="_blank"><span style="font-size:7.5pt;font-family:"Tahoma","sans-serif"">info@tecna.com</span></a><span style="font-size:7.5pt;font-family:"Tahoma","sans-serif";color:gray"> Muchas
gracias. </span></p>
<p><span style="font-size:7.5pt;font-family:"Tahoma","sans-serif";color:gray" lang="EN-US">This electronic mail transmission and any
attached documents contain information belonging to the sender which may be
confidential and legally privileged. The information is intended for the use of
the named recipient(s) only. If you are not the intended recipient(s), any
disclosure, copying, distribution or action taken regarding the information on
this email is strictly prohibited. If you have received this email in error
please notify </span><a href="mailto:info@tecna.com" target="_blank"><span style="font-size:7.5pt;font-family:"Tahoma","sans-serif"" lang="EN-US">info@tecna.com</span></a><span style="font-size:7.5pt;font-family:"Tahoma","sans-serif";color:gray" lang="EN-US"> and
delete the email from your computer. </span><span style="font-size:7.5pt;font-family:"Tahoma","sans-serif";color:gray">Thank you.</span></p>
<div class="MsoNormal" style="text-align:center" align="center"><span style="font-size:7.5pt;font-family:"Tahoma","sans-serif";color:gray">
<hr align="center" size="2" width="100%">
</span></div>
<p></p></div>
</div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div>
</div></div>