Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- first_attempt.c: In function ‘Solve_ODE’:
- first_attempt.c:342:23: warning: passing argument 2 of ‘CVodeInit’ from incompatible pointer type [-Wincompatible-pointer-types]
- CVodeInit(cvode_mem, Cvode_rates, t, y); // R: initialize solver; Cvode_ra
- ^
- In file included from first_attempt.h:11:0,
- from first_attempt.c: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 *)}’
- SUNDIALS_EXPORT int CVodeInit(void *cvode_mem, CVRhsFn f, realtype t0, N_Vector
- ^
- first_attempt.c:369:25: warning: passing argument 2 of ‘CVodeInit’ from incompatible pointer type [-Wincompatible-pointer-types]
- CVodeInit(cvode_mem, Cvode_rates, t, y); // and re-initialise th
- ^
- In file included from first_attempt.h:11:0,
- from first_attempt.c: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 *)}’
- SUNDIALS_EXPORT int CVodeInit(void *cvode_mem, CVRhsFn f, realtype t0, N_Vector
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement