diff --git a/preprocessor/ComputingTasks.cc b/preprocessor/ComputingTasks.cc index ef3bec571..836d6db85 100644 --- a/preprocessor/ComputingTasks.cc +++ b/preprocessor/ComputingTasks.cc @@ -317,6 +317,15 @@ EstimatedParamsStatement::EstimatedParamsStatement(const vector::const_iterator it = estim_params_list.begin(); + it != estim_params_list.end(); it++) + if (it->prior == "1") //BETA_PDF is associated with "1" in DynareBison.yy + if (dynamic_cast(it->mean)->isNumConstNodeEqualTo(0.5) && + dynamic_cast(it->std)->isNumConstNodeEqualTo(0.5)) + { + cerr << "The prior density is not defined for the beta distribution when the mean = standard deviation = 0.5." << endl; + exit(EXIT_FAILURE); + } } void