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
c0f8a71e
Commit
c0f8a71e
authored
Mar 22, 2021
by
Steffen Schotthöfer
Browse files
fixed flux - fluxnew Bug
parent
0fc22f3d
Changes
2
Show whitespace changes
Inline
Side-by-side
code/src/solvers/csdsolvertrafofpsh2d.cpp
View file @
c0f8a71e
...
@@ -479,7 +479,6 @@ void CSDSolverTrafoFPSH2D::IterPostprocessing( unsigned idx_pseudotime ) {
...
@@ -479,7 +479,6 @@ void CSDSolverTrafoFPSH2D::IterPostprocessing( unsigned idx_pseudotime ) {
_dose
[
j
]
+=
_dE
*
_fluxNew
[
j
]
*
_s
[
_nEnergies
-
n
-
1
]
/
_density
[
j
];
_dose
[
j
]
+=
_dE
*
_fluxNew
[
j
]
*
_s
[
_nEnergies
-
n
-
1
]
/
_density
[
j
];
}
}
_solverOutput
[
j
]
=
_fluxNew
[
j
];
_solverOutput
[
j
]
=
_fluxNew
[
j
];
_flux
[
j
]
=
_fluxNew
[
j
];
}
}
}
}
...
...
code/src/solvers/solverbase.cpp
View file @
c0f8a71e
...
@@ -230,10 +230,7 @@ void SolverBase::WriteScalarOutput( unsigned iteration ) {
...
@@ -230,10 +230,7 @@ void SolverBase::WriteScalarOutput( unsigned iteration ) {
case
ITER
:
_screenOutputFields
[
idx_field
]
=
iteration
;
break
;
case
ITER
:
_screenOutputFields
[
idx_field
]
=
iteration
;
break
;
case
RMS_FLUX
:
case
RMS_FLUX
:
_screenOutputFields
[
idx_field
]
=
blaze
::
l2Norm
(
_fluxNew
-
_flux
);
break
;
_screenOutputFields
[
idx_field
]
=
blaze
::
l2Norm
(
_fluxNew
-
_flux
);
_flux
=
_fluxNew
;
break
;
case
VTK_OUTPUT
:
case
VTK_OUTPUT
:
_screenOutputFields
[
idx_field
]
=
0
;
_screenOutputFields
[
idx_field
]
=
0
;
...
@@ -284,7 +281,6 @@ void SolverBase::WriteScalarOutput( unsigned iteration ) {
...
@@ -284,7 +281,6 @@ void SolverBase::WriteScalarOutput( unsigned iteration ) {
case
RMS_FLUX
:
case
RMS_FLUX
:
if
(
screenOutputFields
.
end
()
==
itScreenOutput
)
{
if
(
screenOutputFields
.
end
()
==
itScreenOutput
)
{
_screenOutputFields
[
idx_field
]
=
blaze
::
l2Norm
(
_fluxNew
-
_flux
);
_screenOutputFields
[
idx_field
]
=
blaze
::
l2Norm
(
_fluxNew
-
_flux
);
_flux
=
_fluxNew
;
}
}
else
{
else
{
_historyOutputFields
[
idx_field
]
=
*
itScreenOutput
;
_historyOutputFields
[
idx_field
]
=
*
itScreenOutput
;
...
@@ -310,6 +306,7 @@ void SolverBase::WriteScalarOutput( unsigned iteration ) {
...
@@ -310,6 +306,7 @@ void SolverBase::WriteScalarOutput( unsigned iteration ) {
default:
ErrorMessages
::
Error
(
"History output group not defined!"
,
CURRENT_FUNCTION
);
break
;
default:
ErrorMessages
::
Error
(
"History output group not defined!"
,
CURRENT_FUNCTION
);
break
;
}
}
}
}
_flux
=
_fluxNew
;
}
}
void
SolverBase
::
PrintScreenOutput
(
unsigned
iteration
)
{
void
SolverBase
::
PrintScreenOutput
(
unsigned
iteration
)
{
...
...
jannick.wolters
@jm2154
mentioned in commit
24f54189
·
Apr 30, 2021
mentioned in commit
24f54189
mentioned in commit 24f54189483053e6d46d4d9358786c9f7e9b3e44
Toggle commit list
Write
Preview
Supports
Markdown
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