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
20using namespace Arcane;
21
22/*---------------------------------------------------------------------------*/
23/*---------------------------------------------------------------------------*/
24
25int
26_mainHelper(int argc,char* argv[])
27{
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
43int
44main(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/*---------------------------------------------------------------------------*/
Informations sur une application.
static int run()
Point d'entrée de l'exécutable dans Arcane.
static ApplicationInfo & defaultApplicationInfo()
Infos par défaut de l'application.
Arguments de la ligne de commande.
Lecteur des fichiers de maillage via la bibliothèque LIMA.
Definition Lima.cc:120
Informations sur une version.
Definition VersionInfo.h:46
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
Integer arcaneCallFunctionAndCatchException(std::function< void()> function)