Skip to content

Commit

Permalink
Fixed an issue when reading in eigenmodes from the GUI
Browse files Browse the repository at this point in the history
  • Loading branch information
Moritz Sallermann committed Nov 25, 2021
1 parent 3c8a7e0 commit 9b998cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/src/Spirit/IO.cpp
Expand Up @@ -1052,7 +1052,7 @@ try
Log( Utility::Log_Level::Warning, Utility::Log_Sender::IO,
fmt::format(
"Resizing eigenmode buffer because the number of modes in the OVF file ({}) "
"is greater than the buffer size ({})",
"is different from the buffer size ({})",
n_eigenmodes, image->modes.size() ) );
image->modes.resize( n_eigenmodes );
image->eigenvalues.resize( n_eigenmodes );
Expand Down
2 changes: 1 addition & 1 deletion ui-cpp/ui-qt/src/ParametersWidget.cpp
Expand Up @@ -580,7 +580,7 @@ void ParametersWidget::load_Spin_Configuration_Eigenmodes()
.c_str() );

auto file = string_q2std( fileName );
IO_Eigenmodes_Read( this->state.get(), file.c_str(), type );
IO_Eigenmodes_Read( this->state.get(), file.c_str() );

// n_modes parameter might be change by IO_Eigenmodes_Read so update that first
this->spinBox_ema_n_modes->setValue( Parameters_EMA_Get_N_Modes( state.get() ) );
Expand Down

0 comments on commit 9b998cb

Please sign in to comment.