Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
DirectExecutionFunctor.h
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/* DirectExecutionFunctor.h (C) 2000-2022 */
9/* */
10/* Functor for direct execution. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_LAUNCHER_INTERNAL_DIRECTEXECUTIONFUNCTOR_H
13#define ARCANE_LAUNCHER_INTERNAL_DIRECTEXECUTIONFUNCTOR_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17#include "arcane/launcher/LauncherGlobal.h"
18
19/*---------------------------------------------------------------------------*/
20/*---------------------------------------------------------------------------*/
21
22namespace Arcane
23{
24
25/*---------------------------------------------------------------------------*/
26/*---------------------------------------------------------------------------*/
27
28class ARCANE_LAUNCHER_EXPORT IDirectExecutionFunctor
29{
30 public:
31
33 {
34 }
35
36 virtual int execute(DirectExecutionContext*)
37 {
38 return (-1);
39 }
40};
41
42/*---------------------------------------------------------------------------*/
43/*---------------------------------------------------------------------------*/
44
45class ARCANE_LAUNCHER_EXPORT IDirectSubDomainExecutionFunctor
46{
47 public:
48
50 {
51 }
52
53 virtual int execute(DirectSubDomainExecutionContext*)
54 {
55 return (-1);
56 }
57};
58
59/*---------------------------------------------------------------------------*/
60/*---------------------------------------------------------------------------*/
61
62class ARCANE_LAUNCHER_EXPORT DirectExecutionWrapper
63{
64 public:
65
66 static int run(IDirectExecutionFunctor*);
67 static int run(IDirectSubDomainExecutionFunctor*);
68 static int run();
69};
70
71/*---------------------------------------------------------------------------*/
72/*---------------------------------------------------------------------------*/
73
74} // End namespace Arcane
75
76/*---------------------------------------------------------------------------*/
77/*---------------------------------------------------------------------------*/
78
79#endif
Direct execution context with subdomain creation.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --