Skip to content

Commit

Permalink
fix some style and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jlippuner committed May 11, 2021
1 parent 079b47c commit 9f8ccbb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion example/advection/advection_package.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ std::shared_ptr<StateDescriptor> Initialize(ParameterInput *pin) {
std::vector<std::string> advected_labels;
advected_labels.reserve(vec_size);
for (int j = 0; j < vec_size; ++j) {
advected_labels.push_back("Advected_" + std::to_string(var) + " _" +
advected_labels.push_back("Advected_" + std::to_string(var) + "_" +
std::to_string(j));
}
if (var == 0) { // first var is always called just "advected"
Expand Down
3 changes: 2 additions & 1 deletion src/outputs/parthenon_hdf5.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,8 @@ void PHDF5Output::WriteOutputFileImpl(Mesh *pm, ParameterInput *pin, SimTime *tm
} catch (std::exception &ex) {
std::stringstream err;
err << "### ERROR: Failed to create HDF5 output file '" << filename
<< "' with the following error:" << std::endl << ex.what() << std::endl;
<< "' with the following error:" << std::endl
<< ex.what() << std::endl;
PARTHENON_THROW(err)
}

Expand Down

0 comments on commit 9f8ccbb

Please sign in to comment.