18 #include "libmesh/exodusII.h" 29 _ss <<
"####################\n" 30 <<
"# Created by MOOSE #\n" 31 <<
"####################\n";
34 _ss <<
"### Command Line Arguments ###\n";
45 _ss <<
"### Input File ###" << std::endl;
55 while (std::getline(
_ss, s))
58 if (s.length() > MAX_LINE_LENGTH)
60 const std::string continuation(
"...");
61 const size_t cont_len = continuation.length();
62 size_t num_lines = s.length() / (MAX_LINE_LENGTH - cont_len) + 1;
63 std::string split_line;
64 for (
size_t j = 0, l_begin = 0; j < num_lines; ++j, l_begin += MAX_LINE_LENGTH - cont_len)
66 size_t l_len = MAX_LINE_LENGTH - cont_len;
67 if (s.length() < l_begin + l_len)
68 l_len = s.length() - l_begin;
70 split_line = s.substr(l_begin, l_len);
72 if (l_begin + l_len != s.length())
73 split_line += continuation;
std::shared_ptr< CommandLine > commandLine() const
Get the command line.
Storage for action instances.
void printInputFile(std::ostream &out)
This method uses the Actions in the warehouse to reproduce the input file.
const SystemInfo * getSystemInfo() const
Get SystemInfo object.
std::string getInfo() const