Skip to content

Commit 62b0cee

Browse files
committed
Use doxygen todo and clean up comments, minor indentation changes
1 parent 25631aa commit 62b0cee

File tree

1 file changed

+13
-18
lines changed

1 file changed

+13
-18
lines changed

mpi_test_suite.c

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/** \todo CN Maybe redesign the logfile implementation? */
2+
13
#include "config.h"
24

35
#include <getopt.h>
@@ -210,25 +212,19 @@ int main (int argc, char * argv[])
210212
}
211213
}
212214

213-
/*
214-
* XXX CN Maybe redesign the logfile implementation?
215-
*/
216215
tst_output_init (DEBUG_LOG, TST_OUTPUT_RANK_SELF, TST_REPORT_MAX, TST_OUTPUT_TYPE_LOGFILE, "tst.log");
217216

218-
char *info_str = (char *) calloc( MAX_INFO_STRING_LENGTH, sizeof(char) );
219-
get_compiler_info( &info_str );
220-
tst_output_printf (DEBUG_LOG, TST_REPORT_RUN, "Compiler used was %s\n", info_str );
221-
get_mpi_info( &info_str );
222-
tst_output_printf (DEBUG_LOG, TST_REPORT_FULL, "MPI version used was %s\n", info_str );
223-
get_compile_time( &info_str );
224-
tst_output_printf (DEBUG_LOG, TST_REPORT_FULL, "Compiled at %s\n", info_str );
225-
get_timestamp( &info_str );
226-
tst_output_printf (DEBUG_LOG, TST_REPORT_FULL, "Started at %s\n", info_str );
227-
228-
229-
217+
char *info_str = (char *) calloc(MAX_INFO_STRING_LENGTH, sizeof(char));
218+
get_compiler_info(&info_str);
219+
tst_output_printf(DEBUG_LOG, TST_REPORT_RUN, "Compiler used was %s\n", info_str);
220+
get_mpi_info(&info_str);
221+
tst_output_printf(DEBUG_LOG, TST_REPORT_FULL, "MPI version used was %s\n", info_str);
222+
get_compile_time(&info_str);
223+
tst_output_printf(DEBUG_LOG, TST_REPORT_FULL, "Compiled at %s\n", info_str);
224+
get_timestamp(&info_str);
225+
tst_output_printf(DEBUG_LOG, TST_REPORT_FULL, "Started at %s\n", info_str);
230226
#ifndef HAVE_MPI2_THREADS
231-
tst_output_printf (DEBUG_LOG, TST_REPORT_FULL, "Testsuite was compiled without MPI2_THREADS");
227+
tst_output_printf(DEBUG_LOG, TST_REPORT_FULL, "Testsuite was compiled without MPI2_THREADS");
232228
#endif
233229
/*
234230
* Output example:
@@ -252,8 +248,7 @@ int main (int argc, char * argv[])
252248
* Checking if the upper boundary for tag values is at least 32767 as required by MPI-1.1.
253249
* (see MPI-1.1 section 7.1.1.1 Tag values or MPI-3.1 section 8.1.2)
254250
*/
255-
if (tst_tag_ub < 32767)
256-
{
251+
if (tst_tag_ub < 32767) {
257252
printf ("Error: MPI_TAG_UB was below 32767.\n");
258253
}
259254

0 commit comments

Comments
 (0)