The call to Ccm_close is the last CCM routine in a program. If there is another communication package in use, such as MPI, then the finalization routines for that package needs to be called after ccm_init. Ccm_close sets a warning condition and the_err != 0 if ccm_init has not been called, or if ccm_close is called a second time.
|
[ccm_home:~/ccm/source] % ccm_close_x1
hello at 14:03:36.135
hello at 14:03:36.138
hello at 14:03:36.141
hello at 14:03:36.143
[ccm_home:~/ccm/source] %
The call to ccm_init initializes the communication package. Each task gets and prints the time. The call to ccm_close closes the communication package. |