Welcome, Guest
Username: Password: Remember me

TOPIC: Can't export the results during the running simulation

Can't export the results during the running simulation 2 years 10 months ago #38719

  • nitesh
  • nitesh's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 73
  • Thank you received: 1
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
The administrator has disabled public write access.

Can't export the results during the running simulation 2 years 10 months ago #38727

  • nitesh
  • nitesh's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 73
  • Thank you received: 1
Hi,

It's strange that was actually getting the result file even after the terminal showed this error. :)
The administrator has disabled public write access.

Can't export the results during the running simulation 7 months 3 days ago #43455

Hi nitesh
Could you please let me know how you applied this line? should we include it in the .cas file or should I insert it in the termial?

I am looking forward to hearing from you.

Best
Maliheh
The administrator has disabled public write access.

Can't export the results during the running simulation 7 months 20 hours ago #43470

  • nitesh
  • nitesh's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 73
  • Thank you received: 1
Hi Maliheh,

You need to write this line in a new terminal.
The administrator has disabled public write access.
The following user(s) said Thank You: maliheh.etesami
Moderators: pham

The open TELEMAC-MASCARET template for Joomla!2.5, the HTML 4 version.