Skip to content

Commit

Permalink
fix in restart flag for rms
Browse files Browse the repository at this point in the history
  • Loading branch information
Sigfried Haering committed May 3, 2024
1 parent 17a0303 commit 41bb24c
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/tomboulides.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1076,16 +1076,16 @@ void Tomboulides::initializeStats(Averaging &average, IODataOrganizer &io, bool
io.registerIOFamily("RMS velocity fluctuation", "/rmsData", average.GetVariField(std::string("velocity")), false,
continuation, vfec_);
if (nvel_ == 3) {
io.registerIOVar("/rmsData", "uu", 0);
io.registerIOVar("/rmsData", "vv", 1);
io.registerIOVar("/rmsData", "ww", 2);
io.registerIOVar("/rmsData", "uv", 3);
io.registerIOVar("/rmsData", "uw", 4);
io.registerIOVar("/rmsData", "vw", 5);
io.registerIOVar("/rmsData", "uu", 0, true);
io.registerIOVar("/rmsData", "vv", 1, true);
io.registerIOVar("/rmsData", "ww", 2, true);
io.registerIOVar("/rmsData", "uv", 3, true);
io.registerIOVar("/rmsData", "uw", 4, true);
io.registerIOVar("/rmsData", "vw", 5, true);
} else if (nvel_ == 2) {
io.registerIOVar("/rmsData", "uu", 0);
io.registerIOVar("/rmsData", "vv", 1);
io.registerIOVar("/rmsData", "uv", 2);
io.registerIOVar("/rmsData", "uu", 0, true);
io.registerIOVar("/rmsData", "vv", 1, true);
io.registerIOVar("/rmsData", "uv", 2, true);
} else {
// only nvel = 2 or 3 supported
assert(false);
Expand Down

0 comments on commit 41bb24c

Please sign in to comment.