8#include <gtest/gtest.h>
10#include "arcane/cartesianmesh/v2/CartesianTypes.h"
11#include "arcane/cartesianmesh/v2/CartesianGrid.h"
12#include "arcane/cartesianmesh/v2/CartesianNumbering.h"
20using namespace Arcane::CartesianMesh::V2;
24template <
typename IdType>
25void test_CartesianNumbering(
const IdType (&
nitem)[3], Integer dimension,
36 for (Integer
dir = 0;
dir < dimension; ++
dir) {
42 for (Integer
dir = dimension;
dir < 3; ++
dir) {
106 ASSERT_EQ(
idd[0], i) <<
"(A) Incorrect current I index";
121 for (Integer
dir = 0;
dir < dimension; ++
dir) {
149 std::cout <<
"TEST_CARTESIANMESHV2 LocalIdType for dimension=2\n";
154 std::cout <<
"TEST_CARTESIANMESHV2 LocalIdType for dimension=3\n";
159 std::cout <<
"TEST_CARTESIANMESHV2 UniqueIdType for dimension=2\n";
165 std::cout <<
"TEST_CARTESIANMESHV2 UniqueIdType for dimension=3\n";
175template <
typename IdType>
176void test_CartesianGrid(
const IdType (&
ncell)[3], Integer dimension,
186 for (Integer
dir = 0;
dir < dimension; ++
dir) {
193 for (Integer
dir = 0;
dir < dimension; ++
dir) {
233 for (Integer
dir = 0;
dir < dimension; ++
dir) {
247 for (Integer
dir = 0;
dir < dimension; ++
dir) {
266 std::cout <<
"TEST_CARTESIANMESHV2_CARTESIANGRID LocalIdType for dimension=2\n";
271 std::cout <<
"TEST_CARTESIANMESHV2_CARTESIANGRID LocalIdType for dimension=3\n";
276 std::cout <<
"TEST_CARTESIANMESHV2_CARTESIANGRID UniqueIdType for dimension=2\n";
281 std::cout <<
"TEST_CARTESIANMESHV2_CARTESIANGRID UniqueIdType for dimension=3\n";
Encapsulation d'une grille cartesienne avec les mailles, noeuds, faces d'une dimension au plus 3.
Gestion d'une numerotation cartesienne sur une grille d'items d'une dimension au plus 3 Permet le pas...
Lecteur des fichiers de maillage via la bibliothèque LIMA.
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
Int64 UniqueIdType
Type des entiers utilisés pour stocker les identifiants uniques (globaux) des entités.
Int32 Integer
Type représentant un entier.