-// Copyright (C) 2011-2013 CEA/DEN, EDF R&D
+// Copyright (C) 2011-2022 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
// License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+
// Remarques :
// L'ordre de description des fonctions est le meme dans tous les fichiers
// HOMARD_aaaa.idl, HOMARD_aaaa.hxx, HOMARD_aaaa.cxx, HOMARD_aaaa_i.hxx, HOMARD_aaaa_i.cxx :
return CORBA::Long( myHomardYACS->GetType() );
}
//=============================================================================
+//=============================================================================
+// Caracteristiques de la convergence
+//=============================================================================
+//=============================================================================
+void HOMARD_YACS_i::SetMaxIter( CORBA::Long MaxIter )
+{
+ ASSERT( myHomardYACS );
+ myHomardYACS->SetMaxIter( MaxIter );
+}
+//=============================================================================
+CORBA::Long HOMARD_YACS_i::GetMaxIter()
+{
+ ASSERT( myHomardYACS );
+ return CORBA::Long( myHomardYACS->GetMaxIter() );
+}
+//=============================================================================
+void HOMARD_YACS_i::SetMaxNode( CORBA::Long MaxNode )
+{
+ ASSERT( myHomardYACS );
+ myHomardYACS->SetMaxNode( MaxNode );
+}
+//=============================================================================
+CORBA::Long HOMARD_YACS_i::GetMaxNode()
+{
+ ASSERT( myHomardYACS );
+ return CORBA::Long( myHomardYACS->GetMaxNode() );
+}
+//=============================================================================
+void HOMARD_YACS_i::SetMaxElem( CORBA::Long MaxElem )
+{
+ ASSERT( myHomardYACS );
+ myHomardYACS->SetMaxElem( MaxElem );
+}
+//=============================================================================
+CORBA::Long HOMARD_YACS_i::GetMaxElem()
+{
+ ASSERT( myHomardYACS );
+ return CORBA::Long( myHomardYACS->GetMaxElem() );
+}
+//=============================================================================
+void HOMARD_YACS_i::SetTestConvergence( CORBA::Long TypeTest, CORBA::Double VRef)
+{
+ ASSERT( myHomardYACS );
+ myHomardYACS->SetTestConvergence( TypeTest, VRef );
+}
+//=============================================================================
+CORBA::Long HOMARD_YACS_i::GetTestConvergenceType()
+{
+ ASSERT( myHomardYACS );
+ return CORBA::Long( myHomardYACS->GetTestConvergenceType() );
+}
+//=============================================================================
+CORBA::Double HOMARD_YACS_i::GetTestConvergenceVRef()
+{
+ ASSERT( myHomardYACS );
+ return CORBA::Long( myHomardYACS->GetTestConvergenceVRef() );
+}
+//=============================================================================
+//=============================================================================
+// Repertoire et fichiers
+//=============================================================================
+//=============================================================================
void HOMARD_YACS_i::SetDirName( const char* NomDir )
{
ASSERT( myHomardYACS );
return CORBA::string_dup( myHomardYACS->GetScriptFile().c_str() );
}
//=============================================================================
+void HOMARD_YACS_i::SetXMLFile( const char* XMLFile )
+{
+ ASSERT( myHomardYACS );
+ MESSAGE ( "SetXMLFile : SetXMLFile = " << XMLFile );
+ myHomardYACS->SetXMLFile( XMLFile );
+}
+//=============================================================================
+char* HOMARD_YACS_i::GetXMLFile()
+{
+ ASSERT( myHomardYACS );
+ return CORBA::string_dup( myHomardYACS->GetXMLFile().c_str() );
+}
+//=============================================================================
//=============================================================================
// Liens avec les autres structures
//=============================================================================
//=============================================================================
CORBA::Long HOMARD_YACS_i::Write()
{
- MESSAGE ( "Write : ecriture du schema");
//
char* nomYACS = GetName() ;
return _gen_i->YACSWrite(nomYACS) ;
}
//=============================================================================
-CORBA::Long HOMARD_YACS_i::WriteOnFile( const char* YACSFile )
+CORBA::Long HOMARD_YACS_i::WriteOnFile( const char* XMLFile )
{
- MESSAGE ( "WriteOnFile : ecriture du schema sur " << YACSFile );
+ MESSAGE ( "WriteOnFile : ecriture du schema sur " << XMLFile );
ASSERT( myHomardYACS );
//
+// Memorisation du fichier associe
+ SetXMLFile( XMLFile ) ;
+//
// Nom du schema
char* nomYACS = GetName() ;
- MESSAGE ( "WriteOnFile : ecriture du schema " << nomYACS);
- return _gen_i->YACSWriteOnFile(nomYACS, YACSFile) ;
+ return _gen_i->YACSWriteOnFile(nomYACS, XMLFile) ;
}
//=============================================================================
//=============================================================================