Welcome, Guest
Username: Password: Remember me

TOPIC: TELEMAC2d in batch mode

TELEMAC2d in batch mode 13 years 1 month ago #2630

  • joysanyal21
  • joysanyal21's Avatar
I would like to have some suggestion regarding running TELEMAC2d in batch mode.

I want to run telemac with number of initial conditions, Geometry and LIQ boundary files one by one. I have prepared different streering files for each run that points to the right input files. I put each set of input files in separate directories.

When I tried to launch TELEMAC2d with batch mode the program listing says job ID 1 Job ID 2 etc. created but they never start.

One example of the command I typed is like this:

telemac2d -b cas1.txt
telemac2d -b cas2.txt

I typed each command from the directory where the respective input files are. What am I doing wrong here?

Another question: the -d option is for starting telemac at a specific time of the same day, can I mention a different date along with the time of launch (say launch at 1 am --which will be the next day)

I have tried another method that seems to work for simple programs.

I put all input files (different cases) and cas files in one directory. Then in a text file I typed the commands one after another and saved the file as a '.bat' file and placed it in the current directory.

Normally if I double click on that batch files TELEMAC2d should start executing in batch mode. Is it impossible to run telemac in this manner?

Any help will be appriciated.

Cheers,

Joy
The administrator has disabled public write access.

Re: TELEMAC2d in batch mode 13 years 1 month ago #2633

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Hi
This problem had been discussed in another topic (see Launch batch).
On windows, probably none of the batch option will work corectly.
Maybe the solution will work but once again only with -s option
Hope this help
Christophe
The administrator has disabled public write access.

Re: TELEMAC2d in batch mode 13 years 1 month ago #2640

  • joysanyal21
  • joysanyal21's Avatar
Hi,

I would like to share my experience of using telemac in batch mode under Windows environment. As pointed out in thi thread earlier, TELEMAC does not work in any batch option in Windows.

If you are desperate to launch different cases one after another without loosing any time in between then you can follow the steps:

1. Type the command like 'telemac2d -s cas1.txt' in a text file and save it as .bat in notepad and place it in the directory where the other inputs are.
For 10 cases create 10 such batch files.

1. Open Windows task scheduler and schedule windows to run the 10 batch files at a specific time with a well chosen interval. The only catch is that you have to run the cases once or twice in advance to get a fair idea about the run time of the cases.

If your diferent cases take very different time to finish the runs then this procedure is not likely to work.

Cheers,

Joy
The administrator has disabled public write access.

Re: TELEMAC2d in batch mode 13 years 1 month ago #2642

  • gaventang
  • gaventang's Avatar
Hi Joy,

I have been using batch mode in Windows 7 and it does appear to run properly. Like you, I used the commands:

telemac2d -b cas1.txt
telemac2d -b cas2.txt

Though the command window doesn't show anything after this, the simulations are running (check your processes in task manager). A sortie file is created/updated as the simulation runs, and you are able to go through the printouts afterwards to see if there were any problems.

Hope this helps,
Gaven
The administrator has disabled public write access.

Re: TELEMAC2d in batch mode 13 years 1 month ago #2644

  • joysanyal21
  • joysanyal21's Avatar
Hi Gaven,

After reading your comment I again tried to run my newly compiled telemac v 6.1 in batch mode. I am running WIN 7 32-bit. The program still doesn't work in batch mode. I don't know how you made it work. By the way, I was launching it in parallel mode for the batch run.

Cheers,

Joy
The administrator has disabled public write access.

Re: TELEMAC2d in batch mode 13 years 1 month ago #2662

  • gaventang
  • gaventang's Avatar
Hi Joy,

The difference is that I am running my batch simulations in scalar mode. I never did get parallel mode to work on my installation. Try disabling parallel mode in your steering files, and I'm pretty confident you'll get it to work.

PS: the number of simultaneous scalar simulations you can run is dependent upon the number of processing threads your processor(s) can handle. ie: I have an intel core i7 with 8 processing threads. My computer can run up to 8 batch simulations simultaneously. If i queue up 10 simulations, 8 simulations will run first, followed by the remaining 4 after threads free up.

Hope this helps!

Gaven
The administrator has disabled public write access.

Re: TELEMAC2d in batch mode 13 years 1 month ago #2663

  • joysanyal21
  • joysanyal21's Avatar
Hi Gaven,

Thanks for your suggestion. I tried in scalar mode to launch 2 batch jobs (I am using core 2 duo for this testing). Nothing happens. Same result, no computation launches.

I did check the cpu usage! No luck.

Cheers,

Joy
The administrator has disabled public write access.

Re: TELEMAC2d in batch mode 13 years 1 month ago #2666

  • gaventang
  • gaventang's Avatar
Hi Joy,

I'm not entirely sure what's wrong then. My only suggestion is running multiple instances of the command prompt to simultaneously run simulations. You'd only be able to run 2 simulations with your processor.

I'm not sure if you tried this, but try running batch simulations in scalar mode again. But this time, just wait a few minutes, then check your CPU usage in task manager. I did note a slight delay before the simulations began when I used batch mode.

Cheers,
Gaven
The administrator has disabled public write access.

Re: TELEMAC2d in batch mode 12 years 9 months ago #3791

  • gaventang
  • gaventang's Avatar
Hi Joy,

I think that I have cracked the mystery of why batch mode doesnt work for you. Before using the telemac2d -b command, you mist first run telemac2d -cl to compile and link the fortran file. Batch mode worked for me because my fortran file was already compiled.

Hope this helps,
Gaven
The administrator has disabled public write access.
Moderators: pham

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