<metaname="description"content="PhasicFlow is an open-source parallel DEM (discrete element method) package for simulating granular flow. It is developed in C++ and can be exectued on both GPU (like CUDA) and CPU.">
<!-- iframe showing the search results (closed by default) -->
<divid="MSearchResultsWindow">
<iframesrc="javascript:void(0)"frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<divclass="header">
<divclass="headertitle">
<divclass="title">error.cpp</div></div>
</div><!--header-->
<divclass="contents">
<ahref="error_8cpp.html">Go to the documentation of this file.</a><divclass="fragment"><divclass="line"><aname="l00001"></a><spanclass="lineno"> 1</span> <spanclass="comment">/*------------------------------- phasicFlow ---------------------------------</span></div>
<divclass="line"><aname="l00002"></a><spanclass="lineno"> 2</span> <spanclass="comment"> O C enter of</span></div>
<divclass="line"><aname="l00003"></a><spanclass="lineno"> 3</span> <spanclass="comment"> O O E ngineering and</span></div>
<divclass="line"><aname="l00004"></a><spanclass="lineno"> 4</span> <spanclass="comment"> O O M ultiscale modeling of</span></div>
<divclass="line"><aname="l00011"></a><spanclass="lineno"> 11</span> <spanclass="comment"> This file is part of phasicFlow code. It is a free software for simulating</span></div>
<divclass="line"><aname="l00012"></a><spanclass="lineno"> 12</span> <spanclass="comment"> granular and multiphase flows. You can redistribute it and/or modify it under</span></div>
<divclass="line"><aname="l00013"></a><spanclass="lineno"> 13</span> <spanclass="comment"> the terms of GNU General Public License v3 or any other later versions.</span></div>
<divclass="line"><aname="l00015"></a><spanclass="lineno"> 15</span> <spanclass="comment"> phasicFlow is distributed to help others in their research in the field of</span></div>
<divclass="line"><aname="l00016"></a><spanclass="lineno"> 16</span> <spanclass="comment"> granular and multiphase flows, but WITHOUT ANY WARRANTY; without even the</span></div>
<divclass="line"><aname="l00017"></a><spanclass="lineno"> 17</span> <spanclass="comment"> implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.</span></div>
<divclass="line"><aname="l00037"></a><spanclass="lineno"> 37</span> <aclass="code"href="error_8cpp.html#a5eb018080f1db7b439575b673d5d5bf2">errorStream</a><<<spanclass="stringliteral">"\n>>> Fatal error in phasicFlow\n"</span></div>
<divclass="line"><aname="l00038"></a><spanclass="lineno"> 38</span> <<<spanclass="stringliteral">"Error occured in source file "</span><<<aclass="code"href="iOstream_8hpp.html#a4eaf1969ce30ece80c199ca7b38d9d41">Red_Text</a>(fileName)</div>
<divclass="line"><aname="l00039"></a><spanclass="lineno"> 39</span> <<<spanclass="stringliteral">" at line "</span><<<aclass="code"href="iOstream_8hpp.html#a4eaf1969ce30ece80c199ca7b38d9d41">Red_Text</a>(linNumber) <<<spanclass="charliteral">'\n'</span>;</div>
<divclass="line"><aname="l00046"></a><spanclass="lineno"> 46</span> <aclass="code"href="error_8cpp.html#a5eb018080f1db7b439575b673d5d5bf2">errorStream</a><<<spanclass="stringliteral">"\n>>> Fatal error in phasicFlow\n"</span></div>
<divclass="line"><aname="l00047"></a><spanclass="lineno"> 47</span> <<<spanclass="stringliteral">" Error is issued in function "</span><<<aclass="code"href="iOstream_8hpp.html#a4eaf1969ce30ece80c199ca7b38d9d41">Red_Text</a>(fnName)</div>
<divclass="line"><aname="l00048"></a><spanclass="lineno"> 48</span> <<<spanclass="stringliteral">", located in file "</span><<<aclass="code"href="iOstream_8hpp.html#a4eaf1969ce30ece80c199ca7b38d9d41">Red_Text</a>(fileName) <<<spanclass="stringliteral">" at line "</span></div>
<divclass="line"><aname="l00060"></a><spanclass="lineno"> 60</span> <aclass="code"href="error_8cpp.html#a5eb018080f1db7b439575b673d5d5bf2">errorStream</a><<<spanclass="stringliteral">"\n>>> Fatal error in phasicFlow\n"</span>;</div>
<divclass="line"><aname="l00061"></a><spanclass="lineno"> 61</span> <aclass="code"href="error_8cpp.html#a5eb018080f1db7b439575b673d5d5bf2">errorStream</a><<<spanclass="stringliteral">" Function "</span><<<aclass="code"href="iOstream_8hpp.html#a4eaf1969ce30ece80c199ca7b38d9d41">Red_Text</a>(fnName)</div>
<divclass="line"><aname="l00062"></a><spanclass="lineno"> 62</span> <<<spanclass="stringliteral">" has not been implemented yet!\n"</span></div>
<divclass="line"><aname="l00063"></a><spanclass="lineno"> 63</span> <<<spanclass="stringliteral">" File "</span><<<aclass="code"href="iOstream_8hpp.html#a06734f691d48f8796526b96cd58b982c">Yellow_Text</a>(fileName) <<<spanclass="stringliteral">" at line "</span></div>
<divclass="line"><aname="l00078"></a><spanclass="lineno"> 78</span> <<<spanclass="stringliteral">" IO error at number "</span><<<aclass="code"href="iOstream_8hpp.html#a4eaf1969ce30ece80c199ca7b38d9d41">Red_Text</a>(fileLineNumber)</div>
<divclass="line"><aname="l00079"></a><spanclass="lineno"> 79</span> <<<spanclass="stringliteral">" of file "</span><<<aclass="code"href="iOstream_8hpp.html#a4eaf1969ce30ece80c199ca7b38d9d41">Red_Text</a>(fileName) <<<spanclass="charliteral">'\n'</span>;</div>
<divclass="line"><aname="l00080"></a><spanclass="lineno"> 80</span> <aclass="code"href="error_8cpp.html#a5eb018080f1db7b439575b673d5d5bf2">errorStream</a><<<spanclass="stringliteral">" IO operation is peformed from function "</span></div>
<divclass="line"><aname="l00081"></a><spanclass="lineno"> 81</span> <<<aclass="code"href="iOstream_8hpp.html#a4eaf1969ce30ece80c199ca7b38d9d41">Red_Text</a>(fnName) <<<spanclass="stringliteral">" in file "</span><<<aclass="code"href="iOstream_8hpp.html#a4eaf1969ce30ece80c199ca7b38d9d41">Red_Text</a>(fName)</div>
<divclass="line"><aname="l00082"></a><spanclass="lineno"> 82</span> <<<spanclass="stringliteral">" at line "</span><<<aclass="code"href="iOstream_8hpp.html#a4eaf1969ce30ece80c199ca7b38d9d41">Red_Text</a>(lNumber) <<<spanclass="charliteral">'\n'</span>;</div>
<divclass="line"><aname="l00103"></a><spanclass="lineno"> 103</span> <aclass="code"href="error_8cpp.html#a5eb018080f1db7b439575b673d5d5bf2">errorStream</a><<<spanclass="stringliteral">"\n>>> Warning in phasicFlow\n"</span></div>
<divclass="line"><aname="l00104"></a><spanclass="lineno"> 104</span> <<<spanclass="stringliteral">" Warning is issued in function "</span><<<aclass="code"href="iOstream_8hpp.html#a06734f691d48f8796526b96cd58b982c">Yellow_Text</a>(fnName)</div>
<divclass="line"><aname="l00105"></a><spanclass="lineno"> 105</span> <<<spanclass="stringliteral">" in source file "</span><<<aclass="code"href="iOstream_8hpp.html#a06734f691d48f8796526b96cd58b982c">Yellow_Text</a>(fileName) <<<spanclass="stringliteral">" at line "</span></div>
<divclass="ttc"id="aerror_8cpp_html_a5eb018080f1db7b439575b673d5d5bf2"><divclass="ttname"><ahref="error_8cpp.html#a5eb018080f1db7b439575b673d5d5bf2">errorStream</a></div><divclass="ttdeci">static pFlow::Ostream & errorStream</div><divclass="ttdef"><b>Definition:</b><ahref="error_8cpp_source.html#l00032">error.cpp:32</a></div></div>
<divclass="ttc"id="aerror_8cpp_html_a653033f027c35c016ad647d303a53846"><divclass="ttname"><ahref="error_8cpp.html#a653033f027c35c016ad647d303a53846">fatalErrorInMessage</a></div><divclass="ttdeci">pFlow::iOstream & fatalErrorInMessage(const char *fnName, const char *fileName, int linNumber)</div><divclass="ttdef"><b>Definition:</b><ahref="error_8cpp_source.html#l00044">error.cpp:44</a></div></div>
<divclass="ttc"id="anamespacepFlow_html_aba8f0c455a3fdb4b05ad33a25b13b189"><divclass="ttname"><ahref="namespacepFlow.html#aba8f0c455a3fdb4b05ad33a25b13b189">pFlow::endl</a></div><divclass="ttdeci">iOstream & endl(iOstream &os)</div><divclass="ttdoc">Add newline and flush stream.</div><divclass="ttdef"><b>Definition:</b><ahref="iOstream_8hpp_source.html#l00341">iOstream.hpp:341</a></div></div>
<divclass="ttc"id="aerror_8cpp_html_a76fb1cfa092a4635166f1a5b72b3b1e4"><divclass="ttname"><ahref="error_8cpp.html#a76fb1cfa092a4635166f1a5b72b3b1e4">warningMessage</a></div><divclass="ttdeci">pFlow::iOstream & warningMessage(const char *fnName, const char *fileName, int linNumber)</div><divclass="ttdef"><b>Definition:</b><ahref="error_8cpp_source.html#l00101">error.cpp:101</a></div></div>
<divclass="ttc"id="aerror_8cpp_html_a14c0ff4f968a9653a96589a8e4cca097"><divclass="ttname"><ahref="error_8cpp.html#a14c0ff4f968a9653a96589a8e4cca097">reportAndExit</a></div><divclass="ttdeci">pFlow::iOstream & reportAndExit(int errorCode)</div><divclass="ttdef"><b>Definition:</b><ahref="error_8cpp_source.html#l00111">error.cpp:111</a></div></div>
<divclass="ttc"id="aerror_8cpp_html_ad4d8e0a1565756ea3e85650c5909c3b4"><divclass="ttname"><ahref="error_8cpp.html#ad4d8e0a1565756ea3e85650c5909c3b4">fatalExitPhasicFlow</a></div><divclass="ttdeci">int fatalExitPhasicFlow(int errorCode)</div><divclass="ttdoc">Take actions to fatal exit phasicFlow.</div><divclass="ttdef"><b>Definition:</b><ahref="error_8cpp_source.html#l00119">error.cpp:119</a></div></div>
<divclass="ttc"id="aerror_8cpp_html_a760a332a5ee6b584fb927d3dd452f6d6"><divclass="ttname"><ahref="error_8cpp.html#a760a332a5ee6b584fb927d3dd452f6d6">notImplementedErrorMessage</a></div><divclass="ttdeci">pFlow::iOstream & notImplementedErrorMessage(const char *fnName, const char *fileName, int lineNumber)</div><divclass="ttdef"><b>Definition:</b><ahref="error_8cpp_source.html#l00054">error.cpp:54</a></div></div>
<divclass="ttc"id="aerror_8cpp_html_a0ed43bbcfae7ab9b70cd23a82db23c43"><divclass="ttname"><ahref="error_8cpp.html#a0ed43bbcfae7ab9b70cd23a82db23c43">fatalErrorMessage</a></div><divclass="ttdeci">pFlow::iOstream & fatalErrorMessage(const char *fileName, int linNumber)</div><divclass="ttdef"><b>Definition:</b><ahref="error_8cpp_source.html#l00035">error.cpp:35</a></div></div>
<divclass="ttc"id="aerror_8cpp_html_a1eea9cba7dd30e9c608ddf28b295810f"><divclass="ttname"><ahref="error_8cpp.html#a1eea9cba7dd30e9c608ddf28b295810f">ioErrorMessage</a></div><divclass="ttdeci">pFlow::iOstream & ioErrorMessage(const char *fileName, int fileLineNumber, const char *fnName, const char *fName, int lNumber)</div><divclass="ttdef"><b>Definition:</b><ahref="error_8cpp_source.html#l00069">error.cpp:69</a></div></div>
<divclass="ttc"id="aclasspFlow_1_1Ostream_html"><divclass="ttname"><ahref="classpFlow_1_1Ostream.html">pFlow::Ostream</a></div><divclass="ttdoc">Standard output stream for BINARY and ASCII formats.</div><divclass="ttdef"><b>Definition:</b><ahref="Ostream_8hpp_source.html#l00039">Ostream.hpp:39</a></div></div>
<divclass="ttc"id="aclasspFlow_1_1iOstream_html"><divclass="ttname"><ahref="classpFlow_1_1iOstream.html">pFlow::iOstream</a></div><divclass="ttdoc">Interface class for any output stream.</div><divclass="ttdef"><b>Definition:</b><ahref="iOstream_8hpp_source.html#l00059">iOstream.hpp:59</a></div></div>
<divclass="ttc"id="aclasspFlow_1_1processors_html_ad8b9e957e282834e70d34149f0bd4cad"><divclass="ttname"><ahref="classpFlow_1_1processors.html#ad8b9e957e282834e70d34149f0bd4cad">pFlow::processors::abort</a></div><divclass="ttdeci">static void abort(int error)</div><divclass="ttdoc">Abort MPI run or regular run.</div><divclass="ttdef"><b>Definition:</b><ahref="processors_8cpp_source.html#l00147">processors.cpp:147</a></div></div>