Odepack and gfortran version 14.2.0

Dear colleagues,

my gfortran Compiler version 14.2.0 is working with Lapack und Blas very well !!

Now I want use odepack, but my compiler doesn’t accept old features ???
For example, it doesn’t accept old structure like “DO … Continue”. I think it is not
meaningful to change each “DO Continue” for example in opkdmain.f, it is too nested!!
also Arithmetic IF statements are given as warning.
and:
Error: Type mismatch between actual argument at (1) and actual argument at (2) (REAL(8)/INTEGER(4)).
opkdmain.f:16250:9:

What to do ??

Thank for your help!
Andreas

1 Like

Compile ODEPACK separately using the -std=legacy flag, documented here: Fortran Dialect Options (The GNU Fortran Compiler). You may also need the -fallow-argument-mismatch flag.

Alternatively, you can try another ODE integrator. See the list from @jacobwilliams for instance: GitHub - jacobwilliams/rklib: Fixed and variable-step Runge-Kutta solvers in Modern Fortran

1 Like

thank you for answer! I’ll try Andreas