Debian Codegraph @

tests/parallel/pct_mhblocks_2.mod

raw
1 /*
2 * Runs a parallel estimation with 2 Metropolis-Hastings blocks using the local cluster (parpool).
3 */
4
5 /*
6 * Copyright © 2026 Dynare Team
7 *
8 * This file is part of Dynare.
9 *
10 * Dynare is free software: you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation, either version 3 of the License, or
13 * (at your option) any later version.
14 *
15 * Dynare is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License
21 * along with Dynare. If not, see <https://www.gnu.org/licenses/>.
22 */
23
24 @#include "folder/endovars.mod"
25 @#include "_ls2003.inc"
26
27 @#define MH_NBLOCKS = 2
28 @#define DIRNAME = "pct_mhblocks_" + ((string) MH_NBLOCKS)
29
30 if ~isoctave && matlab.internal.parallel.isPCTInstalled
31 delete(gcp('nocreate')); % make sure no parallel pool is open
32 parpool('local'); % open pool
33 @#include "_estimation_commands_with_different_seeds.inc"
34 end