run openseesmp from terminal

Post Reply
[email protected]
Posts: 54
Joined: Tue Mar 02, 2021 2:34 am

run openseesmp from terminal

Post by [email protected] » Mon Sep 20, 2021 2:52 am

Hello STKO team,

I'm trying to run the input files I created with STKO on another computer through the terminal using openseesMP. I have no issues running opensees sequential on one processor but I get error codes when I try to run it in parallel.
I open up the command prompt at my input file's location and I use the command:
mpiexec -np 8 openseesmp main.tcl.
This gives me the following errors:
MPIexec_error.png
MPIexec_error.png (51.58 KiB) Viewed 3411 times
I also tried calling openseesmp directly using:
openseesmp -n 8 main.tcl
but the job terminates on all PIDs immediately after starting up the openseesmp client:
openseesmp_error2.png
openseesmp_error2.png (17.21 KiB) Viewed 3411 times
What method can be used to run a previously exported input file bundle from STKO directly from the command line?
Ps. if I run from STKO using the GUI there are no errors/problems.

Thank you for your time! Regards,
Bence

STKO Team
Posts: 3066
Joined: Tue Oct 29, 2019 8:45 am

Re: run openseesmp from terminal

Post by STKO Team » Mon Sep 20, 2021 9:00 am

If you are using the openseesmp.bat file from the OpenSees-Solvers (installer from prof. Tarque's website), you should call it like this:
C:\OpenSees-Solvers\openseesmp.bat .\main.tcl 8
First: batch file. You can omit the full path (use only openseesmp.bat) only if the C:\OpenSees-Solvers is on the PATH environment variable.
Second: Tcl file
Third: number of processor

In fact, if you edit the batch file, you will see that it internally calls the mpiexec

[email protected]
Posts: 54
Joined: Tue Mar 02, 2021 2:34 am

Re: run openseesmp from terminal

Post by [email protected] » Mon Sep 20, 2021 9:19 am

Great! I'll try that. Thanks a lot for the prompt response.

STKO Team
Posts: 3066
Joined: Tue Oct 29, 2019 8:45 am

Re: run openseesmp from terminal

Post by STKO Team » Mon Sep 20, 2021 9:50 am

You're welcome

Post Reply