Salome HOME
projects
/
modules
/
homard.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated copyright comment
[modules/homard.git]
/
src
/
HOMARD
/
HOMARD_DriverTools.cxx
diff --git
a/src/HOMARD/HOMARD_DriverTools.cxx
b/src/HOMARD/HOMARD_DriverTools.cxx
index 72697d940b8257c2e359740b4dc43a270f8af2e5..b95893e8d2cbaa246223950c78f2e01e8d39108d 100644
(file)
--- a/
src/HOMARD/HOMARD_DriverTools.cxx
+++ b/
src/HOMARD/HOMARD_DriverTools.cxx
@@
-1,4
+1,4
@@
-// Copyright (C) 2011-20
16 CEA/DEN, EDF R&D
+// Copyright (C) 2011-20
24 CEA, EDF
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
//
// 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() ;
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.GetMeshName();
- os << separator() << boundary.Get
Mesh
File();
+ os << separator() << boundary.Get
Data
File();
}
else {
std::vector<double> coor = boundary.GetCoords() ;
}
else {
std::vector<double> 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 analytique, les coordonnees des frontieres : le nombre depend du type
// Si discret, le maillage
+ // Si CAO, la géométrie
int lgcoords ;
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 ; }
//
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;
{
chunk = getNextChunk( stream, start, ok );
if ( !ok ) return false;
@@
-757,7
+769,7
@@
namespace HOMARD
chunk = getNextChunk( stream, start, ok );
if ( !ok ) return false;
chunk = getNextChunk( stream, start, ok );
if ( !ok ) return false;
- boundary.Set
Mesh
File( chunk.c_str() );
+ boundary.Set
Data
File( chunk.c_str() );
}
else
{ std::vector<double> coords;
}
else
{ std::vector<double> coords;