Fortran interfaces to the push/pop routines used by Tapenade-generated adjoint code.
These external procedures exchange scalar and array values with the Tapenade AD stack. They are implementation support for generated derivative routines and are not normally called directly by model users.
The interfaces are invoked from Tapenade-generated code during reverse mode evaluation.
Pop one real value from the AD stack.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=pr) | :: | a |
Returned value. |
Pop a real array from the AD stack.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=pr), | dimension(n) | :: | a |
Returned array values. |
||
| integer | :: | n |
Number of array elements. |
Pop a 4-byte integer value from the AD stack.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer | :: | i |
Returned integer value. |
Push a 4-byte integer value onto the AD stack.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer | :: | i |
Integer value to push. |
Push one real value onto the AD stack.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=pr) | :: | a |
Value to push. |
Push a real array onto the AD stack.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=pr), | dimension(n) | :: | a |
Array values to push. |
||
| integer | :: | n |
Number of array elements. |