Template executable and some Demo executables do nothing

47 views
Skip to first unread message

Benjamin Johnson

unread,
Nov 13, 2022, 5:42:24 PM11/13/22
to ProjectChrono
Hello,  

I had previously posted a request to get started as I was having import issues. I did not realize that I needed to use cmake to build every project. Now that I have done that, I am able to successfully build both the template projects. However I am having issues with vehicle cosim template...

First, there was an inherited class that had some methods overridden, but when I looked the methods did not exist in the parent class. Once I updated the names to the names in the in parent. I was able to build the project. 

Now the executable file doesn't do anything when I click it. It doesn't even look like it's trying to load, it just does nothing. 

I had this same issue with some of the pre-built demos when I first installed Chrono, but I just assumed it was because I didn't enable every module. However, for the cosim template, I have all modules necessary and I am still having issues. Has anyone ever experienced this? I would have thought if there was an issue I would get an error in the build. I would really like to understand what I am doing wrong so I can start playing around with building my own project. If anyone has any input I would really appreciate it. 

Here is my system info if it helps:
Chrono V 6.0 (built within the last couple weeks)
Ubuntu 22.04
ubuntu is running as a VM on a 2019 Mac Book Pro

Thank you for any insights you all can offer. 

Cheers,
Benjamin


Benjamin Johnson

unread,
Nov 13, 2022, 5:46:23 PM11/13/22
to ProjectChrono
Little update: if I try run the file from the terminal I get this output...

Single wheel cosimulation code must be run on at least 3 ranks!


--------------------------------------------------------------------------
MPI_ABORT was invoked on rank 0 in communicator MPI_COMM_WORLD
with errorcode 1.

NOTE: invoking MPI_ABORT causes Open MPI to kill all MPI processes.
You may or may not see output from other processes, depending on
exactly when Open MPI kills them.

Radu Serban

unread,
Nov 13, 2022, 5:47:15 PM11/13/22
to ProjectChrono

Benjamin,

 

I am confused.  The co-simulation framework was not available in version 6.0!

Please use the latest Chrono code from the ‘main’ branch of the repository.

Let us know if you still encounter issues.

 

--Radu

--
You received this message because you are subscribed to the Google Groups "ProjectChrono" group.
To unsubscribe from this group and stop receiving emails from it, send an email to projectchron...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/projectchrono/5594917a-0cf8-4cae-9569-31977a50ede2n%40googlegroups.com.

Radu Serban

unread,
Nov 13, 2022, 5:49:57 PM11/13/22
to ProjectChrono

Yes, this is an MPI code that must be run with mpiexec.  This example requires 3 ranks (as the error message indicates), so you’ll have to use something like

% mpiexec -np 3 …

 

--Radu

 

From: projec...@googlegroups.com <projec...@googlegroups.com> On Behalf Of Benjamin Johnson
Sent: Sunday, 13 November 2022 23:46
To: ProjectChrono <projec...@googlegroups.com>

--

You received this message because you are subscribed to the Google Groups "ProjectChrono" group.
To unsubscribe from this group and stop receiving emails from it, send an email to projectchron...@googlegroups.com.

Benjamin Johnson

unread,
Nov 13, 2022, 5:52:35 PM11/13/22
to ProjectChrono
My apologies.

I believe I am actually version 7. I cloned from main about 2 weeks ago.

I will try run with mpiexec as you mention. 

Thank you for your quick reply!

Benjamin Johnson

unread,
Nov 13, 2022, 5:55:09 PM11/13/22
to ProjectChrono
Radu,

That did solve the issue. Thank you!

It is also incredibly slow. Is that just my machine? Or is there anything I can do to speed up the simulations?

Thank you!
Benjamin

Reply all
Reply to author
Forward
0 new messages