<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Dear all,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Do I need to delete index_set from MatNestGetISs? I get my index_set from</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
MatNestGetISs(P, index_set, NULL); //P is a nest matrix of 3x3 </div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
When I delete index_set later</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span> for (int i=0; i<3; i++)<br>
</span>
<div> {</div>
<div> ISDestroy(&index_set[i]);<br>
</div>
<div> }<br>
</div>
<span> </span><br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span>It gives me error</span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<span><span>[0]PETSC ERROR: --------------------- Error Message --------------------------------------------------------------<br>
</span>
<div>[0]PETSC ERROR: Invalid argument<br>
</div>
<div>[0]PETSC ERROR: Wrong type of object: Parameter # 1<br>
</div>
<div>[0]PETSC ERROR: See http://www.mcs.anl.gov/petsc/documentation/faq.html for trouble shooting.<br>
</div>
<div>[0]PETSC ERROR: Petsc Release Version 3.11.1, Apr, 12, 2019<br>
</div>
<div>[0]PETSC ERROR: Unknown Name on a arch-linux2-c-debug named ba005.localdomain by qtang Sat Jun 15 19:48:29 2019<br>
</div>
<div>[0]PETSC ERROR: Configure options --with-mpi-dir=/usr/projects/hpcsoft/toss3/badger/openmpi/2.1.2-gcc-7.4.0 --download-hypre --with-cxx-dialect=C++11<br>
</div>
<span>[0]PETSC ERROR: #1 ISDestroy() line 428 in /turquoise/users/qtang/Software/petsc-3.11.1/src/vec/is/is/interface/index.c</span><br>
</span></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Thanks,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Qi</div>
</body>
</html>