|
1 | 1 | // -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*- |
2 | 2 | //----------------------------------------------------------------------------- |
3 | | -// Copyright 2000-2023 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com) |
| 3 | +// Copyright 2000-2024 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com) |
4 | 4 | // See the top-level COPYRIGHT file for details. |
5 | 5 | // SPDX-License-Identifier: Apache-2.0 |
6 | 6 | //----------------------------------------------------------------------------- |
7 | 7 | /*---------------------------------------------------------------------------*/ |
8 | | -/* ArcaneLauncher.cc (C) 2000-2023 */ |
| 8 | +/* ArcaneLauncher.cc (C) 2000-2024 */ |
9 | 9 | /* */ |
10 | 10 | /* Classe gérant le lancement de l'exécution. */ |
11 | 11 | /*---------------------------------------------------------------------------*/ |
|
26 | 26 | #include "arcane/utils/ParameterList.h" |
27 | 27 | #include "arcane/utils/Ref.h" |
28 | 28 | #include "arcane/utils/ConcurrencyUtils.h" |
| 29 | +#include "arcane/utils/internal/ParallelLoopOptionsProperties.h" |
| 30 | +#include "arcane/utils/internal/ApplicationInfoProperties.h" |
29 | 31 |
|
30 | 32 | #include "arcane/impl/ArcaneMain.h" |
31 | 33 | #include "arcane/impl/ArcaneSimpleExecutor.h" |
@@ -102,7 +104,7 @@ _checkReadConfigFile(StringView config_file_name) |
102 | 104 | if (config.null()) |
103 | 105 | return; |
104 | 106 | std::cout << "READING CONFIG\n"; |
105 | | - properties::readFromJSON(config,app_info); |
| 107 | + properties::readFromJSON<ApplicationInfo,ApplicationInfoProperties>(config,app_info); |
106 | 108 | } |
107 | 109 |
|
108 | 110 | /*---------------------------------------------------------------------------*/ |
@@ -322,20 +324,22 @@ init(const CommandLineArguments& args) |
322 | 324 | if (global_has_init_done) |
323 | 325 | ARCANE_FATAL("ArcaneLauncher::init() has already been called"); |
324 | 326 | global_has_init_done = true; |
325 | | - applicationInfo().setCommandLineArguments(args); |
| 327 | + auto& application_info = applicationInfo(); |
| 328 | + application_info.setCommandLineArguments(args); |
326 | 329 | bool do_list = false; |
327 | 330 | if (do_list) |
328 | 331 | _listPropertySettings(); |
329 | 332 | const CommandLineArguments& cargs = applicationInfo().commandLineArguments(); |
330 | 333 | String runtime_config_file_name = cargs.getParameter("RuntimeConfigFile"); |
331 | 334 | if (!runtime_config_file_name.empty()) |
332 | 335 | _checkReadConfigFile(runtime_config_file_name); |
| 336 | + properties::readFromParameterList<ApplicationInfo,ApplicationInfoProperties>(args.parameters(),application_info); |
333 | 337 | auto& dotnet_info = ArcaneLauncher::dotNetRuntimeInitialisationInfo(); |
334 | 338 | properties::readFromParameterList(args.parameters(),dotnet_info); |
335 | 339 | auto& accelerator_info = ArcaneLauncher::acceleratorRuntimeInitialisationInfo(); |
336 | 340 | properties::readFromParameterList(args.parameters(),accelerator_info); |
337 | 341 | ParallelLoopOptions loop_options; |
338 | | - properties::readFromParameterList(args.parameters(),loop_options); |
| 342 | + properties::readFromParameterList<ParallelLoopOptions,ParallelLoopOptionsProperties>(args.parameters(),loop_options); |
339 | 343 | TaskFactory::setDefaultParallelLoopOptions(loop_options); |
340 | 344 | } |
341 | 345 | catch(const Exception& ex){ |
|
0 commit comments