Skip to content

Commit 1f8ae5e

Browse files
authored
Merge pull request #106 from jeremyfirst22/bugfix-timestep-not-read-from-restart
bugfix: restart to initialize from previous timestep
2 parents 5c2fbfe + 31a7c18 commit 1f8ae5e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

models/ColorModel.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,9 @@ void ScaLBL_ColorModel::ReadParams(string filename) {
111111
if (color_db->keyExists("flux")) {
112112
flux = color_db->getScalar<double>("flux");
113113
}
114+
if (color_db->keyExists("timestep")) {
115+
timestep = color_db->getScalar<int>("timestep");
116+
}
114117
inletA = 1.f;
115118
inletB = 0.f;
116119
outletA = 0.f;

0 commit comments

Comments
 (0)