X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHOMARD%2FHOMARD_Boundary.cxx;h=eb431c4b6be9f82875918a648276c707d08a9118;hb=refs%2Ftags%2FV9_13_0b1;hp=48dd23f52453cb2c0391c3204b56333948ea24d7;hpb=2c82da385bf3d7b6a045dfe7620d4b9bdc154fe6;p=modules%2Fhomard.git diff --git a/src/HOMARD/HOMARD_Boundary.cxx b/src/HOMARD/HOMARD_Boundary.cxx index 48dd23f5..eb431c4b 100644 --- a/src/HOMARD/HOMARD_Boundary.cxx +++ b/src/HOMARD/HOMARD_Boundary.cxx @@ -1,6 +1,6 @@ // HOMARD HOMARD : implementation of HOMARD idl descriptions // -// Copyright (C) 2011-2016 CEA/DEN, EDF R&D +// Copyright (C) 2011-2024 CEA, EDF // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -77,12 +77,19 @@ std::string HOMARD_Boundary::GetDumpPython() const // switch (_Type) { + case -1: + { + aScript << "CAO boundary " << _Name << "\n"; + aScript << "\t" << _Name << " = homard.CreateBoundaryCAO(\"" << _Name << "\", "; + aScript << "\"" << _DataFile << "\")\n"; + break ; + } case 0: { aScript << "discrete boundary " << _Name << "\n"; aScript << "\t" << _Name << " = homard.CreateBoundaryDi(\"" << _Name << "\", "; aScript << "\"" << _MeshName << "\", "; - aScript << "\"" << _MeshFile << "\")\n"; + aScript << "\"" << _DataFile << "\")\n"; break ; } case 1: @@ -149,14 +156,14 @@ std::string HOMARD_Boundary::GetMeshName() const return _MeshName; } //============================================================================= -void HOMARD_Boundary::SetMeshFile( const char* MeshFile ) +void HOMARD_Boundary::SetDataFile( const char* DataFile ) { - _MeshFile = std::string( MeshFile ); + _DataFile = std::string( DataFile ); } //============================================================================= -std::string HOMARD_Boundary::GetMeshFile() const +std::string HOMARD_Boundary::GetDataFile() const { - return _MeshFile; + return _DataFile; } //======================================================================================= void HOMARD_Boundary::SetCylinder( double X0, double X1, double X2,