Arcane  v3.14.10.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
VariableUtils.h
Aller à la documentation de ce fichier.
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2024 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/* VariableUtils.h (C) 2000-2024 */
9/* */
10/* Fonctions utilitaires diverses sur les variables. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_CORE_VARIABLEUTILS_H
13#define ARCANE_CORE_VARIABLEUTILS_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
18#include "arcane/core/materials/MaterialsCoreGlobal.h"
19
20/*---------------------------------------------------------------------------*/
21/*---------------------------------------------------------------------------*/
22
23namespace Arcane::VariableUtils
24{
25
26/*---------------------------------------------------------------------------*/
27/*---------------------------------------------------------------------------*/
38extern "C++" ARCANE_CORE_EXPORT
39void prefetchVariableAsync(IVariable* var, const RunQueue* queue_or_null);
40
45extern "C++" ARCANE_CORE_EXPORT
46void prefetchVariableAsync(VariableRef& var, const RunQueue* queue_or_null);
47
54extern "C++" ARCANE_CORE_EXPORT
55void markVariableAsMostlyReadOnly(IVariable* var);
56
61extern "C++" ARCANE_CORE_EXPORT
62void markVariableAsMostlyReadOnly(VariableRef& var);
63
68extern "C++" ARCANE_CORE_EXPORT
70
71/*---------------------------------------------------------------------------*/
72/*---------------------------------------------------------------------------*/
73
74extern "C++" ARCANE_CORE_EXPORT
75void experimentalChangeAllocator(::Arcane::Materials::IMeshMaterialVariable* var,
77
78extern "C++" ARCANE_CORE_EXPORT
79void experimentalChangeAllocator(IVariable* var, eMemoryRessource mem);
80
81extern "C++" ARCANE_CORE_EXPORT
82void experimentalChangeAllocator(VariableRef& var, eMemoryRessource mem);
83
84/*---------------------------------------------------------------------------*/
85/*---------------------------------------------------------------------------*/
86
87} // namespace Arcane::VariableUtils
88
89/*---------------------------------------------------------------------------*/
90/*---------------------------------------------------------------------------*/
91
92#endif
Déclarations des types généraux de Arcane.
void markVariableAsMostlyReadOnly(IVariable *var)
Indique que la variable est essentiellement en lecture.
void prefetchVariableAsync(IVariable *var, const RunQueue *queue_or_null)
Pré-copie la mémoire associée à la variable var.
Interface d'une variable matériau d'un maillage.
Classe de base des références aux variables matériaux.
eMemoryRessource
Liste des ressources mémoire disponibles.