Add automatic generated fortran support for setting and returning contextsMajor cleanup of the code for setting and returning application (previously called user) contexts - PetscCtx ctx is now t
Add automatic generated fortran support for setting and returning contextsMajor cleanup of the code for setting and returning application (previously called user) contexts - PetscCtx ctx is now the standard for passing in contexts - PetscCtxRt ctx is the standard for passing out contexts, including context destroy routines based on PetscCtxDestroyFnBoth of these are typedef to void*Also removed most use of user and userctx for context arguments now consistently named ctxImproved documentation on PetscCtx and PetscCtxRt and on how to use contexts (including getting them) from Fortran
show more ...
checkbadSource: enforce proper style in makefiles
tests: update CLEANFILES, and fix a compile target
SNESLinesearch: Minor improvements- add missing configuration options in the documentation of the line searches (some of the available options were not listed), and consistently list their respecti
SNESLinesearch: Minor improvements- add missing configuration options in the documentation of the line searches (some of the available options were not listed), and consistently list their respective default values- add proper convergence criteria for the secant method in the L2 line search based on ltol and atol (otherwise, the secant method is mostly running for the maximum number of iterations)- fix a small bug in the CP line search, where steptol * lambda was used to check for convergence based on the change of lambda instead of the ltol parameter- rename sneslinesearch->maxstep to sneslinesearch->maxlambda in the options database to be consistent with its purpose in the algorithms- rename SNESLineSearchL2 to SNESLineSearchSecant to better represent its underlying approach
fix bug in network example that produces FPEchange network example to use jacobi preconditioner to prevent FPE in ILU due to zero row of matrix
make: add explicit '% : %.c' target so that LINK.c target is in sync with LINK.F target '% : %.F90'with multiple source compile into a singe binary:- fixes Fortran example build: currently broken,
make: add explicit '% : %.c' target so that LINK.c target is in sync with LINK.F target '% : %.F90'with multiple source compile into a singe binary:- fixes Fortran example build: currently broken, due to duplicate obj-files in link command- can now use consitent obj file dependencies irrespective of C-main or Fortran-main sources- cab avoid duplicate compiles of same sources [esp with SEPARATE_COMPILE_LINK=1]
Remove unneeded parentheses
Update SNESSetTolerances() to accept PETSC_DETERMINE an PETSC_DECIDE
checkbadSource: rules for PetscFunctionBegin and derivatives
Remove MANSEC from makefiles it is not needed in, tutorials and tests
Remove DIRS variable and unneeded tabs from all makefiles since no longer neededCommit-type: housekeeping
Convert all header guards to pragma once
Profiling: Improve !defined(PETSC_USE_LOG) #defines- If we cast macro arguments to void, we can avoid unused errors that have forced lots of conditionally included code like this:```c #if def
Profiling: Improve !defined(PETSC_USE_LOG) #defines- If we cast macro arguments to void, we can avoid unused errors that have forced lots of conditionally included code like this:```c #if defined(PETSC_USE_LOG) PetscLogEvent event; #endif```- Having global counters like petsc_TotalFlops externed event if !PetscDefined(USE_LOG) helps to remove a lot of needless `#ifdef`s around code that can instead be placed in `if (PetscDefined(USE_LOG)) {}` blocks.
Add specific vertex viewing for DMNetwork -- zoom in on selected vertices
Add color component to CoordinateDM in DMView_Network_CSV()Add color handling to DMNetwork visualization scriptAdd check for coordinateDM creation in DMView_Network_CSV()Update ex1.c: set couple
Add color component to CoordinateDM in DMView_Network_CSV()Add color handling to DMNetwork visualization scriptAdd check for coordinateDM creation in DMView_Network_CSV()Update ex1.c: set coupled_snes_max_it=power_snes_max_it=water_snes_max_it=1 to illustrate interaction between subsnes and coupledsnes set color=localf at vertices to monitor convergence over dmnetwork optimize UserMonitor()Update src/dm/impls/network/tests/ex2.c to test '-dmnetwork_view draw'Co-authored-by: dccampbell1@shockers.wichita.edu
Merge branch 'dcampbell/dmnetworkview-options' into 'main'Add more useful viewing options for DMNetworkSee merge request petsc/petsc!6345
Add new command-line options for DMNetwork visualizationPlacing the options in PetscOptionsBegin ... PetscOptionsEndFix(DMNetwork): fix -draw_pause handlingFeat(DMNetwork): add setters for viewer
Add new command-line options for DMNetwork visualizationPlacing the options in PetscOptionsBegin ... PetscOptionsEndFix(DMNetwork): fix -draw_pause handlingFeat(DMNetwork): add setters for viewer optionsCo-authored-by: Duncan Campbell <dccampbell1@shockers.wichita.edu>Co-authored-by: Aidan Hamilton <aidan@udel.edu>Co-authored-by: Hong Zhang <hzhang@mcs.anl.gov>
DMNETWORK: do not use fpe since the code does sqrt(negative_value) during line search
Remove need for seperate lib/petsc/conf/test file by merging with rules fileCommit-type: maintainability
Fix build error with linux-misc-32bit
Merge branch 'barry/2023-02-22/rm-locdir' into 'main'Remove need for hardwired LOCDIR in all makefilesSee merge request petsc/petsc!6113
Remove unneeded declarations of LOCDIR from all the makefilesCommit-type:documentation
Double spaces, wrong backticks, or unneeded braces
update ex1.c and ex2.c; add tests
Make PetscErrorCode a non-discardable enum
123