Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
NP_TMcode
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Giacomo Mulas
NP_TMcode
Commits
73f2154a
Commit
73f2154a
authored
1 month ago
by
Giovanni La Mura
Browse files
Options
Downloads
Patches
Plain Diff
Use adaptive LM definition in SPHERE wavelength loop
parent
39416ab4
Branches
Branches containing commit
Tags
1.5.0
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/sphere/sphere.cpp
+6
-0
6 additions, 0 deletions
src/sphere/sphere.cpp
with
6 additions
and
0 deletions
src/sphere/sphere.cpp
+
6
−
0
View file @
73f2154a
...
...
@@ -576,6 +576,12 @@ int sphere_jxi488_cycle(
oi
->
vec_vk
[
jxindex
]
=
vk
;
oi
->
vec_xi
[
jxindex
]
=
xi
;
}
// Adaptive definition of L_MAX
double
wavelength
=
2.0
*
pi
/
vk
;
double
size_param
=
2.0
*
pi
*
sconf
->
get_radius
(
0
)
/
wavelength
;
int
N
=
int
(
size_param
+
4.05
*
pow
(
size_param
,
1.0
/
3.0
))
+
2
;
if
(
N
<
l_max
)
l_max
=
N
;
// End of adaptive definition of L_MAX
vtppoanp
->
append_line
(
VirtualBinaryLine
(
vk
));
double
thsca
=
(
gconf
->
isam
>
1
)
?
sa
->
ths
-
sa
->
th
:
0.0
;
for
(
int
i132
=
0
;
i132
<
nsph
;
i132
++
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment