Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
benchmark-pfm
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
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Stéphane Adjemian
benchmark-pfm
Commits
d759023f
Commit
d759023f
authored
11 months ago
by
Stéphane Adjemian
Browse files
Options
Downloads
Patches
Plain Diff
Add comments.
parent
45d4dcf6
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
matlab/write_steady_state.m
+2
-0
2 additions, 0 deletions
matlab/write_steady_state.m
matlab/write_table_short.m
+4
-3
4 additions, 3 deletions
matlab/write_table_short.m
with
6 additions
and
3 deletions
matlab/write_steady_state.m
+
2
−
0
View file @
d759023f
...
@@ -7,6 +7,8 @@ function write_steady_state(output, DynareModel, DynareOutput)
...
@@ -7,6 +7,8 @@ function write_steady_state(output, DynareModel, DynareOutput)
% - DynareModel [struct] aka M_
% - DynareModel [struct] aka M_
% - DynareOutput [struct] aka oo_
% - DynareOutput [struct] aka oo_
% Copyright (C) 2024 by Stéphane ADjemian
fid
=
fopen
(
output
,
'w'
);
fid
=
fopen
(
output
,
'w'
);
fprintf
(
fid
,
'// File generated on %s.'
,
char
(
datetime
));
fprintf
(
fid
,
'// File generated on %s.'
,
char
(
datetime
));
skipline
(
2
,
fid
)
skipline
(
2
,
fid
)
...
...
This diff is collapsed.
Click to expand it.
matlab/write_table_short.m
+
4
−
3
View file @
d759023f
function
write_table_short
(
datafile
,
texfilename
)
function
write_table_short
(
datafile
,
texfilename
)
% Copyright (C) 2024 by Stéphane Adjemian
stack_solve_algo
=
[
0
,
1
,
2
,
3
,
4
,
5
];
stack_solve_algo
=
[
0
,
1
,
2
,
3
,
4
,
5
];
id
=
1
:
length
(
stack_solve_algo
);
id
=
1
:
length
(
stack_solve_algo
);
...
@@ -21,11 +22,11 @@ for algo = [0, 1]
...
@@ -21,11 +22,11 @@ for algo = [0, 1]
if
~
isnan
(
MATLAB_computing
(
id
(
stack_solve_algo
==
algo
),
1
))
if
~
isnan
(
MATLAB_computing
(
id
(
stack_solve_algo
==
algo
),
1
))
switch
MATLAB_computing
(
id
(
stack_solve_algo
==
algo
),
1
)
switch
MATLAB_computing
(
id
(
stack_solve_algo
==
algo
),
1
)
case
-
1
case
-
1
T
=
strrep
(
T
,
sprintf
(
'{a%u_mat}'
,
algo
),
'crash'
);
T
=
strrep
(
T
,
sprintf
(
'{a%u_mat}'
,
algo
),
'crash'
);
% code crash
case
-
2
case
-
2
T
=
strrep
(
T
,
sprintf
(
'{a%u_mat}'
,
algo
),
'FAIL'
);
T
=
strrep
(
T
,
sprintf
(
'{a%u_mat}'
,
algo
),
'FAIL'
);
% algorithm did not converge
case
-
3
case
-
3
T
=
strrep
(
T
,
sprintf
(
'{a%u_mat}'
,
algo
),
'CRASH'
);
T
=
strrep
(
T
,
sprintf
(
'{a%u_mat}'
,
algo
),
'CRASH'
);
% matlab crash
otherwise
otherwise
T
=
strrep
(
T
,
sprintf
(
'{a%u_mat}'
,
algo
),
int2str
(
MATLAB_computing
(
id
(
stack_solve_algo
==
algo
),
1
)));
T
=
strrep
(
T
,
sprintf
(
'{a%u_mat}'
,
algo
),
int2str
(
MATLAB_computing
(
id
(
stack_solve_algo
==
algo
),
1
)));
end
end
...
...
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