Changeset 4517


Ignore:
Timestamp:
07/12/10 08:05:42 (15 years ago)
Author:
Mathieu Morlighem
Message:

printf in debug mode only

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/include/macros.h

    r4201 r4517  
    1818/*Printing macro: call MPI_Barrier in debugging mode so that prints are synchronized*/
    1919#ifdef _ISSM_DEBUG_
     20#define _printf_(...) MPI_Barrier(MPI_COMM_WORLD); PrintfFunction(__VA_ARGS__)
     21#else
    2022#define _printf_(...) PrintfFunction(__VA_ARGS__)
    21 #else
    22 #define _printf_(...) MPI_Barrier(MPI_COMM_WORLD); PrintfFunction(__VA_ARGS__)
    2323#endif
    2424
Note: See TracChangeset for help on using the changeset viewer.