From d8b0495c77e6a96cbc32068dab996589e01fe5ca Mon Sep 17 00:00:00 2001 From: Johannes Pfeifer <jpfeifer@gmx.de> Date: Wed, 21 Dec 2016 08:59:57 +0100 Subject: [PATCH] Make PosteriorIRF.m and pm3.m honor nograph and posterior_nograph option --- matlab/PosteriorIRF.m | 3 ++- matlab/pm3.m | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/matlab/PosteriorIRF.m b/matlab/PosteriorIRF.m index 9a89b4c0c2..8b086c5b96 100644 --- a/matlab/PosteriorIRF.m +++ b/matlab/PosteriorIRF.m @@ -362,7 +362,7 @@ end % .tex generation always run in sequentially. This portion of code is execute in parallel by % PosteriorIRF_core2.m function. - +if ~options_.nograph && ~options_.no_graph.posterior % Save the local variables. localVars=[]; @@ -459,5 +459,6 @@ else end % END parallel code! +end fprintf('Estimation::mcmc: Posterior IRFs, done!\n'); diff --git a/matlab/pm3.m b/matlab/pm3.m index 21a486162c..ae0f474d16 100644 --- a/matlab/pm3.m +++ b/matlab/pm3.m @@ -292,6 +292,7 @@ end %% Finally I build the plots. %% +if ~options_.nograph && ~options_.no_graph.posterior % Block of code executed in parallel, with the exception of file % .tex generation always run sequentially. This portion of code is execute in parallel by % pm3_core1.m function. @@ -394,5 +395,6 @@ if options_.TeX && any(strcmp('eps',cellstr(options_.graph_format))) fprintf(fidTeX,'%% End of TeX file.\n'); fclose(fidTeX); end +end -fprintf(['Estimation::mcmc: ' tit1 ', done!\n']); \ No newline at end of file +fprintf(['Estimation::mcmc: ' tit1 ', done!\n']); -- GitLab