Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
KiT-RT
KiT-RT
Commits
62955d62
Commit
62955d62
authored
Jul 09, 2020
by
steffen.schotthoefer
Browse files
small repair
parent
e3bdadf1
Pipeline
#96621
passed with stages
in 39 minutes and 59 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
code/src/quadratures/qgausslegendretensorized.cpp
View file @
62955d62
...
...
@@ -45,8 +45,8 @@ void QGaussLegendreTensorized::SetPointsAndWeights() {
phi
[
i
]
=
(
i
+
0.5
)
*
M_PI
/
_order
;
}
unsigned
range
=
std
::
floor
(
_order
/
2.0
);
// comment (steffen): why do we only need half of the points:
=> In 2D we would count everything
// twice. (not wrong with scaling
, but expensive)
unsigned
range
=
std
::
floor
(
_order
/
2.0
);
// comment (steffen): why do we only need half of the points:
//
=> In 2D we would count everything
twice. (not wrong with scaling
// resize points and weights
_points
.
resize
(
_nq
);
...
...
code/src/solvers/mnsolver.cpp
View file @
62955d62
...
...
@@ -50,7 +50,7 @@ int MNSolver::GlobalIndex( int l, int k ) const {
}
void
MNSolver
::
ComputeMoments
()
{
double
my
,
phi
,
w
;
double
my
,
phi
;
for
(
unsigned
idx_quad
=
0
;
idx_quad
<
_nq
;
idx_quad
++
)
{
my
=
_quadrature
->
GetPointsSphere
()[
idx_quad
][
0
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment