ADMB Documentation  11.1.2495
 All Classes Files Functions Variables Typedefs Friends Defines
df1b2glo.cpp
Go to the documentation of this file.
00001 /*
00002  * $Id: df1b2glo.cpp 1919 2014-04-22 22:02:01Z johnoel $
00003  *
00004  * Author: David Fournier
00005  * Copyright (c) 2008-2012 Regents of the University of California
00006  */
00011 #include <df1b2fun.h>
00012 #define _FIVE_ 50  // must defien the macro SIX to be one greater than FIVE
00013 #define _SIX_ 51
00014 int df1b2variable::allocation_counter=0;
00015 int df1b2variable::current_allocation_index=0;
00016 const int df1b2variable::adpool_vectorsize=_FIVE_;
00017 int df1b2variable::adpool_use_index[_SIX_];
00018 adpool * df1b2variable::adpool_vector[_SIX_];
00019 
00024 void df1b2variable::increment_adpool_counter(void)
00025 {
00026  adpool_counter++;
00027  if (adpool_counter>  _FIVE_ -2)
00028  {
00029    cerr << "need to increase adpool_counter" << endl;
00030    ad_exit(1);
00031  }
00032 }
00033 
00034 int df1b2variable::nvar_vector[_FIVE_];
00035 int df1b2variable::pool_allocation_number[_FIVE_];
00036 
00037 double initial_df1b2params::cobjfun=0.0;
00038 int initial_df1b2params::separable_flag=0;
00039 int initial_df1b2params::have_bounded_random_effects=0;
00040 int initial_df1b2params::separable_calculation_type=0;
00041 int df1b2variable::adpool_counter=0;
00042 imatrix * initial_df1b2params::pointer_table=0;
00043 //int global_nvar=0;
00044 class df1b2_gradlist;
00045 
00046 df1b2_gradlist * f1b2gradlist = NULL;
00047 df1b2_gradlist * localf1b2gradlist = 0;
00048 df1b2_gradlist * globalf1b2gradlist = 0;
00049 
00050 int df1b2variable::noallocate=0;
00051 
00052 initial_df1b2params ** initial_df1b2params::varsptr
00053   =new P_INITIAL_DF1B2PARAMS[1000];
00054 int initial_df1b2params::num_initial_df1b2params=0;         // array
00055 
00056 int initial_df1b2params::num_initial_df1b2params_sav=0;         // array
00057 initial_df1b2params ** initial_df1b2params::varsptr_sav=0;
00058 
00059 int initial_df1b2params::current_phase=0;
00060 
00061 int df1b2variable::adpool_stack_pointer=0;
00062 const int df1b2variable::adpool_stack_size=50;
00063 adpool * df1b2variable::adpool_stack[50];
00064 int df1b2variable::adpool_nvar_stack[50];