Commit f5785da9 authored by steffen.schotthoefer's avatar steffen.schotthoefer
Browse files

Fixed index out of bounds bug when MINIMAL is not the first volume output


Former-commit-id: c4fd60ee
parent 3ec1aaf4
/*!
* \file io.cpp
* \brief Set of utility io functions for rtns
* \author S. Schotthoefer, J. Wolters et al.
*/
#include "common/io.h"
#include "common/config.h"
#include "common/mesh.h"
......
......@@ -206,8 +206,8 @@ void MNSolver::PrepareOutputFields() {
_outputFields[idx_group].resize( 1 );
_outputFieldNames[idx_group].resize( 1 );
_outputFields[0][0].resize( _nCells );
_outputFieldNames[0][0] = "radiation flux density";
_outputFields[idx_group][0].resize( _nCells );
_outputFieldNames[idx_group][0] = "radiation flux density";
break;
case MOMENTS:
......
......@@ -371,8 +371,8 @@ void PNSolver::PrepareOutputFields() {
_outputFields[idx_group].resize( 1 );
_outputFieldNames[idx_group].resize( 1 );
_outputFields[0][0].resize( _nCells );
_outputFieldNames[0][0] = "radiation flux density";
_outputFields[idx_group][0].resize( _nCells );
_outputFieldNames[idx_group][0] = "radiation flux density";
break;
case MOMENTS:
......
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