By default, for each
class there is only one
tape that records AD of Base
This tape is a global variable and hence it cannot be used
by multiple OpenMP threads at the same time.
The omp_max_thread function is used to set the
maximum number of OpenMP threads that can be active.
In this case, there is a different tape corresponding to each
class and thread pair.
It must be greater than zero and specifies the maximum number of
OpenMp threads that will be active at one time.
Each call to Independent(x)
creates a new active
All of the operations with the corresponding variables
must be preformed by the same OpenMP thread.
This includes the corresponding call to
ADFun f(x, y)
during which the tape stops recording and the variables
No tapes can be
when this function is called.
Input File: cppad/core/omp_max_thread.hpp