Revision 1259 trunk/src/nh99/modspmin.cpp

modspmin.cpp (revision 1259)
14 14
#if ( (defined(_WINDOWS) || defined(_Windows)) && !defined(BORBUGS))
15 15
#  include <windows.h>
16 16
#endif
17
char banner0[56]={"*****************************************************"};
18
char banner1[56]={"This is the open source version of AD Model Builder"};
19
char banner1a[58]={"You can freely use AD Model Builder"};
20
char banner2[30]={"http://www.admb-project.org/"};
21
char banner3[55]={"http://www.admb-project.org/"};
22
char banner4[60]={"users@admb-project.org   http://www.admb-project.org/"};
23 17
int ad_cheat_flag=0;
24 18
#if defined(linux)
25 19
  int Sleep(int);
......
115 109
#   endif
116 110
  }
117 111
int something_105=0;
118
//static int something_106=0;
119 112

  
120
#if defined(ADMB_REDEMO)
121
static int stupid_flag=17;
122
int * kill_address;
123
#endif  //#if defined(ADMB_REDEMO)
124
          int kill_flag_105=901;
125
          int kill_flag_107=901;
113
int kill_flag_105=901;
114
int kill_flag_107=901;
126 115

  
127 116
  void function_minimizer::computationsx(int argc,char * argv[])
128 117
  {
......
150 139
#if defined (AD_DEMO)
151 140
     write_banner_stuff();
152 141
#endif
153
#if defined(ADMB_REDEMO)
154
    stupid_flag=0;
155
#endif
156 142
    xflag_105=&something_105;
157 143
    if (option_match(argc,argv,"-mceval") == -1)
158 144
    {
......
609 595
{
610 596
  if (ad_printf)
611 597
  {
598
    char banner0[56]={"*****************************************************"};
599
    char banner1[56]={"This is the open source version of AD Model Builder"};
600
    char banner1a[58]={"You can freely use AD Model Builder"};
601
    char banner2[30]={"http://www.admb-project.org/"};
602
    char banner3[55]={"http://www.admb-project.org/"};
603
    char banner4[60]={"users@admb-project.org   http://www.admb-project.org/"};
612 604
    (*ad_printf)("\n%s\n", banner0);
613 605
    (*ad_printf)("%s\n", banner1);
614 606
    (*ad_printf)("%s\n", banner1a);
......
687 679

  
688 680
  void function_minimizer::mcmc_computations(void)
689 681
  {
690
    int ton,tnopt;
691
    int on,nopt;
682
    int ton,tnopt = 0;
692 683
    ton=option_match(ad_comm::argc,ad_comm::argv,"-mcmc",tnopt);
693 684
    if (ton<0)
694 685
    {
695 686
      ton=option_match(ad_comm::argc,ad_comm::argv,"-mcmc2",tnopt);
696 687
    }
697
    on=ton;
698
    nopt=tnopt;
688
    int on=ton;
689
    int nopt=tnopt;
699 690

  
700 691
    if (on>-1)
701 692
    {
......
778 769

  
779 770
  void function_minimizer::pvm_master_mcmc_computations(void)
780 771
  {
781
    int on,nopt;
772
    int on,nopt = 0;
782 773
    if ( (on=option_match(ad_comm::argc,ad_comm::argv,"-mcmc",nopt))>-1)
783 774
    {
784 775
      /*
......
1099 1090
  }
1100 1091
#else
1101 1092
  void extra_random_effects_generator2(void) {;}
1102
#endif  //#if defined(ADMB_REDEMO)
1093
#endif  //#if defined(ADMB_REDEMO)

Also available in: Unified diff