mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-28 02:00:33 +05:00
BugID 11225, added a removal of the files which have to be created
This commit is contained in:
parent
3c35657d6f
commit
7957f9e2e8
@ -1128,6 +1128,15 @@ SALOMEDS::TMPFile* SMESH_Gen_i::Save( SALOMEDS::SComponent_ptr theComponent,
|
||||
HDFgroup* aSubSubGroup;
|
||||
hdf_size aSize[ 1 ];
|
||||
|
||||
|
||||
//Remove the files if they exist: BugID: 11225
|
||||
TCollection_AsciiString cmd("rm -f \"");
|
||||
cmd+=filename;
|
||||
cmd+="\" \"";
|
||||
cmd+=meshfile;
|
||||
cmd+="\"";
|
||||
system(cmd.ToCString());
|
||||
|
||||
// MED writer to be used by storage process
|
||||
DriverMED_W_SMESHDS_Mesh myWriter;
|
||||
myWriter.SetFile( meshfile.ToCString() );
|
||||
@ -1136,7 +1145,7 @@ SALOMEDS::TMPFile* SMESH_Gen_i::Save( SALOMEDS::SComponent_ptr theComponent,
|
||||
// ---> create HDF file
|
||||
aFile = new HDFfile( filename.ToCString() );
|
||||
aFile->CreateOnDisk();
|
||||
|
||||
|
||||
// --> iterator for top-level objects
|
||||
SALOMEDS::ChildIterator_var itBig = myCurrentStudy->NewChildIterator( theComponent );
|
||||
for ( ; itBig->More(); itBig->Next() ) {
|
||||
|
Loading…
Reference in New Issue
Block a user