TRUST 1.9.8
HPC thermohydraulic platform
Loading...
Searching...
No Matches
TRUSTProblem_List_Concentration_Gen.h
1/****************************************************************************
2* Copyright (c) 2025, 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 TRUSTProblem_List_Concentration_Gen_included
17#define TRUSTProblem_List_Concentration_Gen_included
18
19#include <TRUSTProblem_Concentration_Gen.h>
20
21template <typename _DERIVED_TYPE_, typename _EQUATION_TYPE_ = Convection_Diffusion_Concentration, typename _MEDIUM_TYPE_ = Constituant>
22class TRUSTProblem_List_Concentration_Gen : public TRUSTProblem_Concentration_Gen<_DERIVED_TYPE_, _EQUATION_TYPE_, _MEDIUM_TYPE_>
23{
24protected:
26
27 int duplique() const override
28 {
29#ifdef TRUST_USE_GPU
30 // PL: I am stupid, can't fix C++20 build...
31 Process::exit("Not supported yet on GPU.");
32 return -1;
33#else
35 if (!xxx) Process::exit("Not enough memory !!!");
36 return xxx->numero();
37#endif
38 }
39
40 Entree& readOn(Entree& is) override { return _DERIVED_TYPE_::readOn(is); }
42 Entree& lire_equations(Entree& is, Motcle& dernier_mot) override;
43
44public:
45 void associer_milieu_base(const Milieu_base&) override;
46 int verifier() override;
47 void typer_lire_milieu(Entree& ) override;
48};
49
50#include <TRUSTProblem_List_Concentration_Gen.tpp>
51
52#endif /* TRUSTProblem_List_Concentration_Gen_included */
Class defining operators and methods for all reading operation in an input flow (file,...
Definition Entree.h:42
classe Milieu_base Cette classe est la base de la hierarchie des milieux (physiques)
Definition Milieu_base.h:50
Une chaine de caractere (Nom) en majuscules.
Definition Motcle.h:26
static void exit(int exit_code=-1)
Routine de sortie de TRUST dans une region Kokkos.
Definition Process.cpp:455
Entree & lire_equations(Entree &is, Motcle &dernier_mot) override