FS#170 Modify Dumux start message
Metadata
Property |
Value |
Project |
dumux |
Category |
Discussion |
Reported by |
Anonymous (Id=0) |
Reported at |
Nov 19, 2012 14:18 |
Type |
Feature Request |
Version |
Git |
Last edited by |
Anonymous (Id=4) |
Last edited at |
Feb 1, 2013 13:57 |
Closed by |
Anonymous (Id=4) |
Closed at |
Feb 1, 2013 13:57 |
Closed in version |
unknown (Id=0) |
Resolution |
Implemented |
Description
Numerous times, we discussed the Dumux start message (\\\"Welcome aboard DuMuX airlines. Please fasten your seatbelts!\\\"), but never really agreed on something.
I would like to propose the following method to the timeManager, printing an random start message from a selection. All dumux developpers are asked to propose, submit and contribute to the specific messages (cases), I only sketched some examples.
<code cpp>
void startMessage_()
{
// roll the dice to decide which start message will be displayed:
srand(std::time(0));
switch (rand() % 5)
{
case 0:
std::cout <<
\\\"Welcome aboard DuMuX airlines. Please fasten your seatbelts!\\\"<<
\\\" Emergency exits are near the time integration.\\\\n\\\";
break;
case 1:
std::cout <<
\\\"Let\\\'s get the cow off the ice.\\\\n\\\";
break;
case 2:
std::cout <<
\\\"Thank you for travelling with Dumux.\\\\n\\\";
break;
case 3:
std::cout <<
\\\"Starting Dumux. I am sorry for this.\\\\n\\\";
break;
default:
// silence to delight Bernd.
}
return ;
}
</code>