i have some problem trying to run a fortran code. apologies if this is not the appropriate place to post.
i have downloaded the enclosed fortran codes from scatterlib - Project Hosting on Google Code. in a nutshell, these codes calculate light scattering from a spherical particle. i first compile the 2 needed files with
gfortran bhmie.f callbhmie.f
then execute with "./a.out". it is able to run fine, and i can type in inputs. however, when i try to enter a complex number (the complex refractive index), it gives me errors like
At line 33 of file callbhmie.f (unit = 5, file = 'stdin') Fortran runtime error: bad integer for item 1 in list input
i tried a few different combinations during the input, such as
1.55 -0.008 1.55, 0.008 1.55
but they all give errors similar to the one above. i am not familiar with fortran, but i suspect its the way i input the complex number. anyone knows how i can solve this?
PS: i have started a similar post at [ubuntu] help with a fortran code - Ubuntu Forums


Sign In
Create Account


Back to top









