TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Connectivite_som_elem.h
1/****************************************************************************
2* Copyright (c) 2024, CEA
3* All rights reserved.
4*
5* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
6* 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
7* 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
8* 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
9*
10* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
11* IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
12* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
13*
14*****************************************************************************/
15
16#ifndef Connectivite_som_elem_H_INCLU
17#define Connectivite_som_elem_H_INCLU
18
19#include <TRUSTTabs_forward.h>
20
21template <typename _SIZE_>
23
24// We do not differentiate here _SIZE_ and _TYPE_ because those functions all work with entity indices.
25// So we are either manipulating IntTab or BigTIDTab, nothing in between.
26template <typename _SIZE_>
27void construire_connectivite_som_elem(const _SIZE_ nb_sommets, const IntTab_T<_SIZE_>& les_elems, Static_Int_Lists_32_64<_SIZE_>& som_elem, bool include_virtual);
28
29template <typename _SIZE_>
30void find_adjacent_elements(const Static_Int_Lists_32_64<_SIZE_>& som_elem, const SmallArrOfTID_T<_SIZE_>& sommets_to_find, SmallArrOfTID_T<_SIZE_>& elements);
31
32#endif
Cette classe permet de stocker des listes d'entiers accessibles en temps constant.