[io] change the name of output
@@ -249,15 +249,15 @@ class GlobalFrictionContactTrace(GlobalFrictionContact):
# print(problem, type(problem))
-
solver_maxiter=SO.iparam[0]
n_format_string=len(str(solver_maxiter))
- format_string = "{0}-i{1:0"+str(n_format_string)+"d}-{2}-{3}.hdf5"
+ format_string = "{0}-ndof-{1}-nc-{2}-{3}.hdf5"
+
filename = format_string.format(self._params._fileName,
- SO.iparam[N.SICONOS_IPARAM_ITER_DONE],
+ problem.q.shape[0],
problem.numberOfContacts,
self._counter)
-
+ print(filename)
if os.path.exists(filename):
os.remove(filename)
print('WARNING: file '+filename+ ' was existing and has been replaced')
