Skip to content

Commit fd94e73

Browse files
authored
Warn about removal of problem types without remelting in a future release (#194)
Co-authored-by: MattRolchigo <[email protected]>
1 parent b869c0a commit fd94e73

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/CAinitialize.cpp

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,16 @@ void InputReadFromFile_Old(int id, std::string InputFile, std::string &Simulatio
105105
else {
106106
// Simulation does not including remelting logic
107107
RemeltingYN = false;
108+
if (id == 0) {
109+
if (SimulationType == "S")
110+
std::cout << "Note: simulations of spot melt arrays without remelting will not be allowed in a future "
111+
"release, problem type will default to using remelting"
112+
<< std::endl;
113+
else if (SimulationType == "R")
114+
std::cout << "Note: simulations using input temperature data from files without remelting will not be "
115+
"allowed in a future release, problem type will default to using remelting"
116+
<< std::endl;
117+
}
108118
}
109119
if (SimulationType == "C") {
110120
RequiredInputs_ProblemSpecific.resize(7);
@@ -511,6 +521,16 @@ void InputReadFromFile(int id, std::string InputFile, std::string &SimulationTyp
511521
else {
512522
// Simulation does not including remelting logic
513523
RemeltingYN = false;
524+
if (id == 0) {
525+
if (SimulationType == "S")
526+
std::cout << "Note: simulations of spot melt arrays without remelting will not be allowed in a future "
527+
"release, problem type will default to using remelting"
528+
<< std::endl;
529+
else if (SimulationType == "R")
530+
std::cout << "Note: simulations using input temperature data from files without remelting will not be "
531+
"allowed in a future release, problem type will default to using remelting"
532+
<< std::endl;
533+
}
514534
}
515535
// Input files that should be present for all problem types
516536
std::string MaterialFileName_Read = inputdata["MaterialFileName"];

0 commit comments

Comments
 (0)