How to fix the errors in compiling ODEPACK in debug mode?

Thank you very much @sblionel - Dr. Fortran, and @ivanpribec !
The array constructor

[int(RWORK(LWM))] 

or

[int(RWORK(LWM:))] 

is a cool technique!

The odepack code seems indeed reply on these old F77 games.
I also read the post @ivanpribec pointed out, also Dr. Fortran @sblionel have explanation there.
It looks like the most easy way for odepack to run on modern compiler is to select the corresponding files, and disable interface check, like below,


Then everything work fine!
But obviously some of ways odepack was written is not standard Fortran, but it works :sweat_smile: LOL.

Also thanks @ivanpribec , yes, I have the modern f90 version of dvode,

and you taught me how to use the DVINDY , that is fantastic! In DVODE, there are comments in the code instruct how to use lapack, and I used lapack. It works very good!

Thank you very much guys! Super! :+1: :slight_smile: :100:

1 Like