PetscHeaderCreate: Shorten argument list and optimize memory allocation* Remove type arguments from the macro* Use a single memory allocation call instead of three
updated PETSc directory layout to match standard packaging strategiesinclude/petsc finclude,private,mpiunilib/petsc confbin/petsc*
Merge branch 'tisaac/simplify-register-all'Removed the XXXRegisterAll() functions from the public interface. These should now only be handled by the package intialization functions.
moved PetscOptionsObject from global variable to local variable in functions
manual merge of conflict
Remove XXXRegisterAllCalled from public interface.All XXXRegisterAll() methods are now idempotent, so a boolean indicatingwhether they can be called or not is no longer necessary.
introduce XXXViewFromOptions() and use consistently when possible
Merge branch 'master' into barry/sawsConflicts: src/ksp/pc/impls/gamg/gamg.c src/sys/classes/viewer/impls/ams/ams.c src/sys/objects/pinit.c
fix name for PetscOptionsFList() and get FList() and EList() working properly with SAWs legal values
Remove --with-dynamic-loading / PETSC_USE_DYNAMIC_LIBRARIESThis option was mostly redundant because normal shared libraries satisfyall the same needs. This commit adds the run-time option-dynami
Remove --with-dynamic-loading / PETSC_USE_DYNAMIC_LIBRARIESThis option was mostly redundant because normal shared libraries satisfyall the same needs. This commit adds the run-time option-dynamic_library_preload that can be used to load/initialize all thepackages in advance, as used to be done when --with-dynamic-loading.The PetscDLLibraryRegister_petscxxx functions have been kept, but arenot called unless -dynamic_library_preload is used. The petsc-devdiscussion, "Why --with-dynamic-loading?" did not reach consensus aboutwhether this was ever useful, so it may also be removable.
show more ...
converted uAMS usage to SAWs usage; starts server but cannot see any published directories
Use classname in object for object name when calling PetscObjectPrintClassNamePrefixType() instead of some string with less precise name passed in
removed PetscFunctionListDestroyAll() and put PetscFunctionListDestroy(&XXXList) into the package finalize
PetscFunctionListAdd: use macro to hide (PetscVoidFunction) castSame rationale as the last commit:Casting using PetscVoidFunction instead of (void(*)(void)) is neededwith C++ compilers that will
PetscFunctionListAdd: use macro to hide (PetscVoidFunction) castSame rationale as the last commit:Casting using PetscVoidFunction instead of (void(*)(void)) is neededwith C++ compilers that will not implicitly convert C++ language linkageto C language linkage. Since PetscFunctionListAdd() is meant to operateon generic function pointers, we hide this language linkage detail(which is inconsistently implemented) in a cast.
PetscFunctionListFind: use macro to hide (PetscVoidFunction*) castCasting using PetscVoidFunction* instead of (void(**)(void)) is neededwith C++ compilers that will not implicitly convert C++ lang
PetscFunctionListFind: use macro to hide (PetscVoidFunction*) castCasting using PetscVoidFunction* instead of (void(**)(void)) is neededwith C++ compilers that will not implicitly convert C++ language linkageto C language linkage. Since PetscFunctionListFind() is meant to operateon generic function pointers, we hide this language linkage detail(which is inconsistently implemented) in a cast.
removed string version of function name for XXXRegister(), PetscFunctionListAdd() and PetscObjectComposeFunction()
removed path and MPI_Comm arguments from PetscFunctionListFind/Add()
removed path argument to XXXInitializePackage() and XXXRegister()
removed XXXRegisterDynamic() but kept the APIs for everything else underneath the samephase I of the update to handling registering function pointers
changed AMS publishing to use the Viewer modeladded simple AMS viewer for mat,ksp,snes,tsadded --ksp/snes/ts_view_pre for starting the viewer before the solve (ugly but useful for AMS)added PetscS
changed AMS publishing to use the Viewer modeladded simple AMS viewer for mat,ksp,snes,tsadded --ksp/snes/ts_view_pre for starting the viewer before the solve (ugly but useful for AMS)added PetscStackCalls around AMS function calls when appropriate (note do not want these in webserver because do not webserver stopping just because AMS server is down
work on AMS interface, consistent naming, ams.h not included in petscviewer.h, no ifdefsHg-commit: 642571a1dc7109fdb7e5b0abb23bf260d10eb970
Change all PETSC_EXTERN_C to PETSC_EXTERNHg-commit: 8d2ebbb193fb583bccc64015e35640c4e08c3426
completed update of PETSC_EXTERN_C usage to replace EXTERN_C_BEGIN/ENDHg-commit: 84182841dc78e38819f60460c0b7afa4c601fbd6
added PetscObjectComm() and used it to replace (((PetscObject)obj)->comm)Hg-commit: 3da37c458124ad48ae939f4e9823e4430ee0b8be
removed typeid from PetscHeaderCreate() args since it is not know at create time anywayHg-commit: 368e928141e31cf1ff6cf108913006e5886dc6cc
1234567