|
[ccm_home:~/ccm/source] % ccm_init_x1
the default name for 0 is out_00000
name based on date for 0 is 05141544.00000
the default name for 2 is out_00002
name based on date for 2 is 05141544.00002
the default name for 1 is out_00001
name based on date for 1 is 05141544.00001
the default name for 3 is out_00003
name based on date for 3 is 05141544.00003
[ccm_home:~/ccm/source] % cat out_*
the default name for 0 is out_00000
the default name for 1 is out_00001
the default name for 2 is out_00002
the default name for 3 is out_00003
[ccm_home:~/ccm/source] %
The call to ccm_init initializes the communication package. The default name for the each task is obtained by calling ccm_unique. A file is created with this name and the written to. Next the date is obtained using date_and_time. The values are broadcast so that all tasks have the same date. The month, day, hour, and minute values are written to a string, date_str. Date_str is used to generate a name based on time and task id. The new name is printed. The call to ccm_close closes the communication package. |