ADMB Documentation  11.5.3197
 All Classes Files Functions Variables Typedefs Friends Defines
df1b2glo.cpp
Go to the documentation of this file.
00001 /*
00002  * $Id$
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 unsigned 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 #if defined(__x86_64) || (defined(_MSC_VER) && defined(_M_X64))
00043 lmatrix* initial_df1b2params::pointer_table=0;
00044 #else
00045 imatrix* initial_df1b2params::pointer_table=0;
00046 #endif
00047 class df1b2_gradlist;
00048 
00049 df1b2_gradlist * f1b2gradlist = NULL;
00050 df1b2_gradlist * localf1b2gradlist = 0;
00051 df1b2_gradlist * globalf1b2gradlist = 0;
00052 
00053 int df1b2variable::noallocate=0;
00054 
00055 initial_df1b2params ** initial_df1b2params::varsptr
00056   =new P_INITIAL_DF1B2PARAMS[1000];
00057 int initial_df1b2params::num_initial_df1b2params=0;         // array
00058 
00059 int initial_df1b2params::num_initial_df1b2params_sav=0;         // array
00060 initial_df1b2params ** initial_df1b2params::varsptr_sav=0;
00061 
00062 int initial_df1b2params::current_phase=0;
00063 
00064 int df1b2variable::adpool_stack_pointer=0;
00065 const int df1b2variable::adpool_stack_size=50;
00066 adpool * df1b2variable::adpool_stack[50];
00067 unsigned int df1b2variable::adpool_nvar_stack[50];