Skip to content

Commit

Permalink
Warn about removal of problem types without remelting in a future rel…
Browse files Browse the repository at this point in the history
…ease (#194)

Co-authored-by: MattRolchigo <[email protected]>
  • Loading branch information
MattRolchigo and MattRolchigo authored May 12, 2023
1 parent b869c0a commit fd94e73
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/CAinitialize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,16 @@ void InputReadFromFile_Old(int id, std::string InputFile, std::string &Simulatio
else {
// Simulation does not including remelting logic
RemeltingYN = false;
if (id == 0) {
if (SimulationType == "S")
std::cout << "Note: simulations of spot melt arrays without remelting will not be allowed in a future "
"release, problem type will default to using remelting"
<< std::endl;
else if (SimulationType == "R")
std::cout << "Note: simulations using input temperature data from files without remelting will not be "
"allowed in a future release, problem type will default to using remelting"
<< std::endl;
}
}
if (SimulationType == "C") {
RequiredInputs_ProblemSpecific.resize(7);
Expand Down Expand Up @@ -511,6 +521,16 @@ void InputReadFromFile(int id, std::string InputFile, std::string &SimulationTyp
else {
// Simulation does not including remelting logic
RemeltingYN = false;
if (id == 0) {
if (SimulationType == "S")
std::cout << "Note: simulations of spot melt arrays without remelting will not be allowed in a future "
"release, problem type will default to using remelting"
<< std::endl;
else if (SimulationType == "R")
std::cout << "Note: simulations using input temperature data from files without remelting will not be "
"allowed in a future release, problem type will default to using remelting"
<< std::endl;
}
}
// Input files that should be present for all problem types
std::string MaterialFileName_Read = inputdata["MaterialFileName"];
Expand Down

0 comments on commit fd94e73

Please sign in to comment.