Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
MpiBatchMainFactory.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/* MpiBatchMainFactory.cc (C) 2000-2005 */
9/* */
10/* Parallelism manager using MPI. */
11/*---------------------------------------------------------------------------*/
12/*---------------------------------------------------------------------------*/
13
14#include "arcane/utils/ArcanePrecomp.h"
15
16#include "arcane/utils/ITraceMng.h"
17#include "arcane/utils/String.h"
18
19#include "arcane/parallel/IStat.h"
20
21#include "arcane/parallel/mpi/MpiBatchMainFactory.h"
22
23/*---------------------------------------------------------------------------*/
24/*---------------------------------------------------------------------------*/
25
26namespace Arcane
27{
28
29/*---------------------------------------------------------------------------*/
30/*---------------------------------------------------------------------------*/
31
32extern "C++" IArcaneMain*
33createArcaneMainBatch(const ApplicationInfo& app_info, IMainFactory*);
34
35/*---------------------------------------------------------------------------*/
36/*---------------------------------------------------------------------------*/
37
39createArcaneMain(const ApplicationInfo& app_info)
40{
41 return createArcaneMainBatch(app_info, this);
42}
43
45exec(const ApplicationInfo& app_info)
46{
48 int r = Arcane::ArcaneMain::arcaneMain(app_info, &pbmf);
49 return r;
50}
51
52/*---------------------------------------------------------------------------*/
53/*---------------------------------------------------------------------------*/
54
55} // namespace Arcane
56
57/*---------------------------------------------------------------------------*/
58/*---------------------------------------------------------------------------*/
Application information.
Interface of the code management class.
Definition IArcaneMain.h:55
static IArcaneMain * arcaneMain()
Factory for Arcane classes.
virtual IArcaneMain * createArcaneMain(const ApplicationInfo &app_info)
Creates an instance of IArcaneMain.
static int exec(const ApplicationInfo &app_info)
Executes the application specified by app_info using MPI as the parallelism manager.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --