Arcane  4.1.15.0
Developer documentation
Loading...
Searching...
No Matches
LimaMalipp2.cc
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2026 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/* LimaUtils.cc (C) 2000-2026 */
9/* */
10/* Lima reader for 'mli2' format. */
11/*---------------------------------------------------------------------------*/
12
13#include "arcane/lima/internal/LimaUtils.h"
14
15#include "arcane/lima/internal/LimaMalippT.h"
16
17#ifdef ARCANE_LIMA_HAS_MLI2
18#include <Lima/malipp2.h>
19#endif
20
21/*---------------------------------------------------------------------------*/
22/*---------------------------------------------------------------------------*/
23
24namespace Arcane
25{
26
27/*---------------------------------------------------------------------------*/
28/*---------------------------------------------------------------------------*/
29
31_directLimaPartitionMalipp2(ITimerMng* timer_mng, IPrimaryMesh* mesh,
32 const String& filename, Real length_multiplier)
33{
34#ifdef ARCANE_LIMA_HAS_MLI2
35 LimaMalippReader<Lima::MaliPPReader2> reader(mesh->traceMng());
36 auto rt = reader.readMeshFromFile(timer_mng, mesh, filename, length_multiplier);
37 return rt;
38#else
39 ARCANE_UNUSED(timer_mng);
40 ARCANE_UNUSED(mesh);
41 ARCANE_UNUSED(filename);
42 ARCANE_UNUSED(length_multiplier);
44#endif
45}
46
47/*---------------------------------------------------------------------------*/
48/*---------------------------------------------------------------------------*/
49
50} // namespace Arcane
51
52/*---------------------------------------------------------------------------*/
53/*---------------------------------------------------------------------------*/
eReturnType
Types of return codes for a read or write operation.
Definition IMeshReader.h:38
@ RTIrrelevant
Not relevant to the operation. This means that the file format does not match this reader or that the...
Definition IMeshReader.h:46
Interface of a timer manager.
Definition ITimerMng.h:50
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
double Real
Type representing a real number.