Skip to content

Commit

Permalink
Documentation Fixes (#295)
Browse files Browse the repository at this point in the history
Fix some documentation errors and typos (addresses issue #280)
  • Loading branch information
gardner48 authored Jun 28, 2023
1 parent 15a7944 commit 75a6c7d
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions doc/cvode/guide/source/Usage/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,7 @@ of two modes as to where CVODE is to return a solution. But these
modes are modified if the user has set a stop time (with :c:func:`CVodeSetStopTime`) or requested
rootfinding.
.. c:function:: int CVode(void* cvode_mem, realtype tout, N_Vector yout, realtype tret, int itask)
.. c:function:: int CVode(void* cvode_mem, realtype tout, N_Vector yout, realtype* tret, int itask)
The function ``CVode`` integrates the ODE over an interval in t.
Expand Down Expand Up @@ -1630,8 +1630,8 @@ the :c:func:`CVodeSetEpsLin` function.
.. _CVODE.Usage.CC.optional_input.optin_nls:
Linear solver interface optional input functions
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Nonlinear solver interface optional input functions
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.. _CVODE.Usage.CC.optional_input.optin_nls_table:
Expand Down
4 changes: 2 additions & 2 deletions doc/cvodes/guide/source/Usage/ADJ.rst
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ use in Forward Sensitivity Analysis; for that, see :numref:`CVODES.Usage.FSA`.
The call to this function has the form


.. c:function:: int CVodeF(void * cvode_mem, realtype tout, N_Vector yret, realtype tret, int itask, int ncheck)
.. c:function:: int CVodeF(void * cvode_mem, realtype tout, N_Vector yret, realtype* tret, int itask, int ncheck)
The function :c:func:`CVodeF` integrates the forward problem over an interval
in :math:`t` and saves checkpointing data.
Expand Down Expand Up @@ -1353,7 +1353,7 @@ To extract the values of the quadrature variables at the last return time of
:c:func:`CVodeGetQuad`.
.. c:function:: int CVodeGetQuadB(void * cvode_mem, whichrealtype tret, N_Vector yQB)
.. c:function:: int CVodeGetQuadB(void * cvode_mem, int which, realtype* tret, N_Vector yQB)
The function :c:func:`CVodeGetQuadB` returns the quadrature solution vector
after a successful return from :c:func:`CVodeB`.
Expand Down
10 changes: 5 additions & 5 deletions doc/cvodes/guide/source/Usage/SIM.rst
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,7 @@ of two modes as to where CVODES is to return a solution. But these
modes are modified if the user has set a stop time (with :c:func:`CVodeSetStopTime`) or requested
rootfinding.
.. c:function:: int CVode(void* cvode_mem, realtype tout, N_Vector yout, realtype tret, int itask)
.. c:function:: int CVode(void* cvode_mem, realtype tout, N_Vector yout, realtype* tret, int itask)
The function ``CVode`` integrates the ODE over an interval in t.
Expand Down Expand Up @@ -1627,8 +1627,8 @@ the :c:func:`CVodeSetEpsLin` function.
.. _CVODES.Usage.SIM.optional_input.optin_nls:
Linear solver interface optional input functions
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Nonlinear solver interface optional input functions
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.. _CVODES.Usage.SIM.optional_input.optin_nls_table:
Expand Down Expand Up @@ -4024,7 +4024,7 @@ solution and quadratures at time ``t``. However, :c:func:`CVode` will still retu
only the solution :math:`y` in ``yout``. Solution quadratures can be obtained
using the following function:
.. c:function:: int CVodeGetQuad(void * cvode_mem, realtype tret, N_Vector yQ)
.. c:function:: int CVodeGetQuad(void * cvode_mem, realtype* tret, N_Vector yQ)
The function ``CVodeGetQuad`` returns the quadrature solution vector after a successful return from ``CVode``.
Expand Down Expand Up @@ -4104,7 +4104,7 @@ If the quadrature variables are part of the step size control mechanism,
one of the following functions must be called to specify the
integration tolerances for quadrature variables.
.. c:function:: int CVodeQuadSVtolerances(void * cvode_mem, realtype reltolQ, realtype abstolQ)
.. c:function:: int CVodeQuadSVtolerances(void * cvode_mem, realtype reltolQ, N_Vector abstolQ)
The function ``CVodeQuadSStolerances`` specifies scalar relative and absolute tolerances.
Expand Down
2 changes: 1 addition & 1 deletion doc/ida/guide/source/Usage/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,7 @@ the user has set a stop time (with :c:func:`IDASetStopTime`) or requested
rootfinding (with :c:func:`IDARootInit`).
.. c:function:: int IDASolve(void * ida_mem, realtype tout, realtype tret, N_Vector yret, N_Vector ypret, int itask)
.. c:function:: int IDASolve(void * ida_mem, realtype tout, realtype* tret, N_Vector yret, N_Vector ypret, int itask)
The function ``IDASolve`` integrates the DAE over an interval in t.
Expand Down
2 changes: 1 addition & 1 deletion doc/idas/guide/source/Usage/SIM.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3970,7 +3970,7 @@ then IDAS computes both a solution and quadratures at time ``t``. However,
:c:func:`IDASolve` will still return only the solution :math:`y` in ``y``.
Solution quadratures can be obtained using the following function:
.. c:function:: int IDAGetQuad(void * ida_mem, realtype tret, N_Vector yQ)
.. c:function:: int IDAGetQuad(void * ida_mem, realtype* tret, N_Vector yQ)
The function :c:func:`IDAGetQuad` returns the quadrature solution vector after a successful return from :c:func:`IDASolve`.
Expand Down

0 comments on commit 75a6c7d

Please sign in to comment.