Arcane  v3.14.10.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
AlephTest.h
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/* AlephTest.h (C) 2011 */
9/* */
10/*---------------------------------------------------------------------------*/
11#ifndef ALEPH_TEST_H
12#define ALEPH_TEST_H
13
14#include <set>
15
16#include "arcane/utils/ArcanePrecomp.h"
18#include "arcane/utils/OStringStream.h"
19#include "arcane/utils/TraceAccessor.h"
20
21#include "arcane/IMesh.h"
22#include "arcane/IMeshUtilities.h"
23#include "arcane/IMeshModifier.h"
24#include "arcane/ITiedInterface.h"
25#include "arcane/IItemFamily.h"
26#include "arcane/ITimeLoopMng.h"
27#include "arcane/ItemPairGroup.h"
28#include "arcane/ItemArrayEnumerator.h"
29#include "arcane/ItemPairEnumerator.h"
30#include "arcane/IParallelMng.h"
31#include "arcane/CommonVariables.h"
32#include "arcane/BasicModule.h"
33#include "arcane/SharedVariable.h"
34
35#include "arcane/mesh/DynamicMesh.h"
36#include "arcane/mesh/ItemRefinement.h"
37#include "arcane/mesh/MeshRefinement.h"
38#include "arcane/mesh/FaceReorienter.h"
39
40#include "arcane/aleph/AlephTypesSolver.h"
41#include "arcane/aleph/AlephArcane.h"
42
43#include "arcane/aleph/IAleph.h"
44#include "arcane/aleph/IAlephFactory.h"
45
46#include "arcane/tests/ArcaneTestGlobal.h"
47
48#define ARCANE_ENABLE_AMR
49#ifdef ARCANE_ENABLE_AMR
50
51#define MESH_ALL_ACTIVE_CELLS(mesh) mesh->allActiveCells()
52#define MESH_OWN_ACTIVE_CELLS(mesh) mesh->ownActiveCells()
53#define CELL_NB_H_CHILDREN(iCell) iCell.nbHChildren()
54#define CELL_HAS_H_CHILDREN(iCell) iCell.hasHChildren()
55#define CELL_H_CHILD(iCell, j) iCell.hChild(j).toCell()
56#define CELL_H_PARENT(iCell) iCell.hParent()
57#define INNER_ACTIVE_FACE_GROUP(cells) cells.innerActiveFaceGroup()
58#define OUTER_ACTIVE_FACE_GROUP(cells) cells.outerActiveFaceGroup()
59#define MESH_MODIFIER_REFINE_ITEMS(mesh) mesh->modifier()->refineItems()
60#define MESH_MODIFIER_CORSEN_ITEMS(mesh) mesh->modifier()->coarsenItems()
61
62#else /* ARCANE_ENABLE_AMR */
63
64#define MESH_ALL_ACTIVE_CELLS(mesh) mesh->allCells()
65#define MESH_OWN_ACTIVE_CELLS(mesh) mesh->ownCells()
66#define CELL_NB_H_CHILDREN(iCell) 0
67#define CELL_HAS_H_CHILDREN(iCell) false
68#define CELL_H_CHILD(iCell, j) (*iCell)
69#define CELL_H_PARENT(iCell) (*iCell)
70#define INNER_ACTIVE_FACE_GROUP(cells) cells.innerFaceGroup()
71#define OUTER_ACTIVE_FACE_GROUP(cells) cells.outerFaceGroup()
72#define MESH_MODIFIER_REFINE_ITEMS(mesh)
73#define MESH_MODIFIER_COARSEN_ITEMS(mesh)
74
75#endif /* ARCANE_ENABLE_AMR */
76
77#define ECART_RELATIF(T0, T1) (math::abs((T0 - T1) / (T0 + T1)))
78
79#include "arcane/aleph/tests/AlephTestScheme.h"
80//#include "arcane/aleph/tests/AlephTestSchemeFaces.h"
81#include "arcane/aleph/tests/AlephTestModule.h"
82
83#endif // ALEPH_TEST_H
Fichier de configuration d'Arcane.