History log of /petsc/src/sys/objects/pinit.c (Results 1051 – 1075 of 1307)
Revision Date Author Comments
# 38d9cefc 15-Nov-2011 Barry Smith <bsmith@mcs.anl.gov>

commit after pull from 3.2

Hg-commit: 12bf7f190e2a9b0eafa5d8c78eb160b07da3d705


# b6a51c36 07-Nov-2011 Peter Brune <brune@mcs.anl.gov>

commit after merge

Hg-commit: 4afddb78e4d16b99952e891a10244a92ea0015ab


# 19fcac0c 11-May-2011 Jed Brown <jed@59A2.org>

Make -options_table use collective viewer

Hg-commit: 92cf5f1f5e4b16c4e1f42584a5c427e36aafeb88


# 6bf464f9 18-Apr-2011 Barry Smith <bsmith@mcs.anl.gov>

converted rest of source code to take pointers into destructor reoutines. make test workds

Hg-commit: 78c641225c0516099423eeea3cc66e68fd2f62f3


# e2e03761 21-Mar-2011 Barry Smith <bsmith@mcs.anl.gov>

updated PetscSum_Local to handle both real and complex

Hg-commit: bd68ad93edf01d21c97586db33fc4556391ddc33


# ce63c4c1 20-Mar-2011 Barry Smith <bsmith@mcs.anl.gov>

fixed fixed some names in petscmath.h

Hg-commit: a2460f32b5062aa458eab9ab7fe574fb7cb0b351


# d9822059 16-Mar-2011 Barry Smith <bsmith@mcs.anl.gov>

finished basic support for __float128

Hg-commit: ae6323f37787bba35aaa6ab78aa53432011da446


# 854411e3 15-Mar-2011 Barry Smith <bsmith@mcs.anl.gov>

more work on MPI calls to use __float128

Hg-commit: 74e1b85adc00de99c17548fbc5eff757c0d1785b


# c90a1750 15-Mar-2011 Barry Smith <bsmith@mcs.anl.gov>

more work on __float128 support

Hg-commit: e3ac73049008cf3d976eddd0d8ba6291583e4218


# c6db04a5 14-Mar-2011 Jed Brown <jed@59A2.org>

Use #include <header.h> instead of #include "header.h" when there is no intent to search the current directory for header.h

Hg-commit: bd7216e80cc035071a5136364ab9d04bf9f41a07


# 47dad92f 13-Mar-2011 Sean Farley <sean@mcs.anl.gov>

Merged

Hg-commit: d8c12016d3250a8d659fa779bc1698da4d6c5237


# 7d0a6c19 12-Mar-2011 Barry Smith <bsmith@mcs.anl.gov>

removed #define PETSCXXX_DLL from top of all source files

Hg-commit: b784aa18ddcf5337d4011d34f0fa008681695ac1


# 9ac80d5e 25-Feb-2011 Lisandro Dalcin <dalcinl@gmail.com>

update Python embedding support, now works with Python 3

Hg-commit: caeec002429e37b029080141e10fa11c957c48f9


# c31cb41c 22-Feb-2011 Barry Smith <bsmith@mcs.anl.gov>

fixed .bib entries with Gail's corrections
removed all checks of nonzero pointer before call to PetscFree and setting to zero of pointer after PetscFree, since PetscFree() does that all automatically

fixed .bib entries with Gail's corrections
removed all checks of nonzero pointer before call to PetscFree and setting to zero of pointer after PetscFree, since PetscFree() does that all automatically

Hg-commit: 0f5bef9ea1fcd7ad8418fab6181ef990ea35c1db

show more ...


# 8154be41 21-Jan-2011 Barry Smith <bsmith@mcs.anl.gov>

changed names of all GPU related functions, macros and variables that involve CUSP to use the string CUSP instead of the misleading CUDA

Hg-commit: 3264fa4049fd83eceb12c85feb980ef207360220


# 5a596e32 14-Jan-2011 Victor Minden <victorminden@gmail.com>

commit after merge

Hg-commit: b9722e2c7aadbb358853c2635963a81e630e4ddb


# b770b1f6 13-Jan-2011 Satish Balay <balay@mcs.anl.gov>

syntax fix [win32]

Hg-commit: cdc8436de423f9a80990d01c45aa1368d4bde741


# dbc8283e 08-Jan-2011 Barry Smith <bsmith@mcs.anl.gov>

do not attempt to free all undestroyed PETSc objects in PetscFinalize() instead just optional print them
if the Petsc_InnerComm_keyval is attached to PETSC_COMM_SELF or PETSC_COMM_WORLD then free inn

do not attempt to free all undestroyed PETSc objects in PetscFinalize() instead just optional print them
if the Petsc_InnerComm_keyval is attached to PETSC_COMM_SELF or PETSC_COMM_WORLD then free inner communicator and delete attribute from outter communicator
Subject: Re: [petsc-maint #60571] DMDestroy crashes if I don't carefully destroy every vector that was created with it
From: Barry Smith <bsmith@mcs.anl.gov>
Date: January 7, 2011 5:51:17 PM CST
To: petsc-maint <petsc-maint@mcs.anl.gov>, Jason Sarich <sarich@mcs.anl.gov>
Reply-To: petsc-maint <petsc-maint@mcs.anl.gov>

Jason,

Thanks for reporting this with a reproduceble example.

This is big trouble and I don't have a good solution yet. The problem comes because I keep a list of ALL outstanding objects and just loop over them deleting them. The problem is if one object has a reference to another object (the ISLocalToGlobalMapping is referenced by the Vec) but the referenced object is destroyed, then when the referencer is destroyed it tries to destroy the previously destroyed object (hence the crash).

The reason I want to destroy all objects before existing PetscFinalize() is to make PETSc reentrant (so you can call PetscInitialize() more than once, which is normal to do in a scripting language like Python or MATLAB). If I don't destroy all objects then the extra MPI communicators and attributes in the MPI communicators are not destroyed and next time you enter PETSc and use one of those attributes it points to something that is not valid and gives trouble. Destroying all objects insures proper cleanup, otherwise we'd need some other way in PetscFinalize() to cleanup which appears like extra infrastructure I don't want to have. In a scripting environment (unlike a real language :-) it is unrealistic to expect users to cleanup all objects themselves.


Barry

On Jan 7, 2011, at 4:37 PM, Jason Sarich wrote:

Using petsc-dev changeset: 18100:5f2967045bc2 (1/07/2011 15:34)

PETSc is throwing some errors when I don't destroy my dm-created vectors
before destroying the DM. I can reproduce this with
snes/examples/tutorials/ex5.c by removing the VecDestroy(x):

sarich@franklin:~/software/petsc-dev/src/snes/examples/tutorials> ./ex5
Number of Newton iterations = 4
[0]PETSC ERROR: --------------------- Error Message
------------------------------------
[0]PETSC ERROR: Invalid argument!
[0]PETSC ERROR: Wrong type of object: Parameter # 1!
[0]PETSC ERROR:
------------------------------------------------------------------------
[0]PETSC ERROR: Petsc Development HG revision:
c082370134d6559807fdad65fb712d89017dee8f HG Date: Mon Jan 03 22:01:17 2011
-0600
[0]PETSC ERROR: See docs/changes/index.html for recent updates.
[0]PETSC ERROR: See docs/faq.html for hints about trouble shooting.
[0]PETSC ERROR: See docs/index.html for manual pages.
[0]PETSC ERROR:
------------------------------------------------------------------------
[0]PETSC ERROR: ./ex5 on a linux-gnu named franklin by sarich Fri Jan 7
16:35:50 2011
[0]PETSC ERROR: Libraries linked from
/home/sarich/software/petsc-dev/linux-gnu-cxx-debug/lib
[0]PETSC ERROR: Configure run at Tue Jan 4 09:55:51 2011
[0]PETSC ERROR: Configure options --download-mpich=1 --with-shared=1
--download-sowing=1 --with-dynamic=1 PETSC_ARCH=linux-gnu-cxx-debug

Hg-commit: cdec62f65ff5d1a817cd2a47c5f6f27c0b729322

show more ...


# 42775d28 05-Jan-2011 Victor Eijkhout <eijkhout@tacc.utexas.edu>

getting

Hg-commit: 68e5551f3fba4bd6e37fd9c837322951a9f61fc2


# 0f11a792 05-Jan-2011 Barry Smith <bsmith@mcs.anl.gov>

updates to MATLAB interface
fix for Pastix fix

Hg-commit: 128f4b9629ba436a67a36180ed2f73c5394ad502


# 0a1571b3 26-Dec-2010 Barry Smith <bsmith@mcs.anl.gov>

improved formating of student projects
added option -objects_left shows all objects the user forgot to free

Hg-commit: 30fe547dc89bffa3675fdb56217d3de20202a0d8


# e3c5b3ba 26-Dec-2010 Barry Smith <bsmith@mcs.anl.gov>

changed Matlab spelling to MATLAB some general MATLAB cleanup

Hg-commit: efcb24f191dfedc98b283d9e63e7859032e8ef35


# 2eff7a51 24-Dec-2010 Barry Smith <bsmith@mcs.anl.gov>

automatically free all created objects that have not been freed during run in PetscFinalize

Hg-commit: 2aad0a0317aabf395b96783e2383b8b5e0222e16


# 2a0cb96b 17-Dec-2010 Barry Smith <bsmith@mcs.anl.gov>

commit after massive merge of patches

Hg-commit: 9fad6404c12264ec7a7799db2ad46901a7793a8b


# 33f85c2f 16-Dec-2010 Barry Smith <bsmith@mcs.anl.gov>

fixed converting of SeqAIJ to Matlab matrix to work for 64 bit ints in Matlab
moved PetscLogDestroy() to after objects are destroyed because cookies are needed until all objects are destroyed

Hg-com

fixed converting of SeqAIJ to Matlab matrix to work for 64 bit ints in Matlab
moved PetscLogDestroy() to after objects are destroyed because cookies are needed until all objects are destroyed

Hg-commit: 7ce1802937be80f7a305aff5cc37ede3d49baad6

show more ...


1...<<41424344454647484950>>...53