SP: Made cvAdvDiffReac_kry_omp C90 compliant
The OpenMP examples are built with -std=c90 (a.k.a. -ansi) flag.
This will trigger build errors when using `//` comments instead
of C-style comments `/*  */`. Replaced all C++ style comments
with C-style ones.
#include <sundials/sundials_types.h>
#include <sundials/sundials_math.h>
-//#define SUNDIALS_HAVE_POSIX_TIMERS
-//#define _POSIX_TIMERS
+/* #define SUNDIALS_HAVE_POSIX_TIMERS */
+/* #define _POSIX_TIMERS */
#if defined( SUNDIALS_HAVE_POSIX_TIMERS) && defined(_POSIX_TIMERS)
#include <time.h>
@@ -142,7 +142,7 @@ int main(int argc, char *argv[])
return (-1);
printf("Computation successful!\n");
- //printf("Execution time on %d threads = %g\n", data->num_threads, stop_time - start_time);
+ /* printf("Execution time on %d threads = %g\n", data->num_threads, stop_time - start_time); */
printf("L2 norm = %14.6e\n", SUNRsqrt(N_VDotProd(u,u)));
PrintFinalStats(cvode_mem);
@@ -445,7 +445,7 @@ time_t base_time_tv_sec = 0; /* Base time; makes time values returned
void SetTiming(int onoff)
{
- //print_time = onoff;
+ /* print_time = onoff; */
#if defined( SUNDIALS_HAVE_POSIX_TIMERS) && defined(_POSIX_TIMERS)
struct timespec spec;
