14#include "arcane/std/internal/BasicReaderWriter.h"
16#include "arcane/utils/FatalErrorException.h"
17#include "arcane/utils/StringBuilder.h"
18#include "arcane/utils/ValueConvert.h"
20#include "arcane/core/IParallelMng.h"
21#include "arcane/core/ServiceBuilder.h"
22#include "arcane/core/ItemGroup.h"
23#include "arcane/core/ISerializedData.h"
35String BasicReaderWriterCommon::
38 return "ArcaneCheckpointRestartDataBase";
41String BasicReaderWriterCommon::
42_getOwnMetatadaFile(
const String& path,
Int32 rank)
44 StringBuilder filename = path;
45 filename +=
"/own_metadata_";
51String BasicReaderWriterCommon::
52_getArcaneDBFile(
const String& path,
Int32 rank)
54 StringBuilder filename = path;
55 filename +=
"/arcane_db_n";
61String BasicReaderWriterCommon::
62_getBasicVariableFile(
Int32 version,
const String& path,
Int32 rank)
65 return _getArcaneDBFile(path, rank);
67 StringBuilder filename = path;
68 filename +=
"/var___MAIN___";
74String BasicReaderWriterCommon::
75_getBasicGroupFile(
const String& path,
const String& name,
Int32 rank)
77 StringBuilder filename = path;
78 filename +=
"/group_";
86Ref<IDataCompressor> BasicReaderWriterCommon::
87_createDeflater(IApplication* app,
const String& name)
89 ServiceBuilder<IDataCompressor> sf(app);
90 Ref<IDataCompressor> bc = sf.createReference(app, name);
94Ref<IHashAlgorithm> BasicReaderWriterCommon::
95_createHashAlgorithm(IApplication* app,
const String& name)
97 ServiceBuilder<IHashAlgorithm> sf(app);
98 Ref<IHashAlgorithm> bc = sf.createReference(app, name);
102void BasicReaderWriterCommon::
103_fillUniqueIds(
const ItemGroup& group, Array<Int64>& uids)
105 MeshUtils::fillUniqueIds(group.view(),uids);
111String BasicReaderWriterCommon::
112_getMetaDataFileName(
Int32 rank)
const
114 StringBuilder filename = m_path;
115 filename +=
"/metadata";
125BasicReaderWriterCommon::
126BasicReaderWriterCommon(IApplication* app, IParallelMng* pm,
127 const String& path, eOpenMode open_mode)
128: TraceAccessor(pm->traceMng())
131, m_open_mode(open_mode)
Fonctions utilitaires sur le maillage.
Lecteur des fichiers de maillage via la bibliothèque LIMA.