Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
IAMRTransportFunctor.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/* IFunctorWithArgument.h (C) 2000-2005 */
9/* */
10/* Interface of a functor with argument. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_UTILS_IAMRTRANSPORTFUNCTOR_H
13#define ARCANE_UTILS_IAMRTRANSPORTFUNCTOR_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
18
21
22/*---------------------------------------------------------------------------*/
23/*---------------------------------------------------------------------------*/
24
25namespace Arcane
26{
27
28/*---------------------------------------------------------------------------*/
29/*---------------------------------------------------------------------------*/
30
31enum AMROperationType
32{
33 Restriction = 0,
34 Prolongation = 1
35};
36
37/*---------------------------------------------------------------------------*/
38/*---------------------------------------------------------------------------*/
39
44{
45 public:
46
49
50 public:
51
53 virtual void executeFunctor(Array<ItemInternal*>& old_items, AMROperationType op) = 0;
55 virtual void executeFunctor(Array<Cell>& old_items, AMROperationType op) = 0;
56};
57
58/*---------------------------------------------------------------------------*/
59/*---------------------------------------------------------------------------*/
60
61} // namespace Arcane
62
63/*---------------------------------------------------------------------------*/
64/*---------------------------------------------------------------------------*/
65
66#endif
Arcane configuration file.
Declarations of types on entities.
Declarations of types used in Arcane.
Base class for 1D data vectors.
Interface of a functor with argument.
virtual ~IAMRTransportFunctor()
Frees resources.
virtual void executeFunctor(Array< Cell > &old_items, AMROperationType op)=0
Executes the associated method.
virtual void executeFunctor(Array< ItemInternal * > &old_items, AMROperationType op)=0
Executes the associated method.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --