Skip to content

Commit

Permalink
Leave density-weighted mass matrix update in updateDensity fcn
Browse files Browse the repository at this point in the history
  • Loading branch information
trevilo committed Dec 3, 2024
1 parent 461cea5 commit c5c636f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/reactingFlow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1522,10 +1522,6 @@ void ReactingFlow::step() {

updateDensity(1.0);
updateDiffusivity();
Array<int> empty;
MsRho_form_->Update();
MsRho_form_->Assemble();
MsRho_form_->FormSystemMatrix(empty, MsRho_);

// PART I: Form and solve implicit systems for species and temperature.
//
Expand Down Expand Up @@ -2545,6 +2541,10 @@ void ReactingFlow::updateDensity(double tStep) {
}
rn_gf_.SetFromTrueDofs(rn_);

MsRho_form_->Update();
MsRho_form_->Assemble();
MsRho_form_->FormSystemMatrix(empty, MsRho_);

// project to p-space in case not same as vel-temp
R0PM0_gf_.SetFromTrueDofs(rn_);
}
Expand Down

0 comments on commit c5c636f

Please sign in to comment.