Skip to content

Commit 928147b

Browse files
committed
upgrading to sundials v6.1.1; removing printf and fprintf for CRAN
1 parent 077ac04 commit 928147b

File tree

56 files changed

+157
-145
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+157
-145
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#ifndef STAN_MATH_SUNDIALS_PRINTF_OVERRIDE_HPP
2+
#define STAN_MATH_SUNDIALS_PRINTF_OVERRIDE_HPP
3+
4+
#ifdef WITH_SUNDIAL_PRINTF
5+
#define STAN_SUNDIALS_PRINTF(...) printf(__VA_ARGS__)
6+
#define STAN_SUNDIALS_FPRINTF(...) fprintf(__VA_ARGS__)
7+
#else
8+
#define STAN_SUNDIALS_PRINTF(...)
9+
#define STAN_SUNDIALS_FPRINTF(...)
10+
#endif
11+
12+
#endif

lib/sundials_6.1.1/src/cvodes/cvodes.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9112,8 +9112,8 @@ void cvProcessError(CVodeMem cv_mem,
91129112

91139113
if (cv_mem == NULL) { /* We write to stderr */
91149114
#ifndef NO_FPRINTF_OUTPUT
9115-
fprintf(stderr, "\n[%s ERROR] %s\n ", module, fname);
9116-
fprintf(stderr, "%s\n\n", msg);
9115+
STAN_SUNDIALS_FPRINTF(stderr, "\n[%s ERROR] %s\n ", module, fname);
9116+
STAN_SUNDIALS_FPRINTF(stderr, "%s\n\n", msg);
91179117
#endif
91189118

91199119
} else { /* We can call ehfun */
@@ -9148,8 +9148,8 @@ void cvErrHandler(int error_code, const char *module,
91489148

91499149
#ifndef NO_FPRINTF_OUTPUT
91509150
if (cv_mem->cv_errfp!=NULL) {
9151-
fprintf(cv_mem->cv_errfp,"\n[%s %s] %s\n",module,err_type,function);
9152-
fprintf(cv_mem->cv_errfp," %s\n\n",msg);
9151+
STAN_SUNDIALS_FPRINTF(cv_mem->cv_errfp,"\n[%s %s] %s\n",module,err_type,function);
9152+
STAN_SUNDIALS_FPRINTF(cv_mem->cv_errfp," %s\n\n",msg);
91539153
}
91549154
#endif
91559155

lib/sundials_6.1.1/src/cvodes/fmod/fcvodes_mod.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@
175175

176176
#include <assert.h>
177177
#define SWIG_exception_impl(DECL, CODE, MSG, RETURNNULL) \
178-
{ printf("In " DECL ": " MSG); assert(0); RETURNNULL; }
178+
{STAN_SUNDIALS_PRINTF("In " DECL ": " MSG); assert(0); RETURNNULL; }
179179

180180

181181
enum {

lib/sundials_6.1.1/src/idas/fmod/fidas_mod.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@
175175

176176
#include <assert.h>
177177
#define SWIG_exception_impl(DECL, CODE, MSG, RETURNNULL) \
178-
{ printf("In " DECL ": " MSG); assert(0); RETURNNULL; }
178+
{STAN_SUNDIALS_PRINTF("In " DECL ": " MSG); assert(0); RETURNNULL; }
179179

180180

181181
enum {

lib/sundials_6.1.1/src/idas/idas.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7895,8 +7895,8 @@ void IDAProcessError(IDAMem IDA_mem,
78957895

78967896
if (IDA_mem == NULL) { /* We write to stderr */
78977897
#ifndef NO_FPRINTF_OUTPUT
7898-
fprintf(stderr, "\n[%s ERROR] %s\n ", module, fname);
7899-
fprintf(stderr, "%s\n\n", msg);
7898+
STAN_SUNDIALS_FPRINTF(stderr, "\n[%s ERROR] %s\n ", module, fname);
7899+
STAN_SUNDIALS_FPRINTF(stderr, "%s\n\n", msg);
79007900
#endif
79017901

79027902
} else { /* We can call ehfun */
@@ -7929,8 +7929,8 @@ void IDAErrHandler(int error_code, const char *module,
79297929

79307930
#ifndef NO_FPRINTF_OUTPUT
79317931
if (IDA_mem->ida_errfp != NULL) {
7932-
fprintf(IDA_mem->ida_errfp,"\n[%s %s] %s\n",module,err_type,function);
7933-
fprintf(IDA_mem->ida_errfp," %s\n\n",msg);
7932+
STAN_SUNDIALS_FPRINTF(IDA_mem->ida_errfp,"\n[%s %s] %s\n",module,err_type,function);
7933+
STAN_SUNDIALS_FPRINTF(IDA_mem->ida_errfp," %s\n\n",msg);
79347934
}
79357935
#endif
79367936

lib/sundials_6.1.1/src/kinsol/fmod/fkinsol_mod.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@
175175

176176
#include <assert.h>
177177
#define SWIG_exception_impl(DECL, CODE, MSG, RETURNNULL) \
178-
{ printf("In " DECL ": " MSG); assert(0); RETURNNULL; }
178+
{STAN_SUNDIALS_PRINTF("In " DECL ": " MSG); assert(0); RETURNNULL; }
179179

180180

181181
#include <stdio.h>

lib/sundials_6.1.1/src/kinsol/kinsol.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2378,8 +2378,8 @@ void KINInfoHandler(const char *module, const char *function,
23782378

23792379
#ifndef NO_FPRINTF_OUTPUT
23802380
if (kin_mem->kin_infofp != NULL) {
2381-
fprintf(kin_mem->kin_infofp,"\n[%s] %s\n",module, function);
2382-
fprintf(kin_mem->kin_infofp," %s\n",msg);
2381+
STAN_SUNDIALS_FPRINTF(kin_mem->kin_infofp,"\n[%s] %s\n",module, function);
2382+
STAN_SUNDIALS_FPRINTF(kin_mem->kin_infofp," %s\n",msg);
23832383
}
23842384
#endif
23852385

@@ -2418,8 +2418,8 @@ void KINProcessError(KINMem kin_mem,
24182418

24192419
if (kin_mem == NULL) { /* We write to stderr */
24202420
#ifndef NO_FPRINTF_OUTPUT
2421-
fprintf(stderr, "\n[%s ERROR] %s\n ", module, fname);
2422-
fprintf(stderr, "%s\n\n", msg);
2421+
STAN_SUNDIALS_FPRINTF(stderr, "\n[%s ERROR] %s\n ", module, fname);
2422+
STAN_SUNDIALS_FPRINTF(stderr, "%s\n\n", msg);
24232423
#endif
24242424

24252425
} else { /* We can call ehfun */
@@ -2456,8 +2456,8 @@ void KINErrHandler(int error_code, const char *module,
24562456

24572457
#ifndef NO_FPRINTF_OUTPUT
24582458
if (kin_mem->kin_errfp != NULL) {
2459-
fprintf(kin_mem->kin_errfp,"\n[%s %s] %s\n",module,err_type,function);
2460-
fprintf(kin_mem->kin_errfp," %s\n\n",msg);
2459+
STAN_SUNDIALS_FPRINTF(kin_mem->kin_errfp,"\n[%s %s] %s\n",module,err_type,function);
2460+
STAN_SUNDIALS_FPRINTF(kin_mem->kin_errfp," %s\n\n",msg);
24612461
}
24622462
#endif
24632463

@@ -2686,7 +2686,7 @@ static int KINFP(KINMem kin_mem)
26862686
tolfac = ONE;
26872687

26882688
#ifdef SUNDIALS_DEBUG_PRINTVEC
2689-
fprintf(kin_mem->kin_debugfp, "KINSOL u_0:\n");
2689+
STAN_SUNDIALS_FPRINTF(kin_mem->kin_debugfp, "KINSOL u_0:\n");
26902690
N_VPrintFile(kin_mem->kin_uu, kin_mem->kin_debugfp);
26912691
#endif
26922692

@@ -2704,7 +2704,7 @@ static int KINFP(KINMem kin_mem)
27042704
kin_mem->kin_nfe++;
27052705

27062706
#ifdef SUNDIALS_DEBUG_PRINTVEC
2707-
fprintf(kin_mem->kin_debugfp, "KINSOL G_%ld:\n", kin_mem->kin_nni - 1);
2707+
STAN_SUNDIALS_FPRINTF(kin_mem->kin_debugfp, "KINSOL G_%ld:\n", kin_mem->kin_nni - 1);
27082708
N_VPrintFile(kin_mem->kin_fval, kin_mem->kin_debugfp);
27092709
#endif
27102710

@@ -2764,7 +2764,7 @@ static int KINFP(KINMem kin_mem)
27642764
}
27652765

27662766
#ifdef SUNDIALS_DEBUG_PRINTVEC
2767-
fprintf(kin_mem->kin_debugfp, "KINSOL u_%ld:\n", kin_mem->kin_nni);
2767+
STAN_SUNDIALS_FPRINTF(kin_mem->kin_debugfp, "KINSOL u_%ld:\n", kin_mem->kin_nni);
27682768
N_VPrintFile(kin_mem->kin_unew, kin_mem->kin_debugfp);
27692769
#endif
27702770

lib/sundials_6.1.1/src/nvector/manyvector/fmod/fnvector_manyvector_mod.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@
175175

176176
#include <assert.h>
177177
#define SWIG_exception_impl(DECL, CODE, MSG, RETURNNULL) \
178-
{ printf("In " DECL ": " MSG); assert(0); RETURNNULL; }
178+
{STAN_SUNDIALS_PRINTF("In " DECL ": " MSG); assert(0); RETURNNULL; }
179179

180180

181181
#include <stdio.h>

lib/sundials_6.1.1/src/nvector/manyvector/fmod/fnvector_mpimanyvector_mod.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@
175175

176176
#include <assert.h>
177177
#define SWIG_exception_impl(DECL, CODE, MSG, RETURNNULL) \
178-
{ printf("In " DECL ": " MSG); assert(0); RETURNNULL; }
178+
{STAN_SUNDIALS_PRINTF("In " DECL ": " MSG); assert(0); RETURNNULL; }
179179

180180

181181
#include <stdio.h>

lib/sundials_6.1.1/src/nvector/mpiplusx/fmod/fnvector_mpiplusx_mod.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@
175175

176176
#include <assert.h>
177177
#define SWIG_exception_impl(DECL, CODE, MSG, RETURNNULL) \
178-
{ printf("In " DECL ": " MSG); assert(0); RETURNNULL; }
178+
{STAN_SUNDIALS_PRINTF("In " DECL ": " MSG); assert(0); RETURNNULL; }
179179

180180

181181
#include <stdio.h>

lib/sundials_6.1.1/src/nvector/openmp/fmod/fnvector_openmp_mod.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@
175175

176176
#include <assert.h>
177177
#define SWIG_exception_impl(DECL, CODE, MSG, RETURNNULL) \
178-
{ printf("In " DECL ": " MSG); assert(0); RETURNNULL; }
178+
{STAN_SUNDIALS_PRINTF("In " DECL ": " MSG); assert(0); RETURNNULL; }
179179

180180

181181
#include <stdio.h>

lib/sundials_6.1.1/src/nvector/openmp/nvector_openmp.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -270,14 +270,14 @@ void N_VPrintFile_OpenMP(N_Vector x, FILE *outfile)
270270

271271
for (i = 0; i < N; i++) {
272272
#if defined(SUNDIALS_EXTENDED_PRECISION)
273-
fprintf(outfile, "%11.8Lg\n", xd[i]);
273+
STAN_SUNDIALS_FPRINTF(outfile, "%11.8Lg\n", xd[i]);
274274
#elif defined(SUNDIALS_DOUBLE_PRECISION)
275-
fprintf(outfile, "%11.8g\n", xd[i]);
275+
STAN_SUNDIALS_FPRINTF(outfile, "%11.8g\n", xd[i]);
276276
#else
277-
fprintf(outfile, "%11.8g\n", xd[i]);
277+
STAN_SUNDIALS_FPRINTF(outfile, "%11.8g\n", xd[i]);
278278
#endif
279279
}
280-
fprintf(outfile, "\n");
280+
STAN_SUNDIALS_FPRINTF(outfile, "\n");
281281

282282
return;
283283
}

lib/sundials_6.1.1/src/nvector/openmpdev/nvector_openmpdev.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -298,14 +298,14 @@ void N_VPrintFile_OpenMPDEV(N_Vector x, FILE *outfile)
298298

299299
for (i = 0; i < N; i++) {
300300
#if defined(SUNDIALS_EXTENDED_PRECISION)
301-
fprintf(outfile, "%11.8Lg\n", xd[i]);
301+
STAN_SUNDIALS_FPRINTF(outfile, "%11.8Lg\n", xd[i]);
302302
#elif defined(SUNDIALS_DOUBLE_PRECISION)
303-
fprintf(outfile, "%11.8g\n", xd[i]);
303+
STAN_SUNDIALS_FPRINTF(outfile, "%11.8g\n", xd[i]);
304304
#else
305-
fprintf(outfile, "%11.8g\n", xd[i]);
305+
STAN_SUNDIALS_FPRINTF(outfile, "%11.8g\n", xd[i]);
306306
#endif
307307
}
308-
fprintf(outfile, "\n");
308+
STAN_SUNDIALS_FPRINTF(outfile, "\n");
309309

310310
return;
311311
}

lib/sundials_6.1.1/src/nvector/parallel/fmod/fnvector_parallel_mod.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@
175175

176176
#include <assert.h>
177177
#define SWIG_exception_impl(DECL, CODE, MSG, RETURNNULL) \
178-
{ printf("In " DECL ": " MSG); assert(0); RETURNNULL; }
178+
{STAN_SUNDIALS_PRINTF("In " DECL ": " MSG); assert(0); RETURNNULL; }
179179

180180

181181
#include <stdio.h>

lib/sundials_6.1.1/src/nvector/parallel/nvector_parallel.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ N_Vector N_VNewEmpty_Parallel(MPI_Comm comm,
8686
n = local_length;
8787
MPI_Allreduce(&n, &Nsum, 1, MPI_SUNINDEXTYPE, MPI_SUM, comm);
8888
if (Nsum != global_length) {
89-
fprintf(stderr, BAD_N);
89+
STAN_SUNDIALS_FPRINTF(stderr, BAD_N);
9090
return(NULL);
9191
}
9292

@@ -303,14 +303,14 @@ void N_VPrintFile_Parallel(N_Vector x, FILE* outfile)
303303

304304
for (i = 0; i < N; i++) {
305305
#if defined(SUNDIALS_EXTENDED_PRECISION)
306-
fprintf(outfile, "%35.32Le\n", xd[i]);
306+
STAN_SUNDIALS_FPRINTF(outfile, "%35.32Le\n", xd[i]);
307307
#elif defined(SUNDIALS_DOUBLE_PRECISION)
308-
fprintf(outfile, "%19.16e\n", xd[i]);
308+
STAN_SUNDIALS_FPRINTF(outfile, "%19.16e\n", xd[i]);
309309
#else
310-
fprintf(outfile, "%11.8e\n", xd[i]);
310+
STAN_SUNDIALS_FPRINTF(outfile, "%11.8e\n", xd[i]);
311311
#endif
312312
}
313-
fprintf(outfile, "\n");
313+
STAN_SUNDIALS_FPRINTF(outfile, "\n");
314314

315315
return;
316316
}

lib/sundials_6.1.1/src/nvector/parhyp/nvector_parhyp.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -322,14 +322,14 @@ void N_VPrintFile_ParHyp(N_Vector x, FILE *outfile)
322322

323323
for (i = 0; i < N; i++) {
324324
#if defined(SUNDIALS_EXTENDED_PRECISION)
325-
fprintf(outfile, "%Lg\n", xd[i]);
325+
STAN_SUNDIALS_FPRINTF(outfile, "%Lg\n", xd[i]);
326326
#elif defined(SUNDIALS_DOUBLE_PRECISION)
327-
fprintf(outfile, "%g\n", xd[i]);
327+
STAN_SUNDIALS_FPRINTF(outfile, "%g\n", xd[i]);
328328
#else
329-
fprintf(outfile, "%g\n", xd[i]);
329+
STAN_SUNDIALS_FPRINTF(outfile, "%g\n", xd[i]);
330330
#endif
331331
}
332-
fprintf(outfile, "\n");
332+
STAN_SUNDIALS_FPRINTF(outfile, "\n");
333333

334334
return;
335335
}

lib/sundials_6.1.1/src/nvector/petsc/nvector_petsc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ N_Vector N_VNewEmpty_Petsc(MPI_Comm comm,
128128
ierr = MPI_Allreduce(&n, &Nsum, 1, MPI_SUNINDEXTYPE, MPI_SUM, comm);
129129
CHKERRABORT(comm,ierr);
130130
if (Nsum != global_length) {
131-
fprintf(stderr, BAD_N);
131+
STAN_SUNDIALS_FPRINTF(stderr, BAD_N);
132132
return(NULL);
133133
}
134134

lib/sundials_6.1.1/src/nvector/pthreads/fmod/fnvector_pthreads_mod.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@
175175

176176
#include <assert.h>
177177
#define SWIG_exception_impl(DECL, CODE, MSG, RETURNNULL) \
178-
{ printf("In " DECL ": " MSG); assert(0); RETURNNULL; }
178+
{STAN_SUNDIALS_PRINTF("In " DECL ": " MSG); assert(0); RETURNNULL; }
179179

180180

181181
#include <stdio.h>

lib/sundials_6.1.1/src/nvector/pthreads/nvector_pthreads.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -340,14 +340,14 @@ void N_VPrintFile_Pthreads(N_Vector x, FILE *outfile)
340340

341341
for (i = 0; i < N; i++) {
342342
#if defined(SUNDIALS_EXTENDED_PRECISION)
343-
fprintf(outfile, "%11.8Lg\n", xd[i]);
343+
STAN_SUNDIALS_FPRINTF(outfile, "%11.8Lg\n", xd[i]);
344344
#elif defined(SUNDIALS_DOUBLE_PRECISION)
345-
fprintf(outfile, "%11.8g\n", xd[i]);
345+
STAN_SUNDIALS_FPRINTF(outfile, "%11.8g\n", xd[i]);
346346
#else
347-
fprintf(outfile, "%11.8g\n", xd[i]);
347+
STAN_SUNDIALS_FPRINTF(outfile, "%11.8g\n", xd[i]);
348348
#endif
349349
}
350-
fprintf(outfile, "\n");
350+
STAN_SUNDIALS_FPRINTF(outfile, "\n");
351351

352352
return;
353353
}

lib/sundials_6.1.1/src/nvector/serial/fmod/fnvector_serial_mod.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@
175175

176176
#include <assert.h>
177177
#define SWIG_exception_impl(DECL, CODE, MSG, RETURNNULL) \
178-
{ printf("In " DECL ": " MSG); assert(0); RETURNNULL; }
178+
{STAN_SUNDIALS_PRINTF("In " DECL ": " MSG); assert(0); RETURNNULL; }
179179

180180

181181
#include <stdio.h>

lib/sundials_6.1.1/src/nvector/serial/nvector_serial.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -263,14 +263,14 @@ void N_VPrintFile_Serial(N_Vector x, FILE* outfile)
263263

264264
for (i = 0; i < N; i++) {
265265
#if defined(SUNDIALS_EXTENDED_PRECISION)
266-
fprintf(outfile, "%35.32Le\n", xd[i]);
266+
STAN_SUNDIALS_FPRINTF(outfile, "%35.32Le\n", xd[i]);
267267
#elif defined(SUNDIALS_DOUBLE_PRECISION)
268-
fprintf(outfile, "%19.16e\n", xd[i]);
268+
STAN_SUNDIALS_FPRINTF(outfile, "%19.16e\n", xd[i]);
269269
#else
270-
fprintf(outfile, "%11.8e\n", xd[i]);
270+
STAN_SUNDIALS_FPRINTF(outfile, "%11.8e\n", xd[i]);
271271
#endif
272272
}
273-
fprintf(outfile, "\n");
273+
STAN_SUNDIALS_FPRINTF(outfile, "\n");
274274

275275
return;
276276
}

lib/sundials_6.1.1/src/sundials/fmod/fsundials_context_mod.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@
175175

176176
#include <assert.h>
177177
#define SWIG_exception_impl(DECL, CODE, MSG, RETURNNULL) \
178-
{ printf("In " DECL ": " MSG); assert(0); RETURNNULL; }
178+
{STAN_SUNDIALS_PRINTF("In " DECL ": " MSG); assert(0); RETURNNULL; }
179179

180180

181181
#include <stdio.h>

lib/sundials_6.1.1/src/sundials/fmod/fsundials_futils_mod.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@
175175

176176
#include <assert.h>
177177
#define SWIG_exception_impl(DECL, CODE, MSG, RETURNNULL) \
178-
{ printf("In " DECL ": " MSG); assert(0); RETURNNULL; }
178+
{STAN_SUNDIALS_PRINTF("In " DECL ": " MSG); assert(0); RETURNNULL; }
179179

180180

181181
#include <stdio.h>

lib/sundials_6.1.1/src/sundials/fmod/fsundials_linearsolver_mod.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@
160160

161161
#include <assert.h>
162162
#define SWIG_exception_impl(DECL, CODE, MSG, RETURNNULL) \
163-
{ printf("In " DECL ": " MSG); assert(0); RETURNNULL; }
163+
{STAN_SUNDIALS_PRINTF("In " DECL ": " MSG); assert(0); RETURNNULL; }
164164

165165

166166
#include <stdio.h>

lib/sundials_6.1.1/src/sundials/fmod/fsundials_matrix_mod.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@
160160

161161
#include <assert.h>
162162
#define SWIG_exception_impl(DECL, CODE, MSG, RETURNNULL) \
163-
{ printf("In " DECL ": " MSG); assert(0); RETURNNULL; }
163+
{STAN_SUNDIALS_PRINTF("In " DECL ": " MSG); assert(0); RETURNNULL; }
164164

165165

166166
#include <stdio.h>

lib/sundials_6.1.1/src/sundials/fmod/fsundials_nonlinearsolver_mod.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@
160160

161161
#include <assert.h>
162162
#define SWIG_exception_impl(DECL, CODE, MSG, RETURNNULL) \
163-
{ printf("In " DECL ": " MSG); assert(0); RETURNNULL; }
163+
{STAN_SUNDIALS_PRINTF("In " DECL ": " MSG); assert(0); RETURNNULL; }
164164

165165

166166
#include <stdio.h>

lib/sundials_6.1.1/src/sundials/fmod/fsundials_nvector_mod.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@
160160

161161
#include <assert.h>
162162
#define SWIG_exception_impl(DECL, CODE, MSG, RETURNNULL) \
163-
{ printf("In " DECL ": " MSG); assert(0); RETURNNULL; }
163+
{STAN_SUNDIALS_PRINTF("In " DECL ": " MSG); assert(0); RETURNNULL; }
164164

165165

166166
#include <stdio.h>

0 commit comments

Comments
 (0)