diff --git a/matlab/PosteriorIRF.m b/matlab/PosteriorIRF.m index 4431e79dd..c870a78a9 100644 --- a/matlab/PosteriorIRF.m +++ b/matlab/PosteriorIRF.m @@ -11,6 +11,11 @@ function PosteriorIRF(type) % SPECIAL REQUIREMENTS % None +% PARALLEL CONTEXT +% This funtion has been parallelized in two different points. Then we have two core +% functions associated with it(the _core1 and _core2). +% See also the comments random_walk_metropolis_hastings.m funtion. + % Copyright (C) 2006-2008,2010 Dynare Team % % This file is part of Dynare. @@ -137,10 +142,8 @@ if MAX_nirfs_dsgevar Companion_matrix = diag(ones(nvobs*(NumberOfLags-1),1),-nvobs); end -%%%%%%%%% START the FIRST BLOCK of CODE EXECUTED in PARALLEL! %%%%%%%%% -% -% This portion of code is execute in parallel by PosteriorIRF_core1.m -% function. +% First block of code executed in parallel. The function devoted to do it is PosteriorIRF_core1.m +% function. b = 0; nosaddle = 0; @@ -154,13 +157,9 @@ localVars.irun = irun; localVars.irun2=irun2; localVars.nosaddle=nosaddle; -% It is necessary to rename 'type' to avoid conflict with -% a native matlab funtion. - -localVars.typee=type; - +localVars.type=type; if strcmpi(type,'posterior'), -while b<=B +while b