ADMB Documentation  11.1.1632
 All Classes Files Functions Variables Typedefs Friends Defines
xxmcmc3.cpp
Go to the documentation of this file.
00001 /*
00002  * $Id: xxmcmc3.cpp 1108 2013-07-11 23:46:23Z johnoel $
00003  *
00004  * Author: David Fournier
00005  * Copyright (c) 2008-2012 Regents of the University of California
00006  */
00007 #include <admodel.h>
00008 
00009 #if !defined(USE_ADPVM)
00010 void function_minimizer::pvm_slave_mcmc_routine(void){}
00011 #else
00012 void function_minimizer::pvm_slave_mcmc_routine(void)
00013 {
00014   int nvar=initial_params::nvarcalc();
00015   do
00016   {
00017     int iflag=get_int_from_master();
00018     if (!iflag) break;
00019     pvm_slave_get_monte_carlo_value(nvar);
00020   }
00021   while(1);
00022 }
00023 #endif