Skip to content

Commit

Permalink
master: openmp: get_started.cpp: Add comment about f.capacity_order c…
Browse files Browse the repository at this point in the history
…all.
  • Loading branch information
bradbell committed Mar 15, 2024
1 parent 66330ce commit 1ed0b52
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion example/multi_thread/openmp/get_started.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ namespace {
double partial(
CppAD::ADFun<double>& f, size_t j, const d_vector& x
)
{ //
{ // f
// This will cause an assert if USE_DEFAULT_ADFUN_CONSTRUCTOR is 0.
f.capacity_order(0);
//
size_t nx = x.size();
Expand Down

0 comments on commit 1ed0b52

Please sign in to comment.