-// Copyright (C) 2007-2016 CEA/DEN, EDF R&D
+// Copyright (C) 2007-2021 CEA/DEN, EDF R&D
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
-// Author : Anthony Geay (CEA/DEN)
+// Author : Anthony Geay (EDF R&D)
#include "MEDFileMeshReadSelector.hxx"
+#include "InterpKernelException.hxx"
+
+#include <sstream>
+
using namespace MEDCoupling;
-MEDFileMeshReadSelector::MEDFileMeshReadSelector():_code(0xFFFFFFFF)
+MEDFileMeshReadSelector::MEDFileMeshReadSelector():_nb_coords_load_sessions(1),_code(0xFFFFFFFF)
{
}
_code=newCode;
}
+void MEDFileMeshReadSelector::setNumberOfCoordsLoadSessions(mcIdType newNbOfCoordsLoadSessions)
+{
+ if(newNbOfCoordsLoadSessions < 1)
+ throw INTERP_KERNEL::Exception("MEDFileMeshReadSelector::setNumberOfCoordsLoadSessions : input must be >= 1 !");
+ _nb_coords_load_sessions = newNbOfCoordsLoadSessions;
+}
+
bool MEDFileMeshReadSelector::isCellFamilyFieldReading() const
{
return _code & 0x00000001;
void MEDFileMeshReadSelector::reprAll(std::ostream& str) const
{
str << "MEDFileMeshReadSelector (code=" << _code << ") : \n";
+ str << "Number of coords load part sessions : " << this->_nb_coords_load_sessions << std::endl;
str << "Read family field on cells : " << ReprStatus(isCellFamilyFieldReading()) << std::endl;
str << "Read family field on nodes : " << ReprStatus(isNodeFamilyFieldReading()) << std::endl;
str << "Read name field on cells : " << ReprStatus(isCellNameFieldReading()) << std::endl;
str << "Read name field on nodes : " << ReprStatus(isNodeNameFieldReading()) << std::endl;
str << "Read number field on cells : " << ReprStatus(isCellNumFieldReading()) << std::endl;
- str << "Read number field name on nodes : " << ReprStatus(isNodeNumFieldReading()) << std::end;
+ str << "Read number field name on nodes : " << ReprStatus(isNodeNumFieldReading()) << std::endl;
str << "Read global number field name on nodes : " << ReprStatus(isGlobalNodeNumFieldReading());
}