Hi,
I want to export the results during the simulation. I used to run this kind of line of code in v8p0:
telemac2d.py --merge -w D:\Nitesh\dist_ppt\sc35\d2.cas_2021-06-15-15h40min00s\ D:\Nitesh\dist_ppt\sc35\d2.cas
Now I am using v8p2 and this doesn't work and shows this error:
... processing the steering file
... checking parallelisation
... merging separated result files
collecting: T2DRES
+> C:\opentelemac-mascaret\v8p2\builds\wing64mpi\bin\gretel.exe < gretel_T2DRES.par >> gretel_T2DRES.log
STOP 0
... handling result files
moving: out_d41.slf
Traceback (most recent call last):
File "C:\opentelemac-mascaret\python39\lib\shutil.py", line 806, in move
os.rename(src, real_dst)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'T2DSEO' -> 'D:\\Nitesh\\sc41\\out_d41.txt'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\opentelemac-mascaret\v8p2\scripts\python3\telemac2d.py", line 7, in <module>
main('telemac2d')
File "C:\opentelemac-mascaret\v8p2\scripts\python3\runcode.py", line 271, in main
run_study(cas_file, code_name, options)
File "C:\opentelemac-mascaret\v8p2\scripts\python3\execution\run_cas.py", line 157, in run_study
run_local_cas(my_study, options)
File "C:\opentelemac-mascaret\v8p2\scripts\python3\execution\run_cas.py", line 77, in run_local_cas
my_study.gather(options.sortie_file, options.nozip)
File "C:\opentelemac-mascaret\v8p2\scripts\python3\execution\study.py", line 678, in gather
files = process_ecr(cas,
File "C:\opentelemac-mascaret\v8p2\scripts\python3\execution\process.py", line 386, in process_ecr
shutil.move(tmp_file_name, file_name)
File "C:\opentelemac-mascaret\python39\lib\shutil.py", line 827, in move
os.unlink(src)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'T2DSEO'
I don't want to stop the simulation.
This used to work before in v8p0, so I guess it can be fixed without closing the simulation terminal.
Any ideas how to fix it?
Any suggestion will be a great help.
Thanks in advance!
Nitesh