Hi Keith,
Thanks for your patch. I'm not familiar with Fortran. So I just put
the link to this post from the top page of spglib web site,
http://spglib.sourceforge.net/#fortran-interface
which will be helpful for spglib users.
Togo
On Thu, Apr 3, 2014 at 6:13 PM, Keith Refson <kr...@gm...> wrote:
> I found that the Fortran interface spglib_f08.f90 fails to compile using
> gfortran 4.6.x or earlier.
>
> Source/Utility/spglib_f08.f90:360.34:
>
> import SpglibDataset_c
> 1
> Error: Cannot IMPORT 'spglibdataset_c' from host scoping unit at (1) - does
> not exist.
>
> ...
>
> This appears to be a bug in the compiler, and later versions work fine.
> However there is a simple workaround - move the definition of the
> SpglibDataset_c type to the top level of the module. Then it works as far
> back as gfortran 4.3.
>
> I hope this is useful.
>
> Keith Refson
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Spglib-users mailing list
> Spg...@li...
> https://lists.sourceforge.net/lists/listinfo/spglib-users
>
--
Atsushi Togo
http://atztogo.github.com/
atz...@gm...
|