Revision 692 branches/merge-trunk-davef/src/nh99/model7.cpp

model7.cpp (revision 692)
229 229
      (*ad_printf)( " -hbf            set the hybrid bounded flag for bounded parameters\n");
230 230
      (*ad_printf)( " -hyeps          mean step size for hybrid Monte Carlo\n");
231 231
      (*ad_printf)( " -hynstep        number of steps for hybrid Monte Carlo\n");
232
      (*ad_printf)( " -noreders       turn off re's for derivative calcs for std devs\n");
232 233
      (*ad_printf)( " -noinit         do not initialize RE before inner optimization\n");
233 234
      (*ad_printf)( " -ndi N          set maximum number of separable calls\n");
234 235
      (*ad_printf)( " -ndb N          set number of blocks for RE derivatives (reduce temp file size)\n");
......
562 563
  }
563 564
#endif
564 565
}
566
#if defined(USE_ADMPI)
567
void add_slave_suffix(const adstring& _tmpstring)
568
{
569
  ADUNCONST(adstring,tmpstring)
570
  if (ad_comm::mpi_manager)
571
  {
572
    if (ad_comm::mpi_manager->is_slave())
573
    {
574
      tmpstring += "_";
575
      tmpstring += str(ad_comm::mpi_manager->get_slave_number());
576
       cout << "In slave " << tmpstring << endl;
577
    }
578
    else
579
    {
580
      tmpstring += "_master";
581
       cout << "In master " << tmpstring << endl;
582
    }
583
  }
584
}
585

  
586
#else if defined(USE_PTHREADS)
587

  
588
void add_slave_suffix(const adstring& _tmpstring)
589
{
590
  ADUNCONST(adstring,tmpstring)
591
  if (ad_comm::pthreads_manager)
592
  {
593
    if (ad_comm::pthreads_manager->is_slave())
594
    {
595
      tmpstring += "_";
596
      tmpstring += str(ad_comm::pthreads_manager->get_slave_number());
597
       cout << "In slave " << tmpstring << endl;
598
    }
599
    else
600
    {
601
      tmpstring += "_master";
602
       cout << "In master " << tmpstring << endl;
603
    }
604
  }
605
}
606
#endif

Also available in: Unified diff