ODE solving library for Fortran, to be used on Ubuntu x64 -
as part of larger program, need solve quite simple ode in fortran. avoid having implement solver myself (and surely introduce couple of bugs before right) thought i'd use library, if there 1 - can't find works.
i've looked @ odepack , found re-packaged it, original distribution distributed really hairy source code, , re-pack doesn't build on laptop - emits bunch of warnings converting integer(8)
, real(8)
integer(4)
, real(4)
before stopping on
gfortran -shared -o libodepack.so opkda1.o opkda2.o opkdmain.o /usr/bin/ld: opkda1.o: relocation r_x86_64_32 against `dls001_' can not used when making shared object; recompile -fpic opkda1.o: not read symbols: bad value collect2: error: ld returned 1 exit status make: *** [odepack.so] error 1
so assume it's 32/64-bit incompatibility issue (i have 64-bit processor). adding -fpic
flag error message suggested didn't - got same message anyway.
is odepack, or similar, available modern ubuntu distributions in more installable form?
a simple way odepack working in fortran code compile source code, rather trying make .a files etc. using these 3 files can download netlib: opkdmain.f opkda1.f opkda2.f can compile them in gfortran using -c command link .o files created together.
you warning messages gfortran compiler saying "deleted feature:..." (you won't these messages ifort). because odepack written in fortran 77 , uses things go statements. fortran90 still recognises these statements recommends don't use them. however, code should still run when execute using gfortran or ifort compiler.
Comments
Post a Comment