Skip to content

Commit

Permalink
writeDefaultOutputFile: Add BOUT++ version and flags
Browse files Browse the repository at this point in the history
collect needs to know BOUT_VERSION or it assumes pre-0.2 format.
  • Loading branch information
bendudson committed Dec 14, 2023
1 parent 365ce52 commit 63b2541
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/sys/options/options_io.cxx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include "bout/options_io.hxx"
#include "bout/bout.hxx"
#include "bout/globals.hxx"
#include "bout/mesh.hxx"

Expand Down Expand Up @@ -46,6 +47,8 @@ OptionsIOFactory::ReturnType OptionsIOFactory::createFile(const std::string& fil
}

void writeDefaultOutputFile(Options& data) {
// Add BOUT++ version and flags
bout::experimental::addBuildFlagsToOptions(data);
// Add mesh information
bout::globals::mesh->outputVars(data);
// Write to the default output file
Expand Down

0 comments on commit 63b2541

Please sign in to comment.