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
8ae90316
Commit
8ae90316
authored
Nov 30, 2020
by
Steffen Schotthöfer
Browse files
fixed checkerboard moment method source term prefactor
parent
5caf02f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
code/src/problems/checkerboard.cpp
View file @
8ae90316
...
...
@@ -95,7 +95,7 @@ std::vector<VectorVector> Checkerboard_PN::GetExternalSource( const Vector& ener
VectorVector
Q
(
_mesh
->
GetNumCells
(),
Vector
(
1u
,
0.0
)
);
auto
cellMids
=
_mesh
->
GetCellMidPoints
();
for
(
unsigned
j
=
0
;
j
<
cellMids
.
size
();
++
j
)
{
if
(
isSource
(
cellMids
[
j
]
)
)
Q
[
j
]
=
std
::
sqrt
(
4
*
M_PI
);
// isotropic source
if
(
isSource
(
cellMids
[
j
]
)
)
Q
[
j
]
=
1.0
/
std
::
sqrt
(
4
*
M_PI
);
// isotropic source
}
return
std
::
vector
<
VectorVector
>
(
1u
,
Q
);
}
...
...
jannick.wolters
@jm2154
mentioned in commit
7329e53e
·
Apr 30, 2021
mentioned in commit
7329e53e
mentioned in commit 7329e53eede06924c57f92b930b84b1f863cf7ce
Toggle commit list
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