Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hello_world example #205

Open
Triangel000 opened this issue Mar 6, 2024 · 4 comments
Open

Hello_world example #205

Triangel000 opened this issue Mar 6, 2024 · 4 comments

Comments

@Triangel000
Copy link

I followed the steps to install GridPACK based on Linux. And I am trying to run the hello_world example, but it does not work at my end. I am wondering if that example is workable at your end or not?

@abhyshr
Copy link
Collaborator

abhyshr commented Mar 6, 2024

Haven't tested that example. @bjpalmer @wperkins does this example work?

@wperkins
Copy link
Member

wperkins commented Mar 6, 2024

@Triangel000, what code branch, develop? master is pretty old and we are overdue with an update. It would also be helpful to document exactly what you did and what error(s) you got.

@wperkins
Copy link
Member

wperkins commented Mar 6, 2024

FWIW, hello_world.x works on my system (Ubuntu 20) with the develop branch.

As a unit test:

d> ctest -R hello
Test project /home/d3g096/Projects/GridPakLDRD/GridPACK.github/master/src/build
    Start 92: hello_world_serial
1/2 Test #92: hello_world_serial ...............   Passed    0.55 sec
    Start 93: hello_world_parallel
2/2 Test #93: hello_world_parallel .............   Passed    0.55 sec

100% tests passed, 0 tests failed out of 2

Total Test time (real) =   1.11 sec

Running the binary directly:

d> cd applications/examples/hello_world/
d> mpiexec -np 2 hello_world.x 
GridPACK math module configured on 2 processors
1: I have 60 buses and 95 branches
0: I have 60 buses and 95 branches

Message from buses
Hello world from bus 1
[...]
Hello world from bus 100

Message from branches
Hello world from the branch connecting bus 1 to bus 2
[...]
Hello world from the branch connecting bus 90 to bus 100

@Triangel000
Copy link
Author

Thank you so much. It seems to be working now. Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants