Skip to content

Commit

Permalink
adds perm rescaling, testing mfd in transient works
Browse files Browse the repository at this point in the history
  • Loading branch information
ecoon committed Jul 3, 2023
1 parent db8df78 commit 2d796b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/pks/flow/richards.hh
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ class Richards : public PK_PhysicalBDF_Default {
Teuchos::RCP<Operators::PDE_DiffusionWithGravity> preconditioner_diff_;
Teuchos::RCP<Operators::PDE_DiffusionWithGravity> face_matrix_diff_;
Teuchos::RCP<Operators::PDE_Accumulation> preconditioner_acc_;
// double perm_scale_;
double perm_scale_;

// flag to do jacobian and therefore coef derivs
bool precon_used_;
Expand Down
5 changes: 3 additions & 2 deletions src/pks/flow/richards_pk.cc
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,9 @@ Richards::ParseParameterList_()
deform_key_ = Keys::readKey(*plist_, domain_, "deformation indicator", "base_porosity");

// scaling for permeability for better "nondimensionalization"
// perm_scale_ = plist_->get<double>("permeability rescaling", 1.e7);
// S_->GetEvaluatorList(coef_key_).set<double>("permeability rescaling", perm_scale_);
perm_scale_ = plist_->get<double>("permeability rescaling", 1.e7);
S_->GetEvaluatorList(coef_key_).set<double>("permeability rescaling", perm_scale_);
S_->GetEvaluatorList(perm_key_).set<double>("rescaling factor", perm_scale_);
}

// -------------------------------------------------------------
Expand Down

0 comments on commit 2d796b3

Please sign in to comment.