Advertisement
Guest User

Untitled

a guest
Feb 21st, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.54 KB | None | 0 0
  1. first_attempt.c: In function ‘Solve_ODE’:
  2. first_attempt.c:342:23: warning: passing argument 2 of ‘CVodeInit’ from incompatible pointer type [-Wincompatible-pointer-types]
  3.   CVodeInit(cvode_mem, Cvode_rates, t, y);     // R: initialize solver; Cvode_ra
  4.                        ^
  5. In file included from first_attempt.h:11:0,
  6.                  from first_attempt.c:15:
  7. /usr/local/include/cvode/cvode.h:414:21: note: expected ‘CVRhsFn {aka int (*)(double,  struct _generic_N_Vector *, struct _generic_N_Vector *, void *)}’ but argument is of type ‘int (*)(realtype,  struct _generic_N_Vector *, struct _generic_N_Vector *) {aka int (*)(double,  struct _generic_N_Vector *, struct _generic_N_Vector *)}
  8.  SUNDIALS_EXPORT int CVodeInit(void *cvode_mem, CVRhsFn f, realtype t0, N_Vector
  9.                      ^
  10. first_attempt.c:369:25: warning: passing argument 2 of ‘CVodeInit’ from incompatible pointer type [-Wincompatible-pointer-types]
  11.     CVodeInit(cvode_mem, Cvode_rates, t, y);             // and re-initialise th
  12.                          ^
  13. In file included from first_attempt.h:11:0,
  14.                  from first_attempt.c:15:
  15. /usr/local/include/cvode/cvode.h:414:21: note: expected ‘CVRhsFn {aka int (*)(double,  struct _generic_N_Vector *, struct _generic_N_Vector *, void *)}’ but argument is of type ‘int (*)(realtype,  struct _generic_N_Vector *, struct _generic_N_Vector *) {aka int (*)(double,  struct _generic_N_Vector *, struct _generic_N_Vector *)}
  16.  SUNDIALS_EXPORT int CVodeInit(void *cvode_mem, CVRhsFn f, realtype t0, N_Vector
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement