From 1ed0b5225e3d4fa91ac50b4512de49ed42845228 Mon Sep 17 00:00:00 2001 From: Brad Bell Date: Fri, 15 Mar 2024 05:07:52 -0700 Subject: [PATCH] master: openmp: get_started.cpp: Add comment about f.capacity_order call. --- example/multi_thread/openmp/get_started.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/example/multi_thread/openmp/get_started.cpp b/example/multi_thread/openmp/get_started.cpp index 4e3030539..b483119a8 100644 --- a/example/multi_thread/openmp/get_started.cpp +++ b/example/multi_thread/openmp/get_started.cpp @@ -75,7 +75,8 @@ namespace { double partial( CppAD::ADFun& 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();