mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-04-15 21:21:21 +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;
|
HDFgroup* aSubSubGroup;
|
||||||
hdf_size aSize[ 1 ];
|
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
|
// MED writer to be used by storage process
|
||||||
DriverMED_W_SMESHDS_Mesh myWriter;
|
DriverMED_W_SMESHDS_Mesh myWriter;
|
||||||
myWriter.SetFile( meshfile.ToCString() );
|
myWriter.SetFile( meshfile.ToCString() );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user