Yes, this definitely worked when it was put in and most of the time since. I can debug now if you like.<br><br><div class="gmail_quote">On Fri, Mar 16, 2012 at 11:57, Jungho Lee <span dir="ltr"><<a href="mailto:julee@mcs.anl.gov">julee@mcs.anl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">DMCreateFieldIS, etc., in fieldsplit.c, are back in. Had anyone<br>
rigorously test that part of the code before it went away, though? It<br>
fails in the PetscFree call (line 237):<br>
<br>
<br>
(serial version of runex28_3)<br>
$ ./ex28 -da_grid_x 20 -snes_converged_reason -snes_monitor_short<br>
-ksp_monitor_short -problem_type 2 -snes_mf_operator -pack_dm_mat_type<br>
aij -pc_type fieldsplit -pc_fieldsplit_type additive<br>
-fieldsplit_u_ksp_type gmres -fieldsplit_k_pc_type jacobi<br>
0 SNES Function norm 20.0067<br>
[0]PETSC ERROR: PetscTrFreeDefault() called from<br>
PCFieldSplitSetDefaults() line 237 in<br>
/Users/jungholee/projects/petsc-dev-same/src/ksp/pc/impls/fieldsplit/fieldsplit.c<br>
[0]PETSC ERROR: Block at address 0x7fff5fbfa5a0 is corrupted; cannot free;<br>
may be block not allocated with PetscMalloc()<br>
[0]PETSC ERROR: --------------------- Error Message<br>
------------------------------------<br>
[0]PETSC ERROR: Memory corruption!<br>
[0]PETSC ERROR: Bad location or corrupted memory!<br>
[0]PETSC ERROR:<br>
------------------------------------------------------------------------<br>
[0]PETSC ERROR: Petsc Development HG revision:<br>
25d401b609b5244f31ee51f342bdb0f3d0fdb309 HG Date: Thu Mar 15 23:26:29<br>
2012 -0500<br>
[0]PETSC ERROR: See docs/changes/index.html for recent updates.<br>
[0]PETSC ERROR: See docs/faq.html for hints about trouble shooting.<br>
[0]PETSC ERROR: See docs/index.html for manual pages.<br>
[0]PETSC ERROR:<br>
------------------------------------------------------------------------<br>
[0]PETSC ERROR: ./ex28 on a arch-c named <a href="http://mcswl179.mcs.anl.gov" target="_blank">mcswl179.mcs.anl.gov</a> by<br>
jungholee Fri Mar 16 11:55:11 2012<br>
[0]PETSC ERROR: Libraries linked from<br>
/Users/jungholee/projects/petsc-dev-same/arch-c/lib<br>
[0]PETSC ERROR: Configure run at Fri Mar 16 00:04:21 2012<br>
[0]PETSC ERROR: Configure options --with-superlu_dist-dir=/opt/local<br>
--with-superlu-dir=/opt/local --with-hypre-dir=/opt/local<br>
--with-sowing-dir=/opt/local --with-c2html-dir=/opt/local<br>
--with-parmetis-dir=/opt/local --with-metis-dir=/opt/local<br>
--with-shared-libraries<br>
[0]PETSC ERROR:<br>
------------------------------------------------------------------------<br>
[0]PETSC ERROR: PetscTrFreeDefault() line 287 in<br>
/Users/jungholee/projects/petsc-dev-same/src/sys/memory/mtr.c<br>
[0]PETSC ERROR: PCFieldSplitSetDefaults() line 237 in<br>
/Users/jungholee/projects/petsc-dev-same/src/ksp/pc/impls/fieldsplit/fieldsplit.c<br>
[0]PETSC ERROR: PCSetUp_FieldSplit() line 366 in<br>
/Users/jungholee/projects/petsc-dev-same/src/ksp/pc/impls/fieldsplit/fieldsplit.c<br>
[0]PETSC ERROR: PCSetUp() line 832 in<br>
/Users/jungholee/projects/petsc-dev-same/src/ksp/pc/interface/precon.c<br>
[0]PETSC ERROR: KSPSetUp() line 261 in<br>
/Users/jungholee/projects/petsc-dev-same/src/ksp/ksp/interface/itfunc.c<br>
[0]PETSC ERROR: KSPSolve() line 385 in<br>
/Users/jungholee/projects/petsc-dev-same/src/ksp/ksp/interface/itfunc.c<br>
[0]PETSC ERROR: SNES_KSPSolve() line 4057 in<br>
/Users/jungholee/projects/petsc-dev-same/src/snes/interface/snes.c<br>
[0]PETSC ERROR: SNESSolve_LS() line 193 in<br>
/Users/jungholee/projects/petsc-dev-same/src/snes/impls/ls/ls.c<br>
[0]PETSC ERROR: SNESSolve() line 3277 in<br>
/Users/jungholee/projects/petsc-dev-same/src/snes/interface/snes.c<br>
[0]PETSC ERROR: main() line 432 in src/snes/examples/tutorials/ex28.c<br>
application called MPI_Abort(MPI_COMM_WORLD, 1) - process 0<br>
<br>
On Thu, Mar 15, 2012 at 1:13 PM, Dmitry Karpeev <<a href="mailto:karpeev@mcs.anl.gov">karpeev@mcs.anl.gov</a>> wrote:<br>
> Okay, thanks.<br>
> Dmitry.<br>
</blockquote></div><br>