-
Notifications
You must be signed in to change notification settings - Fork 57
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
Onion: multilayered concentric sphere and ellipsoid shapes #333
Conversation
…Updates script for Intel compiler with VS (without testing)
…layers have same index, and comparison to onion when yxratio=zxratio=1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Jerome, as I said before, your contribution is really comprehensive. Thanks for that! I will have some minor changes here and there (mostly in help strings and such, I will commit them later), but here are couple of questions, which you may want to address.
Thanks very much -- I'll respond to your comments over the next day or two. |
- adds several new functions - moves common parts to a new file common.sh - comparison of shape files now ignores differences in shape names (if it is expected) - adds processing of exit codes and possibility to stop on the first error - increases refractive indices, adds -grid 16, but balances this with -eps 1 (keeping the computational time approximately the same) - adds several tests to onion.sh with zero-thickness shells - now both tests run clean
…ated2) - adds hints on inserting SVG files into MS Word in svg_images.txt - Changes to the manual: * polishes the description of new shapes (including some changes in variable names) * specifies coated2 as deprecated shape * updates the default value of MAX_NMAT to 60 * updates affiliation of the first author * adds specific note about an interim version of the manual
- a bit cleaning in CMDIGNORE and OLDIGNORE - makes test less stringent for "-int igt 3" (due to improvement of corresponding routines since 1.4.0) - copies new test strings to other suites (haven't tested sparse, since it is all commented there)
…ons) - MAX_N_SH_PARMS is now calculated directly from MAX_NMAT, but extra check for its sufficiency is added to PARSE_FUNC(shape) - Use of MAX_NMAT is now more informative in various help strings (`-h m` and for new shapes) due to use of new macro TO_STRING(A) - adds deprecated comments and warnings for shape coated2 - increments ADDA version to 1.5.0-alpha2 (as was done in the manual)
I have added various improvement. Feel free to comment on them (or add anything). Apart of that, we only need to finalize |
Your changes to files other than |
- tests of input parameters is now inclusive, so equality of any bounds (including that to 0 and 1) is allowed - cosmetic improvements to description strings - onion_r2 is now dynamically allocated - adds function DescendingSearch - the implementation is still trivial, but the overall code is simpler
Jerome, I have added a few (cosmetic) improvements. Can you please quickly check that the latest version works on your side? And then I will merge. |
Looks good to me -- please go ahead and merge when you are ready. |
Description
Add shapes
onion
andonion_ell
for multilayered concentric spheres and ellipsoids, respectively.onion
extends existing shapescoated
andcoated2
to allow for arbitrary number of concentric layers, not just 2 or 3. (The upper limit is set byMAX_NMAT
.) Similarly,onion_ell
extends existingellipsoid
shape to allow for an arbitrary number of concentric ellipsoidal layers. These new shapes might be useful for modeling particles whose refractive index varies continuously by approximating the variation stepwise.Related issues
Fixes #293. (Confocal spheroids, briefly mentioned in #293, are not implemented.)
Types of changes
Checklist
make seq
)NO_FORTRAN
orNO_CPP
preprocessor macros, respectively.README.md
in corresponding folders.make seq OPTIONS=DEBUG
, but betterdevtools/build_debug
) or they are discussed belowsh comp2exec seq
intests/2exec
, but betterdevtools/test_new [seq]
). If any errors appear, they are discussed below.tests/2exec
(and potentially new ignore patterns). In some cases, it is desirable to add new tests totests/equiv
.git diff
or, better, some GUI tool, to ensure that no unexpected changes are introduced.comp2exec seq
fail, but same failures occur inmaster
.