Skip to content

Commit

Permalink
Fix bad default values in some Teuchos::ParameterList
Browse files Browse the repository at this point in the history
  • Loading branch information
bartgol committed Sep 30, 2024
1 parent 94e0f6c commit 1d263f0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/disc/stk/Albany_ExtrudedSTKMeshStruct.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1056,7 +1056,7 @@ ExtrudedSTKMeshStruct::getValidDiscretizationParameters() const {

using TAS = Teuchos::Array<std::string>;
using TAI = Teuchos::Array<int>;
validPL->set<bool>("Export 2D Data", "", "If true, exports the 2D mesh in GMSH format");
validPL->set<bool>("Export 2D Data", false, "If true, exports the 2D mesh in GMSH format");
validPL->set<TAS>("Extrude Basal Node Fields", TAS(), "List of basal node fields to be extruded");
validPL->set<TAS>("Extrude Basal Elem Fields", TAS(), "List of basal elem fields to be extruded");
validPL->set<TAI>("Basal Node Fields Ranks",TAI(), "Ranks of basal node fields to be extruded");
Expand Down
4 changes: 2 additions & 2 deletions src/disc/stk/Albany_GenericSTKMeshStruct.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1341,8 +1341,8 @@ GenericSTKMeshStruct::getValidGenericSTKParameters(std::string listname) const
validPL->set<double>("z-shift", 0.0, "Value by which to shift domain in positive z-direction");
validPL->set<Teuchos::Array<double>>("Betas BL Transform", Teuchos::tuple<double>(0.0, 0.0, 0.0), "Beta parameters for Tanh Boundary Layer transform type");

validPL->set<bool>("Contiguous IDs", "true", "Tells Ascii mesh reader is mesh has contiguous global IDs on 1 processor."); //for LandIce problem that require transformation of STK mesh
validPL->set<bool>("Save Solution Field", "true", "Whether the solution field should be saved in the output mesh");
validPL->set<bool>("Contiguous IDs", true, "Tells Ascii mesh reader is mesh has contiguous global IDs on 1 processor."); //for LandIce problem that require transformation of STK mesh
validPL->set<bool>("Save Solution Field", true, "Whether the solution field should be saved in the output mesh");

Teuchos::Array<std::string> defaultFields;
validPL->set<Teuchos::Array<std::string> >("Restart Fields", defaultFields,
Expand Down
4 changes: 2 additions & 2 deletions src/disc/stk/Albany_IossSTKMeshStruct.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ namespace Albany
IossSTKMeshStruct::
IossSTKMeshStruct(const Teuchos::RCP<Teuchos::ParameterList>& params_,
const Teuchos::RCP<const Teuchos_Comm>& comm,
const int numParams_)
const int numParams_)
: GenericSTKMeshStruct(params_, -1, numParams_)
, out(Teuchos::VerboseObjectBase::getDefaultOStream())
, useSerialMesh(false)
Expand Down Expand Up @@ -557,7 +557,7 @@ IossSTKMeshStruct::getValidDiscretizationParameters() const
validPL->set<int>("Restart Index", 1, "Exodus time index to read for initial guess/condition.");
validPL->set<double>("Restart Time", 1.0, "Exodus solution time to read for initial guess/condition.");
validPL->set<Teuchos::ParameterList>("Required Fields Info",Teuchos::ParameterList());
validPL->set<bool>("Write points coordinates to ascii file", "", "Write the mesh points coordinates to file?");
validPL->set<bool>("Write points coordinates to ascii file", false, "Write the mesh points coordinates to file?");

Teuchos::Array<std::string> emptyStringArray;
validPL->set<Teuchos::Array<std::string> >("Additional Node Sets", emptyStringArray, "Declare additional node sets not present in the input file");
Expand Down

0 comments on commit 1d263f0

Please sign in to comment.