Skip to content

Fixing small derivative mistake in Expresssion Template explanation. #87

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 5, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions _docs/Advanced-AD-Techniques.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ we can build an internal representation of each expression to directly compute a
The picture below shows the computational graph for the expression `φ=cos(v1)v2` and the compile-time representation as object with `su2double` being the general datatype used throughout SU2.
![Expression Templates](http://www.scicomp.uni-kl.de/wordpress/wp-content/uploads/2016/05/Screenshot-from-2016-05-20-15-49-59.png)

This object can be traversed to compute and store the partial derivatives `∂φ/∂v1=cos(v1)` and `∂φ/∂v2=-sin(v1)v2` based on the derivatives of each involved unary or binary operation. If recording is enabled the traversal of the computational graph of each
This object can be traversed to compute and store the partial derivatives `∂φ/∂v1=-sin(v1)v2` and `∂φ/∂v2=cos(v1)` based on the derivatives of each involved unary or binary operation. If recording is enabled the traversal of the computational graph of each
expression is started as soon as it occurs on the right-hand side in a statement. Note that the partial derivatives are only stored if the corresponding argument has some dependency on the input variables set by the user. This kind of dependency or
activity tracking is relatively easy to accomplish since every variable stores an index along with its value. A
zero index represents passive variables while a non-zero index identifies active variables. This index will be
Expand All @@ -35,7 +35,7 @@ as an argument.
### AD Tool Wrapper

The CoDi library provides a special datatype and is automatically included
during the compilation if AD support is requested by the user (see [[AD Build]]) . For developers of SU2 there is no need to deal
during the compilation if AD support is requested by the user (see the build instructions for further information). For developers of SU2 there is no need to deal
with this library explicitly which is why there are simple wrapper routines for the most important features
available. These are for example the following:

Expand Down