The script setup I've used simplifies the workflow by automating the process of setting up and running these simulations from different directories without manually navigating and setting paths each time, which can be error-prone and time-consuming. (avoid having to move to the simulation folder from the TELEMAC command prompt and then copy and paste the path to the correct script to launch this line: python "C:\TELEMAC\V8P4\scripts\python3\telemac3d.py" file.cas)
The usual way is called configuration!
Once in the directory of my study, the command python telemac2d.py ... works perfectly for me
For the rest, using parallelization is an evidence to reduce computation time but understanding how parallelism works is a prerequisite!
mpiexec -n 4 program.exe will run "program.exe", a binary which had been compile to utilize MPI
mpiexec -n 4 python will just run 4 instances of python...
All telemac python scripts are designed to manage all the process in the right way... This is why there is a mpiexec step in the python execution!
In any case, my simulations are running smoothly
For sure what you're doing doesn't affect telemac itself, so simulation run well but it run 4 times... The computation time will be more or less the same as if you just run the simulation once on 1 core...
As usual, Read carefully the users manuals which clearly explain how Telemac, works, and how run parallel simulation.
Don't try to reinvent what has been done and well tested by developers!
Time is money, then if you have money, use it to fund some new functionalities in the code, everyone will win!