Revision 1172 branches/threaded2merge/src/linad99/newdar.cpp

newdar.cpp (revision 1172)
16 16
#endif
17 17
#include <stdlib.h>
18 18

  
19
int num_free_obj=0;
20
extern char demo_capacity[];
21
extern char please_buy[];
22
extern char otter_address1[];
23
extern char otter_address2[];
24
extern char otter_address3[];
25
extern char otter_address4[];
26
extern char otter_address5[];
19
int __thread num_free_obj = 0;
20

  
27 21
int ad_kill_flag=0;
28 22

  
29 23
/**
......
213 207

  
214 208
  if( gradient_structure::ARR_LIST1->last_offset >=gradient_structure::ARRAY_MEMBLOCK_SIZE)
215 209
  {
216
#if defined(AD_DEMO)
217
    cout << "demo capacity exceeded" << endl;
218
#endif
219 210
    cout << gradient_structure::ARR_LIST1->last_offset <<">="
220 211
	     <<  gradient_structure::ARRAY_MEMBLOCK_SIZE <<"\n";
221
#if !defined(AD_DEMO)
222 212
    cout << " No memory for dvar_vectors\n"
223 213
	 << " Need to increase ARRAY_MEMBLOCK_SIZE parameter\n"
224 214
      "In gradient_structure declaration\n";
225
#else
226
    cout << demo_capacity << endl;
227
    cout << please_buy << endl;
228
    cout << otter_address1 << endl;
229
    cout << otter_address2 << endl;
230
    cout << otter_address3 << endl;
231
    cout << otter_address4 << endl;
232
    cout << otter_address5 << endl;
233
#endif
234 215
    //throw gradient_structure::arrmemblerr();
235 216
    ad_exit(1);
236 217
  }

Also available in: Unified diff