mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-13 18:20:34 +05:00
restoring fam with old id
This commit is contained in:
parent
abe3e0bbe9
commit
1224f8cfd6
@ -17,7 +17,7 @@
|
|||||||
// License along with this library; if not, write to the Free Software
|
// License along with this library; if not, write to the Free Software
|
||||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
//
|
//
|
||||||
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
// See http://www.salome-platform.org/
|
||||||
// file : MG_ADAPT.cxx
|
// file : MG_ADAPT.cxx
|
||||||
|
|
||||||
#include "MG_ADAPT.hxx"
|
#include "MG_ADAPT.hxx"
|
||||||
@ -35,9 +35,9 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <TCollection_AsciiString.hxx>
|
#include <TCollection_AsciiString.hxx>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
|
#include <cstdlib>
|
||||||
#include <boost/filesystem.hpp>
|
#include <boost/filesystem.hpp>
|
||||||
|
|
||||||
|
|
||||||
static std::string removeFile(std::string fileName, int& notOk)
|
static std::string removeFile(std::string fileName, int& notOk)
|
||||||
{
|
{
|
||||||
std::string errStr;
|
std::string errStr;
|
||||||
@ -1226,7 +1226,8 @@ void MgAdapt::restorefams(MEDCoupling::MEDFileMesh* fileMesh) const
|
|||||||
{
|
{
|
||||||
try // safety : FAMILY could be lost P2-->P1
|
try // safety : FAMILY could be lost P2-->P1
|
||||||
{
|
{
|
||||||
std::string givenFamNameFromMeshGemConverter = fileMesh->getFamilyNameGivenId( fIt->_famId );
|
std::string givenFamNameFromMeshGemConverter = fileMesh->getFamilyNameGivenId( std::abs(fIt->_famId) );
|
||||||
|
fileMesh->changeFamilyId(std::abs(fIt->_famId), fIt->_famId);
|
||||||
fileMesh->changeFamilyName(givenFamNameFromMeshGemConverter, fIt->_famName);
|
fileMesh->changeFamilyName(givenFamNameFromMeshGemConverter, fIt->_famName);
|
||||||
}
|
}
|
||||||
catch (const std::exception& e)
|
catch (const std::exception& e)
|
||||||
|
@ -14,9 +14,7 @@
|
|||||||
// License along with this library; if not, write to the Free Software
|
// License along with this library; if not, write to the Free Software
|
||||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
//
|
//
|
||||||
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
// See http://www.salome-platform.org/
|
||||||
//
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// File : MG_ADAPT.hxx
|
// File : MG_ADAPT.hxx
|
||||||
//
|
//
|
||||||
@ -112,7 +110,7 @@ public :
|
|||||||
|
|
||||||
class MgAdapt
|
class MgAdapt
|
||||||
{
|
{
|
||||||
enum YesNo {YES, NO};
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
MgAdapt();
|
MgAdapt();
|
||||||
|
Loading…
Reference in New Issue
Block a user