X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHOMARD%2FHOMARD_DriverTools.cxx;h=a41217d2fd203b43b3be3444ef9ce99fd8e3b701;hb=d8149e0ddc7f1c02ec2325ff848dfa6dd9245b86;hp=dadfffa04f64f5e2fd4db57f059aedd360e4d52f;hpb=7cc10462f437d6dfadfec62ede7af7e1a53bd520;p=modules%2Fhomard.git diff --git a/src/HOMARD/HOMARD_DriverTools.cxx b/src/HOMARD/HOMARD_DriverTools.cxx index dadfffa0..a41217d2 100644 --- a/src/HOMARD/HOMARD_DriverTools.cxx +++ b/src/HOMARD/HOMARD_DriverTools.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2011-2015 CEA/DEN, EDF R&D +// Copyright (C) 2011-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 @@ -303,10 +303,14 @@ namespace HOMARD os << separator() << BoundaryType ; os << separator() << boundary.GetCaseCreation() ; - if ( BoundaryType == 0 ) + if ( BoundaryType == -1 ) + { + os << separator() << boundary.GetDataFile(); + } + else if ( BoundaryType == 0 ) { os << separator() << boundary.GetMeshName(); - os << separator() << boundary.GetMeshFile(); + os << separator() << boundary.GetDataFile(); } else { std::vector coor = boundary.GetCoords() ; @@ -744,12 +748,20 @@ namespace HOMARD // Si analytique, les coordonnees des frontieres : le nombre depend du type // Si discret, le maillage + // Si CAO, la géométrie int lgcoords ; - if ( BoundaryType == 1 ) { lgcoords = 7 ; } + if ( BoundaryType == -1 ) { lgcoords = -1 ; } + else if ( BoundaryType == 1 ) { lgcoords = 7 ; } else if ( BoundaryType == 2 ) { lgcoords = 4 ; } else { lgcoords = 0 ; } // - if ( lgcoords == 0 ) + if ( lgcoords == -1 ) + { + chunk = getNextChunk( stream, start, ok ); + if ( !ok ) return false; + boundary.SetDataFile( chunk.c_str() ); + } + else if ( lgcoords == 0 ) { chunk = getNextChunk( stream, start, ok ); if ( !ok ) return false; @@ -757,7 +769,7 @@ namespace HOMARD chunk = getNextChunk( stream, start, ok ); if ( !ok ) return false; - boundary.SetMeshFile( chunk.c_str() ); + boundary.SetDataFile( chunk.c_str() ); } else { std::vector coords;