Arcane
v3.14.10.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
ArcaneDriverMain.cc
1
// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2
//-----------------------------------------------------------------------------
3
// Copyright 2000-2022 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
/* ArcaneDriverMain.cc (C) 2000-2022 */
9
/* */
10
/* Programme principal par défaut. */
11
/*---------------------------------------------------------------------------*/
12
/*---------------------------------------------------------------------------*/
13
14
#include "arcane/utils/CommandLineArguments.h"
15
#include "arcane/utils/ApplicationInfo.h"
16
#include "arcane/utils/Exception.h"
17
18
#include "arcane/impl/ArcaneMain.h"
19
20
using namespace
Arcane
;
21
22
/*---------------------------------------------------------------------------*/
23
/*---------------------------------------------------------------------------*/
24
25
int
26
_mainHelper(
int
argc,
char
* argv[])
27
{
28
ApplicationInfo
&
app_info
=
ArcaneMain::defaultApplicationInfo
();
29
app_info
.setCommandLineArguments(
CommandLineArguments
(&argc,&argv));
30
app_info
.setCodeName(
"ArcaneDriver"
);
31
app_info
.setCodeVersion(
VersionInfo
(1,0,0));
32
app_info
.addDynamicLibrary(
"arcane_mpi"
);
33
app_info
.addDynamicLibrary(
"arcane_ios"
);
34
app_info
.addDynamicLibrary(
"arcane_std"
);
35
app_info
.addDynamicLibrary(
"arcane_mesh"
);
36
app_info
.addDynamicLibrary(
"arcane_cea"
);
37
return
ArcaneMain::run
();
38
}
39
40
/*---------------------------------------------------------------------------*/
41
/*---------------------------------------------------------------------------*/
42
43
int
44
main(
int
argc,
char
* argv[])
45
{
46
int
r
= 0;
47
int
r2
=
arcaneCallFunctionAndCatchException
([&](){
r
= _mainHelper(argc,argv); });
48
if
(
r2
!=0)
49
return
r2
;
50
return
r
;
51
}
52
53
/*---------------------------------------------------------------------------*/
54
/*---------------------------------------------------------------------------*/
Arcane::ApplicationInfo
Informations sur une application.
Definition
ApplicationInfo.h:40
Arcane::ArcaneMain::run
static int run()
Point d'entrée de l'exécutable dans Arcane.
Definition
ArcaneMain.cc:956
Arcane::ArcaneMain::defaultApplicationInfo
static ApplicationInfo & defaultApplicationInfo()
Infos par défaut de l'application.
Definition
ArcaneMain.cc:811
Arcane::CommandLineArguments
Arguments de la ligne de commande.
Definition
CommandLineArguments.h:49
Arcane::LimaWrapper
Lecteur des fichiers de maillage via la bibliothèque LIMA.
Definition
Lima.cc:120
Arcane::VersionInfo
Informations sur une version.
Definition
VersionInfo.h:46
Arcane
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
Definition
AcceleratorGlobal.h:36
Arcane::arcaneCallFunctionAndCatchException
Integer arcaneCallFunctionAndCatchException(std::function< void()> function)
Definition
arcane/src/arcane/utils/Exception.cc:90
arcane
driver
ArcaneDriverMain.cc
Généré le Lundi 18 Novembre 2024 03:01:19 pour Arcane par
1.9.8