Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests #309

Closed
wants to merge 58 commits into from
Closed

Tests #309

wants to merge 58 commits into from

Conversation

stefaniagl
Copy link
Contributor

Description

Changed comp2exec for the newest ADDA version with beam center and Bessel beams.

Related issues

Fixes #209, including #285.

Fixes #... or Related to #...

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist

  • I have read the contributing guidelines
  • The new code complies with the existing code style.
  • The code compiles correctly in all relevant regimes (at least, make seq)
  • The new code does not rely on any Fortran or C++ sources or is disabled by NO_FORTRAN or NO_CPP preprocessor macros, respectively.
  • The change neither adds or removes files; otherwise, these changes are reflected in README.md in corresponding folders.
  • No warnings appear during debug compilation (at least, make seq OPTIONS=DEBUG, but better devtools/build_debug) or they are discussed below
  • Tests pass locally with my changes (at least, sh comp2exec seq in tests/2exec, but better devtools/test_new [seq]). If any errors appear, they are discussed below.
  • I have added tests that prove my fix is effective or that my feature works. And these tests pass. This includes new command line in suite files in tests/2exec (and potentially new ignore patterns). In some cases, it is desirable to add new tests to tests/equiv.
  • I have added/extended necessary documentation (if appropriate). If suggesting changes to the manual, I have used "Track changes" in the doc file.
  • I have looked through all changes introduced by this pull request (line by line), using git diff or, better, some GUI tool, to ensure that no unexpected changes are introduced.

stefaniagl and others added 27 commits November 12, 2021 14:39
- disables all code related to Bessel beams when NO_FORTRAN is used
- edits a lot of help and information messages, including names of some Bessel beams types
- beam center in laboratory reference frame is now specified always (even when at origin)
- calculation of Cext through F(0) is now used only for default position of the plane wave
- fixes processing of imaginary part of matrix M (for Bessel beams), by changing the type to doublecomplex
- removes beam-center position in descriptive strings for beams (since it is printed separately in param.c)
- plane wave in surface mode now works fine with -beam_center. Removes a lot of redundant code there (probably was used long ago for alternative calculation of Cext)

minor/stylistic changes:
- shortens define handles for Bessel beams
- changes required number of subarguments for '-beam dipole' to UNDEF
- moves beam_center below beam in lists of command line options (to be in alphabetical order)
- renames use_beam_center and use_beam_subopt into beam_center_used and deprecated_bc_used, respectively
- adds auxiliary function ScanDouble3Error() in param.c
- removes redundant checks for number of arguments for most Bessel beam types
- processing of deprecated specification of beam center as an argument to '-beam' is now in param.c
- updates instructions for adding new beams
- updates .gitignore
- removes mentioning of eIncRefl[3],eIncTran[3] from crosssec.c
- beam_center_0 is now defined in vars.c/h
…sel beams

- corrects accounting for beam vorticity, when computing amplitude matrix (for scat_plane and scat_grid)
- renames variables for Bessel beams to avoid confusion
- slightly changes alignment in the code and descriptive string for Bessel beams
- merges two cases for Bessel beams in InitBeam() into one
- replaces several cexp(I*...) by imExp(...)
- adds several TODO comments for further improvement
- quick tests show that amplitude matrix remains invariant under 90-degree rotation for symmetric shapes (comparing
@stefaniagl stefaniagl closed this Dec 30, 2021
@stefaniagl stefaniagl reopened this Dec 30, 2021
@stefaniagl stefaniagl closed this Dec 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bessel beams
2 participants