Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
AlephKappa.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/* AlephKappa.h (C) 2012 */
9/* */
10/*---------------------------------------------------------------------------*/
11#ifndef ALEPH_KAPPA_H
12#define ALEPH_KAPPA_H
13
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17namespace Arcane
18{
19
20/*---------------------------------------------------------------------------*/
21/*---------------------------------------------------------------------------*/
22class AlephKernel;
23class AlephFactory;
24
25class AlephKappaService
26: public AbstractService
27, public IDirectExecution
28{
29 public:
30
31 AlephKappaService(const ServiceBuildInfo& sbi);
32 ~AlephKappaService();
33 virtual void build(void) {}
34
35 public:
36
38 virtual void execute(void);
40 virtual bool isActive(void) const { return true; }
41 virtual void setParallelMng(IParallelMng* wpm) { m_world_parallel = wpm; }
42
43 private:
44
45 AlephKernel* m_kernel;
46 IApplication* m_application;
47 IParallelMng* m_world_parallel;
48 Integer m_world_rank;
49 Integer m_size;
50 Integer m_world_size;
51 AlephFactory* m_factory;
52 Integer m_underlying_solver;
53 Integer m_solver_size;
54 bool m_reorder;
55};
56
57/*---------------------------------------------------------------------------*/
58/*---------------------------------------------------------------------------*/
59
60} // namespace Arcane
61
62/*---------------------------------------------------------------------------*/
63/*---------------------------------------------------------------------------*/
64
65#endif
AbstractService(const ServiceBuildInfo &)
Constructor from a ServiceBuildInfo.
virtual bool isActive(void) const
True if the service is active.
Definition AlephKappa.h:40
virtual void build(void)
Build-level construction of the service.
Definition AlephKappa.h:33
virtual void setParallelMng(IParallelMng *wpm)
Positions the associated parallelism manager. This method must be called before execute().
Definition AlephKappa.h:41
virtual void execute(void)
Executes the service operation.
Definition AlephKappa.cc:79
Application interface.
Interface of a direct execution service.
Interface of the parallelism manager for a subdomain.
Structure containing the information to create a service.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
Int32 Integer
Type representing an integer.