Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Lays the foundation for further improvement (and corrections) in calc…
…ulation of Sommerfeld integrals - updates somnec.c according to the latest version of NEC2C (1.3) found on the Internet. This includes cosmetic changes, zero-initialization of several variable, moving declaration of several variables inside the cycles (where they are used), and removal of several code block that were never reached. The choice of tabs and indents is now uniform over the whole file. - there is a change in rom1() in somnec.c (removal of test for `nt`), which may potentially change the results, but existing tests does not indicate that (requires further study). - adds a lot of comments to somnec.c, mostly explaining how the integration contours and branch cuts for functions involving square roots are chosen in the complex plane. Also mentions several ideas for further improvements. - evlua() now accepts additional argument (mode) to enable testing different equivalent ways to compute the integral. The main ADDA code uses mode=0 (automatic choice) leading to no changes in operation. - creates header file somnec.h (to be able to use somnec uniformly from several places) - creates a standalone test module in somnec_test.c - the new files fully adhere to ADDA code style, while somnec.c is only half way there
- Loading branch information