<div dir="ltr">Hi <div><br></div><div>I'm trying to use the same TS twice, the first time using the basic TSAdaptType, then I change it to none like this:</div><div><br></div><div><div>TSAdapt adapt;</div><div>TSGetAdapt(ts,&adapt);</div><div>TSAdaptSetType(adapt,"none");</div><div><br></div><div>However, when I destroy the TS, I get this error:</div><div><br></div><div><div>0x00007ffff605c4f2 in VecDestroy (v=0x28) at /home/miguel/petsc/src/vec/vec/interface/vector.c:423</div><div>423<span class="" style="white-space:pre">        </span>  if (!*v) PetscFunctionReturn(0);</div><div>(gdb) backtrace</div><div>#0  0x00007ffff605c4f2 in VecDestroy (v=0x28) at /home/miguel/petsc/src/vec/vec/interface/vector.c:423</div><div>#1  0x00007ffff6f330a5 in TSAdaptDestroy_Basic (adapt=0xfdacd0) at /home/miguel/petsc/src/ts/adapt/impls/basic/adaptbasic.c:66</div><div>#2  0x00007ffff6f2c433 in TSAdaptDestroy (adapt=0xfccbc8) at /home/miguel/petsc/src/ts/adapt/interface/tsadapt.c:238</div><div>#3  0x00007ffff6f03093 in TSDestroy (ts=0x7fffffffdd80) at /home/miguel/petsc/src/ts/interface/ts.c:1906</div></div><div><br></div><div><br></div><div>It's trying to destroy the TSAdaptDestroy_Basic, but I think it was already destroyed when I changed the TSAdaptType to none, is this true? How can I effectively change the TSAdaptType without having this error?</div><div><br></div><div>Thanks</div><div>Miguel</div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><font face="verdana, sans-serif"><b>Miguel Angel Salazar de Troya</b></font><span><font color="#888888"><br><font face="arial,helvetica,sans-serif">Graduate Research Assistant<br>Department of Mechanical Science and Engineering<br></font>University of Illinois at Urbana-Champaign<br>(217) 550-2360<br>
<a href="mailto:salaza11@illinois.edu" target="_blank">salaza11@illinois.edu</a></font></span><div><br></div></div></div>
</div></div>