CFD Online Logo CFD Online URL
Home > Forums > General Forums > Main CFD Forum

How to stop program when using MPI?

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   January 18, 2017, 15:17
Exclamation How to stop program when using MPI?
New Member
Join Date: Aug 2014
Posts: 4
Rep Power: 8
bhbuaa is on a distinguished road
I am adding MPI package to my Fortran CFD code. I let #0 processor to send data to other processors to do the most of time-consume part and then receive the new data back to continue the following fluid calculations, and then all processors will repeat to call the same subroutine in a loop. The code will continue until there is an error in the #0 processor or the #0 processor finish all loops.

Since the CFD code is big, and there are tons of subroutines may call exit() function to terminate the calculation in #0 processor, it is not possible to add MPI functions in every subroutine to send information to other processors and let them terminate the program.

Hence, I would like to ask if there is any function that can detect if the calculation or job in #0 processor is terminated or finished at a certain point, and then I can just send that information to other processors to tell them continue the loops or stop??? Thank you.
bhbuaa is offline   Reply With Quote


mpi, stop program

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error using LaunderGibsonRSTM on SGI ALTIX 4700 jaswi OpenFOAM 2 April 29, 2008 11:54
Is Testsuite on the way or not lakeat OpenFOAM Installation 6 April 28, 2008 12:12
How to improve CPU utility when program with mpi? leaf Main CFD Forum 1 May 8, 2006 10:24
how to debugg a MPI program on Linux system yxq Main CFD Forum 1 June 28, 2004 06:45
Free LES program with MPI Andrei Chernousov Main CFD Forum 0 January 19, 2001 08:13

All times are GMT -4. The time now is 10:05.