Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dynare
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dóra Kocsis
dynare
Commits
1021e43d
Commit
1021e43d
authored
May 31, 2010
by
Marco Ratto
Browse files
Options
Downloads
Patches
Plain Diff
1) eliminates use of struct2local;
2) changes to header
parent
26a78ba5
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
matlab/PosteriorIRF_core2.m
+42
-9
42 additions, 9 deletions
matlab/PosteriorIRF_core2.m
with
42 additions
and
9 deletions
matlab/PosteriorIRF_core2.m
+
42
−
9
View file @
1021e43d
function
myoutput
=
PosteriorIRF_core2
(
myinputs
,
fpar
,
npar
,
whoiam
,
ThisMatlab
)
% PARALLEL CONTEXT
% Perfome in parallel a portion of PosteriorIRF.m code.
% See also the comment in random_walk_metropolis_hastings_core.m funtion.
%
% INPUTS
% See the comment in random_walk_metropolis_hastings_core.m funtion.
%
% OUTPUTS
% o myoutput [struc]
% Contained:
% OutputFileName (i.e. the figures without the file .txt).
%
% ALGORITHM
% Portion of PosteriorIRF.m function code. Specifically the last 'for' cycle.
%
% SPECIAL REQUIREMENTS.
% None.
%
% Copyright (C) 2006-2008,2010 Dynare Team
%
% This file is part of Dynare.
...
...
@@ -22,7 +39,30 @@ global options_ M_
if
nargin
<
4
,
whoiam
=
0
;
end
struct2local
(
myinputs
);
% Reshape 'myinputs' for local computation.
% In order to avoid confusion in the name space, the instruction struct2local(myinputs) is replaced by:
Check
=
options_
.
TeX
if
(
Check
)
varlist_TeX
=
myinputs
.
varlist_TeX
;
end
nvar
=
myinputs
.
nvar
;
MeanIRF
=
myinputs
.
MeanIRF
;
tit
=
myinputs
.
tit
;
nn
=
myinputs
.
nn
;
MAX_nirfs_dsgevar
=
myinputs
.
MAX_nirfs_dsgevar
;
HPDIRF
=
myinputs
.
HPDIRF
;
varlist
=
myinputs
.
varlist
;
MaxNumberOfPlotPerFigure
=
myinputs
.
MaxNumberOfPlotPerFigure
;
% Necessary only for remote computing!
if
whoiam
Parallel
=
myinputs
.
Parallel
;
MasterName
=
myinputs
.
MasterName
;
DyMo
=
myinputs
.
DyMo
;
end
% To save the figures where the function is computed!
...
...
@@ -102,12 +142,6 @@ for i=fpar:npar,
title
(
name
,
'Interpreter'
,
'none'
)
end
% TempPath=DirectoryName;
% DirectoryNamePar='C:\dynare_calcs\ModelTest\ls2003\metropolis';
% DirectoryName=DirectoryNamePar;
if
subplotnum
==
MaxNumberOfPlotPerFigure
|
(
j
==
nvar
&
subplotnum
>
0
)
figunumber
=
figunumber
+
1
;
set
(
hh
,
'visible'
,
'on'
)
...
...
@@ -132,7 +166,6 @@ for i=fpar:npar,
end
% loop over exo_var
% DirectoryName=TempPath;
myoutput
.
OutputFileName
=
OutputFileName
;
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment