Commit bbf245c7 authored by Felix Gruber's avatar Felix Gruber

[cleanup] ASTI: get numS from scattering vector

parent 06532a32
Pipeline #15300 passed with stage
in 26 minutes and 15 seconds
......@@ -711,13 +711,12 @@ class ASTIPlotter {
void plotScatteringOnHostGrid(
const ScatteringBasis& hostGridGlobalBasis,
const std::vector<VectorType>& scattering,
const unsigned int n,
const size_t numS) const
const unsigned int n) const
{
if(flagIsSet(plotFlags, ASTIPlotFlags::plotScattering)) {
std::cout << "Plot scattering:\n";
for(unsigned int i = 0; i < numS; ++i)
for(size_t i = 0, numS = scattering.size(); i < numS; ++i)
{
std::cout << "Direction " << i << '\n';
......@@ -1031,7 +1030,7 @@ computeScatteringData(
plotter.plotScatteringOnHostGrid(hostGridGlobalBasis,
scatteringFunctional,
n, numS);
n);
for(size_t i = 0; i < numS; i++) {
// TODO: subGridGlobalBasis should be normalized in L2!?
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment