[petsc-dev] AD support in PETSc?

Stefano Zampini stefano.zampini at gmail.com
Sun Sep 10 06:15:08 CDT 2017


Should the references to ADIFOR listed below be removed? It seems PETSc
does no longer provide support for automatic differentiation. I never used
AD support in PETSc, but I was considering adding some reverse mode support
to compute the transpose of the Jacobian matrices in adjoint computations.
May ask why was it removed?


[szampini at localhost petsc]$ git grep -i adifor
bin/adiforfix.py:# $Id: adiforfix.py,v 1.3 2001/08/24 16:32:18 bsmith Exp $
bin/adiforfix.py:#      | adiforfix.py
include/petsc/private/matimpl.h:  PetscErrorCode
(*setvaluesadifor)(Mat,PetscInt,void*);
include/petscmat.h:               MATOP_SET_VALUES_ADIFOR=74,
lib/petsc/conf/test:testexamples_ADIFOR: ${TESTEXAMPLES_ADIFOR}
lib/petsc/conf/test:    -@ if test ${PRINT_PROGRESS}foo = debugtestfoo -a
-n "${TESTEXAMPLES_ADIFOR}"; then printf "Running examples in `pwd`:\n
${TESTEXAMPLES_ADIFOR}\n"; fi
lib/petsc/conf/test:buildexamples_ADIFOR:
lib/petsc/conf/test:    -@${OMAKE} testexamples_ADIFOR
TESTEXAMPLES_ADIFOR=`echo ${TESTEXAMPLES_ADIFOR} | sed
s/runex[0-9]*[a-z0-9_]*//g`
src/docs/tao_tex/manual/mathprog.bib:@TechReport{bischof.carle.ea:adifor,
src/docs/tao_tex/manual/mathprog.bib:  title =        "{ADIFOR} 2.0 User's
Guide",
src/docs/tex/petscapp.bib:  title = "Using {ADIFOR} and {ADIC} to Provide a
{J}acobian for the {SNES} Component of {PETSc}",
src/mat/f90-mod/petscmat.h:      PetscEnum MATOP_SET_VALUES_ADIFOR
src/mat/f90-mod/petscmat.h:      parameter(MATOP_SET_VALUES_ADIFOR=74)
src/snes/examples/tutorials/makefile:   -@${MPIEXEC} -n 2 ./ex5f
-adifor_jacobian -snes_monitor_short -ksp_gmres_cgs_refinement_type
refine_always > ex5f_4.tmp 2>&1;\
src/snes/examples/tutorials/makefile:   -@${MPIEXEC} -n 2 ./ex5f
-adiformf_jacobian  -snes_monitor_short -ksp_gmres_cgs_refinement_type
refine_always > ex5f_5.tmp 2>&1;\
src/snes/examples/tutorials/makefile:TESTEXAMPLES_ADIFOR               =
ex5f.PETSc runex5f_2 ex5f.rm


-- 
Stefano
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20170910/158870e5/attachment.html>


More information about the petsc-dev mailing list