astrofrog / fortranlib

Collection of personal scientific routines in Fortran :book:
BSD 2-Clause "Simplified" License
296 stars 73 forks source link

Dependency #3

Open Marston opened 7 years ago

Marston commented 7 years ago

Hi,

I would like to try out your library, especially the interpolation and linspace parts. I would like to link this library to my own project or embed it such that I would not need to link it, i.e., compile it when I build my static library. I was wondering if it was possible to remove the cfitsio dependency?

astrofrog commented 7 years ago

@Marston - this code isn't really distributed as a full library, you can just pick and choose files you want. For instance, you should be able to just use lib_array.f90 and put it in your package.

Marston commented 7 years ago

Fantastic! Thank you very much! Do you require acknowledgement if this library is used on publish scientific work?

astrofrog commented 7 years ago

@Marston - when you copy the file to your library you should keep the original copyright notice and license at the top of the file:

https://github.com/astrofrog/fortranlib/blob/master/src/lib_array.f90#L5

Other than that there is no formal requirement that you acknowledge the use of the library, but of course you are welcome to if you like! (you can just include a link to the repository)