Precision on scat_params.dat?

18 views
Skip to first unread message

Tom Dimiduk

unread,
Feb 6, 2012, 12:34:23 PM2/6/12
to adda-d...@googlegroups.com
When I specify scattering angles in a scat_params.dat file, what
precision are they used at?

The output scatgrid only shows two decimal places for theta and phi. Is
this roundoff for just display, or does the rounding happen before the
scattering matrix is computed?

Thanks,
Tom

----
Example demonstrating this behaviour

scat_params.dat
---
global_type=pairs
N=1
pairs=
5.473561031724534587e+01 2.250000000000000000e+02
----

run adda as
adda -store_scat_grid

Maxim Yurkin

unread,
Feb 6, 2012, 12:46:45 PM2/6/12
to adda-d...@googlegroups.com, Tom Dimiduk
Internally all angles are stored as doubles (16 digits). So in your example ADDA will keep most of the given precision.
Rounding to 2 digits takes place only during display. If you need more precision in output you may adjust the line

#define ANGLE_FORMAT "%.2f"

in the beginning of CalculateE.c and recompile ADDA.

Maxim.

P.S. This answer has been forwarded to your e-mail address for your convenience. However, if you want to continue the
discussion please reply to the group's e-mail. You are also advised to check the corresponding discussion thread at
http://groups.google.com/group/adda-discuss/topic and/or subscribe to it to receive automatic notifications, since other
answers/comments will not be necessarily forwarded to your e-mail.

Reply all
Reply to author
Forward
0 new messages