Arcane  4.1.12.0
User documentation
Loading...
Searching...
No Matches
GeneralHelp.cc
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2026 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
4// See the top-level COPYRIGHT file for details.
5// SPDX-License-Identifier: Apache-2.0
6//-----------------------------------------------------------------------------
7/*---------------------------------------------------------------------------*/
8/* GeneralHelp.cc (C) 2000-2025 */
9/* */
10/* Class managing the generic help message. */
11/*---------------------------------------------------------------------------*/
12
13#include "arcane/launcher/GeneralHelp.h"
14
15#include "arcane/core/ApplicationBuildInfo.h"
16
17#include "arcane/impl/ArcaneMain.h"
18
19#include "arcane/utils/ApplicationInfo.h"
20#include "arcane/utils/CommandLineArguments.h"
21
22/*---------------------------------------------------------------------------*/
23/*---------------------------------------------------------------------------*/
24
25namespace Arcane
26{
27
28/*---------------------------------------------------------------------------*/
29/*---------------------------------------------------------------------------*/
30
31void GeneralHelp::
32printHelp()
33{
34 ApplicationInfo& infos = ArcaneMain::defaultApplicationInfo();
35 const CommandLineArguments& args = infos.commandLineArguments();
36
37 std::cout << infos.codeName() << " v" << infos.codeVersion() << std::endl;
38 std::cout << std::endl;
39 std::cout << "Usage:" << std::endl;
40 std::cout << " " << *args.commandLineArgv()[0] << " [OPTIONS] dataset.arc" << std::endl;
41 std::cout << std::endl;
42 std::cout << "General options:" << std::endl;
43 std::cout << " -h, --help Give this help list" << std::endl;
44 std::cout << std::endl;
45 std::cout << "Arcane option usage: -A,Option1=Value,Option2=Value" << std::endl;
46 std::cout << " and/or" << std::endl;
47 std::cout << " -A,Option1=Value -A,Option2=Value" << std::endl;
48 std::cout << std::endl;
49 std::cout << "Arcane options:" << std::endl;
50 std::cout << " -A,T=<Int32> Number of concurrent tasks to execute (default=1)" << std::endl;
51 std::cout << " -A,S=<Int32> Number of subdomains in shared memory" << std::endl;
52 std::cout << " -A,R=<Int32> Number of replicated subdomains (default=1)" << std::endl;
53 std::cout << " -A,P=<Int32> Number of processes to use for subdomains. This value is normally calculated automatically based on MPI parameters. It is only useful if you wish to use fewer processes for domain partitioning than those allocated for computation." << std::endl;
54 std::cout << " -A,AcceleratorRuntime=<String> Accelerator runtime to use. The two possible values are cuda or hip. Arcane must be compiled with accelerator support for this option to be accessible. " << std::endl;
55 std::cout << " -A,MaxIteration=<VALUE> Maximum number of iterations to perform for the execution. If the number of iterations specified by this variable is reached, the calculation stops." << std::endl;
56}
57
58/*---------------------------------------------------------------------------*/
59/*---------------------------------------------------------------------------*/
60
61} // namespace Arcane
62
63/*---------------------------------------------------------------------------*/
64/*---------------------------------------------------------------------------*/
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --